[TUT]How to setup Force Voting API (TheHabbos)

Results 1 to 16 of 16
  1. #1
    Account Upgraded | Title Enabled! Nesar is offline
    MemberRank
    Aug 2011 Join Date
    Anime LandLocation
    748Posts

    cool [TUT]How to setup Force Voting API (TheHabbos)

    Alot of people requesting on how to do this.So here it is!

    Here is quick & small tutorial on how to setup API TheHabbos Voting System.

    What is API Voting system of Thehabbos?.

    Well,Its a php script system which will make players forces themself to vote your hotel at topsite Thehabbos.Then you will be redirected to the client.

    Okay,Lets get started!.

    1.Go to TheHabbos.ORG - API and download the api script.

    2.Extract into your main htdocs or wwwroot.

    3.Now into your htdocs or wwwroot and find "thehabbos_api" folder,Then open config.php with notepad file.

    Now edit the following parts as you like.
    I have named in the code which you need to edit.
    PHP Code:
    <?php
    //////////////////////////////////////////////////////////////
    // # TheHabbos Topsites API Script - Release 1.0.0 (BETA 2) //
    // # (C) Copyright TheHabbos 2010. All rights reserved.     //
    //////////////////////////////////////////////////////////////

    if(!defined('IN_THEHABBOS_API')) {
      die(
    'Sorry, but you can not access this file directly. :(');
    }

    /* FEEL FREE TO EDIT ANYTHING BELOW */

    $CONFIG['Username'] = 'YOUR THEHABBOS TOPSITE ACCOUNT NAME'//thehabbos topsites username
    $CONFIG['URL'] = 'HTTP://YOUR HOTEL URL WITHOUTH ENDING WITH SLASH/api.php'//the location to the file api.php on your website (i.e. http://example.com/api.php)
    $CONFIG['Type'] = 'client'//current options: other or client (thehabbos_api/types)
    $CONFIG['Style'] = 'Habbo Sleek'//don't change this unless you have created your own style (thehabbos_api/styles)
    $CONFIG['Credits'] = 'PUT VALUE HERE SO WHEN THEY VOTE.THEY GET CREDITS!!(DEFAULT:1000)'//you can use this if you are using a specific type above - your users will be rewarded this many credits for voting

    /* DO NOT EDIT ANYTHING BELOW */

    $votingValidation = new Validate();
    $CONFIG['Status'] = $votingValidation->validateVote();
    Now save it.

    4.Now instead of them going to client you need to redirect them to the api.php which is in your htdocs or wwwroot main folder.

    5.Replace the link everywhere that goes to \client to api.php.

    6.Done!,Simple isn't it?

    There you have it :)
    Last edited by Nesar; 30-08-11 at 11:38 PM.


  2. #2
    Account Upgraded | Title Enabled! shabbzy is offline
    MemberRank
    Oct 2008 Join Date
    EnglandLocation
    248Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    lmao doesn't work...

    Done everything above correctly, even made my dad do it too lool

    Doesn't work, Well it does work but when I click vote it just stays there.. The client doesn't...

    Also changing the "client/index" to something like "enter.php" how does that make the client load?

    Explain In Noobish Language cause some of us aren't smart is this stuff...

    Im a designer not a scripter

  3. #3
    Account Upgraded | Title Enabled! Nesar is offline
    MemberRank
    Aug 2011 Join Date
    Anime LandLocation
    748Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    I have fixed that step more easier that they can do the hard one.

  4. #4
    Account Upgraded | Title Enabled! iPukeEVO is offline
    MemberRank
    Aug 2011 Join Date
    Freeport,BahamaLocation
    335Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Thanks for teh tutorial :)

  5. #5
    Account Upgraded | Title Enabled! Xavi. is offline
    MemberRank
    Jul 2010 Join Date
    At Home.phpLocation
    708Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Thank you for this, quite useful

    Posted via BlackBerry Curve 8520
    The Sexier Way To Browse The Internet

  6. #6
    Account Upgraded | Title Enabled! shabbzy is offline
    MemberRank
    Oct 2008 Join Date
    EnglandLocation
    248Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    4.Now instead of them going to client you need to redirect them to the api.php which is in your htdocs or wwwroot main folder.

    5.Replace the link everywhere that goes to \client to api.php.

    6.Done!,Simple isn't it?
    I'm Still A Noob, Explain Further Please... "Where do I Replace (client) For (api.php)?

    I Don't understand why no one makes it noob friendly... It's like they think were fucking robots and know all this shit..

  7. #7
    Alpha Member zMagenta is offline
    MemberRank
    Jun 2011 Join Date
    1,860Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Thanks for this Nesar.

  8. #8
    Account Upgraded | Title Enabled! Nesar is offline
    MemberRank
    Aug 2011 Join Date
    Anime LandLocation
    748Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Quote Originally Posted by shabbzy View Post
    I'm Still A Noob, Explain Further Please... "Where do I Replace (client) For (api.php)?

    I Don't understand why no one makes it noob friendly... It's like they think were fucking robots and know all this shit..
    Like edit headers.php and me.php in Phoenix PHP.

    If you don't understand but i can't better way to explain it.

  9. #9
    Account Upgraded | Title Enabled! shabbzy is offline
    MemberRank
    Oct 2008 Join Date
    EnglandLocation
    248Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    No It Doesn't Work... It Just Stays On The "Vote Us Page" With The Button Image & When You Click It..

    It Just Refreshes & Stays The Same... Solution?

  10. #10
    Account Upgraded | Title Enabled! Nesar is offline
    MemberRank
    Aug 2011 Join Date
    Anime LandLocation
    748Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Quote Originally Posted by shabbzy View Post
    No It Doesn't Work... It Just Stays On The "Vote Us Page" With The Button Image & When You Click It..

    It Just Refreshes & Stays The Same... Solution?
    Well then thats your Internet IP Problem.

    Some of people having problem that redirecting themself again to the vote page.

    But others get to client after they vote.

    Everything works fine.

  11. #11
    Account Upgraded | Title Enabled! shabbzy is offline
    MemberRank
    Oct 2008 Join Date
    EnglandLocation
    248Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    hmmm, how about I delete everything from the "habbo api folder and the api.php" and you do it for me?

    team view? I might be doing something wrong.. what you say?

  12. #12
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Quote Originally Posted by shabbzy View Post
    lmao doesn't work...

    Done everything above correctly, even made my dad do it too lool

    Doesn't work, Well it does work but when I click vote it just stays there.. The client doesn't...

    Also changing the "client/index" to something like "enter.php" how does that make the client load?

    Explain In Noobish Language cause some of us aren't smart is this stuff...

    Im a designer not a scripter
    Y-Your dad?? \facepalm

  13. #13
    Account Upgraded | Title Enabled! shabbzy is offline
    MemberRank
    Oct 2008 Join Date
    EnglandLocation
    248Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Was Bored... Wondering If He Could Do It lool Why Is That Weird?

  14. #14
    Legend donszeh is offline
    MemberRank
    Jul 2008 Join Date
    DutchLocation
    422Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Usefull

  15. #15
    sexiess is a sin. Subway is offline
    MemberRank
    Jun 2010 Join Date
    2,491Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    Lmao@ this Rasta included instructions on how to set up api in download didn't he?

    #I'm out

  16. #16
    Account Upgraded | Title Enabled! shabbzy is offline
    MemberRank
    Oct 2008 Join Date
    EnglandLocation
    248Posts

    Re: [TUT]How to setup Force Voting API (TheHabbos)

    psshttt "SUBWAY" I Got it To Work Now :P

    It's My Internet I'm Guessing Which Doesn't make Me Redirect Straight To The Client, But Solving This Is Simple but Just "Remove /api.php To /Client/

    :D



Advertisement