FindRetros, forcevote script?
Hello, is there anyone out on this RageZone which can help me by sending me a FindRetros script due to the fact my current one not working correctly? Thank you!
Re: FindRetros, forcevote script?
Just add your information and replace everything todo with my stuff.
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=oakhotel&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=oakhotel&api=http://oak-hotel.com/?novote");
exit;
}
}
?>
Re: FindRetros, forcevote script?
Quote:
Originally Posted by
Robot
Just add your information and replace everything todo with my stuff.
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=oakhotel&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=oakhotel&api=http://oak-hotel.com/?novote");
exit;
}
}
?>
Thank you, may I ask where you added this into your CMS?
Re: FindRetros, forcevote script?
Just add it on top of your me.php file so when users login or register they will get sent to the voting page. Make sure you put your return url on retrolist account to your me page.
Re: FindRetros, forcevote script?
Quote:
Originally Posted by
Robot
Just add it on top of your me.php file so when users login or register they will get sent to the voting page. Make sure you put your return url on retrolist account to your me page.
Doesn't work tbh...
Re: FindRetros, forcevote script?
It works because I use it, it's because you haven't linked it all correctly. Where ever it says 'oak' just change it to your link or you username?
- - - Updated - - -
Note: Give me your link and retrolist account username then ill do it for you.
Re: FindRetros, forcevote script?
Quote:
Originally Posted by
Robot
It works because I use it, it's because you haven't linked it all correctly. Where ever it says 'oak' just change it to your link or you username?
- - - Updated - - -
Note: Give me your link and retrolist account username then ill do it for you.
Yes, I did do it correctly...
Findretros username: utopia
URL: habbeh.com
Re: FindRetros, forcevote script?
This should work, make sure you put the code just under <!DOCTYPE html>
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=utopia&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=utopia&api=http://habbeh.com?novote");
exit;
}
}
?>
Re: FindRetros, forcevote script?
Quote:
Originally Posted by
Robot
This should work, make sure you put the code just under <!DOCTYPE html>
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=utopia&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=utopia&api=http://habbeh.com?novote");
exit;
}
}
?>
You say I'm doing it incorrect, however - Screenshot by Lightshot and it just turns the page white lol
Re: FindRetros, forcevote script?
Works for me, goto (Removed) and check it for yourself?
Note: I've removed the link now, but it works fine for me so I'm not sure why it's not working for you.
- - - Updated - - -
@Matata , this worked fine for me therefore if you've disliked it, could you tell him what it is then?
Re: FindRetros, forcevote script?
Quote:
Originally Posted by
Robot
Works for me, goto (Removed) and check it for yourself?
Note: I've removed the link now, but it works fine for me so I'm not sure why it's not working for you.
- - - Updated - - -
@
Matata , this worked fine for me therefore if you've disliked it, could you tell him what it is then?
Didn't even notice that I disliked your post, I did it by mistake apparently.
But use this, OP. It's almost the same as Robot's but isn't restricted to RevCMS.
PHP 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=utopia&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=utopia&api=http://habbeh.com?novote");
exit;
}
}
?>
Re: FindRetros, forcevote script?
Quote:
Originally Posted by
Matata
Didn't even notice that I disliked your post, I did it by mistake apparently.
But use this, OP. It's almost the same as Robot's but isn't restricted to RevCMS.
PHP 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=utopia&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=utopia&api=http://habbeh.com?novote");
exit;
}
}
?>
Ahh I'm sorry for giving you bad rep too, as I thought you were trying to be a tool. But yeah thanks for this :)
Re: FindRetros, forcevote script?
Quote:
Originally Posted by
Robot
Ahh I'm sorry for giving you bad rep too, as I thought you were trying to be a tool. But yeah thanks for this :)
No worries!
Re: FindRetros, forcevote script?
Issue resolved, somehow fixed it.
Please, close this thread.
Re: FindRetros, forcevote script?
Thread closed since issue has been solved. If you need it reopen, just PM me.