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.
2. Now where it says..
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..
3. Now whatever page you want your users to vote on add the code below (Usually above <!DOCTYPE html>)..
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
Requirements:
- FindRetros account, set that up if you haven't on
You must be registered for see links
- [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;
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");
?>
Save forcevote.php and then you're ready to go.
Leave a like
Last edited: