TheHabbos Voting API error?

Results 1 to 6 of 6
  1. #1
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    TheHabbos Voting API error?

    Hello, I'm using the API script from TheHabbos.org, but... When I apply it to my client, using:
    PHP Code:
    define('IN_CLIENT'1);
    require_once 
    'thehabbos_api/force.client.php'
    It does load to the voting page, although when you vote, it takes you back to the page, and even when you try and click on the vote button it just keeps staying on the one page.. So I was wondering, why is it doing this and what can I do to fix this problem? cheers!


  2. #2
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: TheHabbos Voting API error?

    bump..

  3. #3
    Sean told me to come back Late3 is offline
    MemberRank
    Jul 2007 Join Date
    United KingdomLocation
    1,205Posts

    Re: TheHabbos Voting API error?

    You configured it wrong, And its been 15 hours, don't bump.

  4. #4
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: TheHabbos Voting API error?

    Quote Originally Posted by Late3 View Post
    You configured it wrong, And its been 15 hours, don't bump.
    Who are you to tell me not to bump it? And I didn't configure it wrong, it's not working for me -.-

  5. #5
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: TheHabbos Voting API error?

    bumpppz , need help please ;3

  6. #6
    ☮TAKU???? seanrom is offline
    MemberRank
    Nov 2009 Join Date
    1,004Posts

    Re: TheHabbos Voting API error?

    You can take a look at the plugin I use myself.

    PHP Code:
    <?php
      $forcepages 
    explode(','$plugins->settings['voting']['config']['forcevote_pages']);
      
    //isset are faster than in_array!
      
    if(isset($forcepages[PAGE])) {
        
    $url 'http://votingapi.com/validate.php?user=' $this->plugins['voting']['config']['thehabbos_username'] . '&ip=' $_SERVER['REMOTE_ADDR'];
        
    $context stream_context_create(array('http' => array('timeout' => 5)));
        
    $data = @file_get_contents($url0$context);
        if(!
    $data || !is_numeric($data)) {
          echo 
    "<!-- [ERROR] System Failure in voting system. -->";
        } elseif(
    $data == 3) {
           
    $url $plugins->filter(str_replace("/""!"$this->plugins['voting']['config']['return_page']));
           
    header("Location: http://votingapi.com/vote.php?username=" $this->plugins['voting']['config']['thehabbos_username'] . "&api=" $url);
           exit;
        }
      }
    ?>
    Works great, theres no need for a class to check if a user has voted or not, and then force the visitor to vote!
    I can offer personal help fixing/installing this if you are in need, just PM me.



Advertisement