FindRetros Help

Quit

Need help ? Inbox me!
Nov 29, 2013
94
10
How to setup findretros to my Retro?
CMS: UberCMS 2.0
FindRetrosPageUrl: HabZoneUS
FindRetrosRetrunUrl:
 

Fume

wag1 piff ting
Dec 4, 2014
172
33
Save this as forcevote.php and save it in your CMS:
Code:
<?php

if(isset($_GET['voted'])) {

}
else {

$userip = "{$_SERVER['REMOTE_ADDR']}";
$current_url = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
$url = 'http://votingapi.com/validate.php?user=HOTELNAME&ip=' . $userip;
$context = stream_context_create(array('http' => array('timeout' => 1)));
$data = @file_get_contents($url, 1, $context);
if(!$data || !is_numeric($data)) {
return "Error";
}
else if ($data == 1 || $data == 2) {
}
else {
header ("Location: http://votingapi.com/vote.php?username=HOTELNAME&api=http:!!HOTELURL!index?novote");
exit;
}

}

?>
Make sure you replace HOTELNAME with your findretros page id.
go to your me page, or where you want it and add
Code:
<?php include_once ("forcevote.php");
at the bottom,
then go to findretros and edit your page, click 'voting' and change the url to yourlink/me
I hope I helped!
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,926
3,921
While the script above may work, I'd highly recommend using the .
 

Users who are viewing this thread

Top