[TUTORIAL] How to set up FindRetros?

ZaneyRetros

i am dead
Jul 27, 2015
211
105
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

- [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

i am dead
Jul 27, 2015
211
105
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
 

Harry8999

New Member
Jan 26, 2019
1
0
Stuck at registration how do I format this
 

Attachments

  • Screenshot_20190126-235503_Samsung Internet.jpg
    Screenshot_20190126-235503_Samsung Internet.jpg
    185.4 KB · Views: 74

gochad

Lacrim
Feb 9, 2019
122
20
is it supposed to be like this

<?php
$ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
$url = ' ' . $ip;
$hasvoted = @file_get_contents($url);
if($hasvoted != '1' && $hasvoted != '2'){
header ("Location: ");
exit;
}
?>
 

Chuckie_

Active Member
Jun 22, 2019
138
71
How to set this up properly?
Post automatically merged:

Anyone got screens?
Are you asking how to set this up on the actual tutorial thread? What do you need screenshots for? Try to follow the tutorial and if you run into problems, post your questions. Looks like this tutorial targets RevCMS, if you are using another CMS, chances are that findretros integration is already implemented.
 

Joe

Well-Known Member
Jun 10, 2012
4,088
1,915
How to set this up properly?
Post automatically merged:

Anyone got screens?
I also made a tutorial that's if you can't follow the simple instructions above.
 

Users who are viewing this thread

Top