Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUTORIAL] How to set up FindRetros?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ZaneyRetros" data-source="post: 443540" data-attributes="member: 61600"><p>Hi all, surely this has been released elsewhere but there are many on DevBest that have incorrect code or loop once voted.</p><p></p><p><strong>Requirements:</strong></p><p><strong>- FindRetros account, set that up if you haven't on <a href="http://findretros.com" target="_blank">http://findretros.com</a></strong></p><p>- [NOT REQUIRED] <strong>A banner</strong></p><p></p><p><span style="color: rgb(226, 80, 65)">1.</span> Create an account on <span style="color: rgb(147, 101, 184)">FindRetros</span><span style="color: rgb(0, 0, 0)">. If you already have an account, login and proceed to the next step.</span></p><p></p><p><span style="color: rgb(226, 80, 65)">2. </span><span style="color: rgb(0, 0, 0)">Make a .php file in your skin folder named <strong>Forcevote.php </strong>and add the code below.</span></p><p>[CODE=php]<?php</p><p>$ip = $_SERVER['HTTP_CF_CONNECTING_IP'];</p><p>$url = 'http://votingapi.com/validate.php?user=PAGENAME&ip=' . $ip;</p><p>$hasvoted = @file_get_contents($url);</p><p>if($hasvoted != '1' && $hasvoted != '2'){</p><p>header ("Location: https://findretros.com/vote/PAGENAME");</p><p>exit;</p><p>}</p><p>?>[/CODE]</p><p></p><p><span style="color: rgb(226, 80, 65)">2. </span><span style="color: rgb(0, 0, 0)">Now where it says..</span></p><p>[CODE=php]$url = 'http://votingapi.com/validate.php?user=PAGENAME&ip=' . $ip;[/CODE]</p><p>Replace <strong>PAGENAME</strong> <span style="color: rgb(0, 0, 0)">with your </span><span style="color: rgb(147, 101, 184)">FindRetros </span><span style="color: rgb(0, 0, 0)">page name, <strong>not your profile name - i.e - </strong>If your page name is 'HABBOHOTEL' then replace PAGENAME with HABBOHOTEL.</span></p><p></p><p>Also replace <strong>PAGENAME</strong> here too..</p><p>[CODE=php]header ("Location: https://findretros.com/vote/PAGENAME");[/CODE]</p><p></p><p><span style="color: rgb(226, 80, 65)">3. </span>Now whatever page you want your users to vote on add the code below (Usually above <strong><!DOCTYPE html></strong>)..</p><p>[CODE=php]<?php include_once ("forcevote.php");</p><p>?>[/CODE]</p><p><strong>Client.php </strong>and<strong> me.php</strong> is usually where most hotels decide to put theirs but it is entirely up to you where you want to put yours. <span style="color: rgb(226, 80, 65)">I definitely don't recommend to put the code on your Index.php as I believe it's against FindRetros' rules.</span></p><p></p><p>Save forcevote.php and then you're ready to go.</p><p></p><p>Leave a like <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="ZaneyRetros, post: 443540, member: 61600"] Hi all, surely this has been released elsewhere but there are many on DevBest that have incorrect code or loop once voted. [B]Requirements: - FindRetros account, set that up if you haven't on [URL]http://findretros.com[/URL][/B] - [NOT REQUIRED] [B]A banner[/B] [COLOR=rgb(226, 80, 65)]1.[/COLOR] Create an account on [COLOR=rgb(147, 101, 184)]FindRetros[/COLOR][COLOR=rgb(0, 0, 0)]. If you already have an account, login and proceed to the next step.[/COLOR] [COLOR=rgb(226, 80, 65)]2. [/COLOR][COLOR=rgb(0, 0, 0)]Make a .php file in your skin folder named [B]Forcevote.php [/B]and add the code below.[/COLOR] [CODE=php]<?php $ip = $_SERVER['HTTP_CF_CONNECTING_IP']; $url = 'http://votingapi.com/validate.php?user=PAGENAME&ip=' . $ip; $hasvoted = @file_get_contents($url); if($hasvoted != '1' && $hasvoted != '2'){ header ("Location: https://findretros.com/vote/PAGENAME"); exit; } ?>[/CODE] [COLOR=rgb(226, 80, 65)]2. [/COLOR][COLOR=rgb(0, 0, 0)]Now where it says..[/COLOR] [CODE=php]$url = 'http://votingapi.com/validate.php?user=PAGENAME&ip=' . $ip;[/CODE] Replace [B]PAGENAME[/B] [COLOR=rgb(0, 0, 0)]with your [/COLOR][COLOR=rgb(147, 101, 184)]FindRetros [/COLOR][COLOR=rgb(0, 0, 0)]page name, [B]not your profile name - i.e - [/B]If your page name is 'HABBOHOTEL' then replace PAGENAME with HABBOHOTEL.[/COLOR] Also replace [B]PAGENAME[/B] here too.. [CODE=php]header ("Location: https://findretros.com/vote/PAGENAME");[/CODE] [COLOR=rgb(226, 80, 65)]3. [/COLOR]Now whatever page you want your users to vote on add the code below (Usually above [B]<!DOCTYPE html>[/B]).. [CODE=php]<?php include_once ("forcevote.php"); ?>[/CODE] [B]Client.php [/B]and[B] me.php[/B] is usually where most hotels decide to put theirs but it is entirely up to you where you want to put yours. [COLOR=rgb(226, 80, 65)]I definitely don't recommend to put the code on your Index.php as I believe it's against FindRetros' rules.[/COLOR] Save forcevote.php and then you're ready to go. Leave a like :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUTORIAL] How to set up FindRetros?
Top