[TUTORIAL] How to set up FindRetros?

ZaneyRetros

Active Member
Messages
131
Likes
46
#1
Hi all, surely this has been released elsewhere but there are many on DevBest that have incorrect code or loop once voted.

Requirements:
- FindRetros account, set that up if you haven't on [ To view this link you must register here. ]

- [NOT REQUIRED] A banner

1. Create an account on FindRetros. If you already have an account, login and proceed to the next step.

2. Make a .php file in your skin folder named Forcevote.php and add the code below.
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;
}
?>
2. Now where it says..
PHP:
$url = 'http://votingapi.com/validate.php?user=PAGENAME&ip=' . $ip;
Replace PAGENAME with your FindRetros page name, not your profile name - i.e - If your page name is 'HABBOHOTEL' then replace PAGENAME with HABBOHOTEL.

Also replace PAGENAME here too..
PHP:
header ("Location: https://findretros.com/vote/PAGENAME");
3. Now whatever page you want your users to vote on add the code below (Usually above <!DOCTYPE html>)..
PHP:
<?php include_once ("forcevote.php");
?>
Client.php and me.php is usually where most hotels decide to put theirs but it is entirely up to you where you want to put yours. I definitely don't recommend to put the code on your Index.php as I believe it's against FindRetros' rules.

Save forcevote.php and then you're ready to go.

Leave a like :)
 
Last edited:

ZaneyRetros

Active Member
Messages
131
Likes
46
#3
Ok So i did all this. and the client loads but didnt ask me to vote?
PHP:
<?php include_once ("forcevote.php");
?>
Have you included the code above <!DOCTYPE html> on Client.php?

If you want me to check myself to see if you've entered it all correct, message me on Discord: Zane#6149
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top