FindRetros, forcevote script?

Results 1 to 15 of 15
  1. #1
    Enthusiast rxnniespo is offline
    MemberRank
    Apr 2015 Join Date
    49Posts

    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!


  2. #2
    Retired Robot is offline
    MemberRank
    Apr 2015 Join Date
    EnglandLocation
    720Posts

    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;
    }
    }
    ?>

  3. #3
    Enthusiast rxnniespo is offline
    MemberRank
    Apr 2015 Join Date
    49Posts

    Re: FindRetros, forcevote script?

    Quote Originally Posted by Robot View Post
    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?

  4. #4
    Retired Robot is offline
    MemberRank
    Apr 2015 Join Date
    EnglandLocation
    720Posts

    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.

  5. #5
    Enthusiast rxnniespo is offline
    MemberRank
    Apr 2015 Join Date
    49Posts

    Re: FindRetros, forcevote script?

    Quote Originally Posted by Robot View Post
    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...

  6. #6
    Retired Robot is offline
    MemberRank
    Apr 2015 Join Date
    EnglandLocation
    720Posts

    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.

  7. #7
    Enthusiast rxnniespo is offline
    MemberRank
    Apr 2015 Join Date
    49Posts

    Re: FindRetros, forcevote script?

    Quote Originally Posted by Robot View Post
    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
    Last edited by rxnniespo; 07-05-15 at 11:15 PM.

  8. #8
    Retired Robot is offline
    MemberRank
    Apr 2015 Join Date
    EnglandLocation
    720Posts

    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;
    }
    }
    ?>

  9. #9
    Enthusiast rxnniespo is offline
    MemberRank
    Apr 2015 Join Date
    49Posts

    Re: FindRetros, forcevote script?

    Quote Originally Posted by Robot View Post
    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

  10. #10
    Retired Robot is offline
    MemberRank
    Apr 2015 Join Date
    EnglandLocation
    720Posts

    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?
    Last edited by Robot; 07-05-15 at 11:49 PM.

  11. #11
    Hakuna Matata Matata is offline
    MemberRank
    Sep 2012 Join Date
    DenmarkLocation
    807Posts

    Re: FindRetros, forcevote script?

    Quote Originally Posted by Robot View Post
    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($url1$context);
    if(!
    $data || !is_numeric($data)) {
    return 
    "Error";
    }
    else if (
    $data == || $data == 2) {
    }
    else {
    header ("Location: http://votingapi.com/vote.php?username=utopia&api=http://habbeh.com?novote");
    exit;
    }
    }
    ?>

  12. #12
    Retired Robot is offline
    MemberRank
    Apr 2015 Join Date
    EnglandLocation
    720Posts

    Re: FindRetros, forcevote script?

    Quote Originally Posted by Matata View Post
    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($url1$context);
    if(!
    $data || !is_numeric($data)) {
    return 
    "Error";
    }
    else if (
    $data == || $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 :)

  13. #13
    Hakuna Matata Matata is offline
    MemberRank
    Sep 2012 Join Date
    DenmarkLocation
    807Posts

    Re: FindRetros, forcevote script?

    Quote Originally Posted by Robot View Post
    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!

  14. #14
    Enthusiast rxnniespo is offline
    MemberRank
    Apr 2015 Join Date
    49Posts

    Re: FindRetros, forcevote script?

    Issue resolved, somehow fixed it.

    Please, close this thread.

  15. #15
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,078Posts

    Re: FindRetros, forcevote script?

    Thread closed since issue has been solved. If you need it reopen, just PM me.



Advertisement