FindRetros | Register & Client voting [UberCMS]
FindRetros client voting API
I can fairly say that the new API for FindRetros isn't as good as the old one, because now it makes life harder for us all, since we can only redirect a vote to one page. But I coded a very small addon for my hotel, which enables voting on the register page, and client. I know it is simple, as I am not a professional PHP coder; or what not.. But this is what I have, and it works for me; the way I want it to work.
Features:
FindRetros official API
FindRetros voted.php
Version : 1
Revision : 1
Download
----------
Version : 1
Revision : 2
Soon to come (possibly if I have enough people using it)
----------------------------------------
How to use/setup?
Simply download the API above (use latest version & revision); and place in main directory of your UberCMS. And follow the "instructions.txt" - and you should be good to go!
Re: FindRetros | Register & Client voting [UberCMS]
Thanks for this since it's 'UberCMS'.
Re: FindRetros | Register & Client voting [UberCMS]
Re: FindRetros | Register & Client voting [UberCMS]
Re: FindRetros | Register & Client voting [UberCMS]
Quote:
Originally Posted by
TheWulles
Screenshots please ...
Can't tell if that's meant to be a joke, or?
Re: FindRetros | Register & Client voting [UberCMS]
Give us a screen shot PLEASE! :)
Re: FindRetros | Register & Client voting [UberCMS]
Quote:
Originally Posted by
Cheece
Give us a screen shot PLEASE! :)
No need to.
Re: FindRetros | Register & Client voting [UberCMS]
Thanks! I won't be using this for a while on my UberCMS hotel but it's good to see a UberCMS release.
Re: FindRetros | Register & Client voting [UberCMS]
Just thought I'd bump this.
Re: FindRetros | Register & Client voting [UberCMS]
Quote:
Originally Posted by
Reverb
Just thought I'd bump this.
Why are you bumping a release?!
Re: FindRetros | Register & Client voting [UberCMS]
Does this work on revcms?
Re: FindRetros | Register & Client voting [UberCMS]
Quote:
Originally Posted by
Tash
Does this work on revcms?
Download forcevote.. much better
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=YOURVOTINGAPINAME&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=YOURVOTINGAPINAME&api=http:!!LINKTOHOTEL!index?novote");
exit;
}
}
?>
add this in me.php or client.php:
Code:
<?php include_once ("forcevote.php"); ?>
remember, save the forcevote.php in your skin folder and in your htdoocs..
Re: FindRetros | Register & Client voting [UberCMS]
Quote:
Originally Posted by
Jiozx
Download forcevote.. much better
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=YOURVOTINGAPINAME&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=YOURVOTINGAPINAME&api=http:!!LINKTOHOTEL!index?novote");
exit;
}
}
?>
add this in me.php or client.php:
Code:
<?php include_once ("forcevote.php"); ?>
remember, save the forcevote.php in your skin folder and in your htdoocs..
Thought this no longer works, tysm.
Re: FindRetros | Register & Client voting [UberCMS]
Quote:
Originally Posted by
Tash
Thought this no longer works, tysm.
You're welcome.