Setting up findretros properly

Brackston

Member
Aug 6, 2014
232
20
Can someone give me the codes or straight forward instructions of settings up findretros force voting on the client? I had it working before, But some users got a redirect error, and some didnt. They got the redirect error going just to the homepage even. Help? :)
 

Zodiak

recovering crack addict
Nov 18, 2011
450
411
Use the API.

Or just do something like
PHP:
<?php
/* Check if voted */
if(!$_GET['voted'])
  header("location: https://findretros.com/rankings/vote/YOUR USER");
?>
Then set a web.config / .htaccess rule for /index.php?url=client&voted=1 or /client.php?voted=1 to be /client/voted
Then make your voting url in findretros.

I'd recommend the API personally.

EDIT: If you want it to be forceful so that they HAVE to vote, you'll have to use the API or create your own API, it isn't hard to do either way.
 

rent

Member
Sep 24, 2012
408
67
<?php
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }

if (!isset($_GET['novote']) && $_GET['url'] != 'register') {
$context = stream_context_create(array('https' => array('timeout' => 0.5)));
$data = file_get_contents(' ' . $_SERVER['REMOTE_ADDR'], 0, $context);
if($data == 3) {
header("Location: ");
exit;
}
}
?>

put that at the top of your client
 

Users who are viewing this thread

Top