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 :)