Hello RaGEZONE,
Since I've seen some hotels with this, and people asking on how to do this, I've decided to make a short little tutorial for this, and haven't seen a tutorial for this, and i have searched, I've decided to make one. :)
Things you need
Thehabbos.org account.
UberCMS 2
A brain..
Well first of all, you will need your thehabbos.org account for this, obviously, anyway, lets start.
1st Step:
Go into your htdocs or wwwroot, go into includes > configuration > ubercms_config, scroll down until you find this code:
Well first of all you will need to edit things, replace Zappy123 which is the starter thehabbos.org username when you download the CMS, edit it with your thehabbos.org username.Code:// Voting settings // - TheHabbos (Do you want to enable TheHabbos voting?) // - TheHabbos username (What is your hotels username on TheHabbos?) // - TheHabbos return url (Where do you want your users to return to? Replace / with !) // - TheHabbos disable index voting (Do you want to disable index voting?) $voting['thehabbos_enabled'] = false; $voting['thehabbos_username'] = 'Zappy123'; $voting['thehabbos_returnurl'] = 'http://yourhotel.com/novote'; $voting['disable_index_vote'] = false;
Next edit your hotel link.. to do this you will need to make it look like this as it says, replace the ' / ' with ' ! ' just basically copy this code replace it there and put your link:Code:Turn $voting['thehabbos_enable'] = false; to: $voting['thehabbos_enable'] = true;
As you can see I've replaced the ' / ' and put a ' ? ' before novote which will need to be there. Now you've set up the configuration, save it in notepad ++.Code:$voting['thehabbos_returnurl'] = 'http:!!yourlinkhere.com!?novote';
Next:
Go into newclient.php open it with notepad ++ and find this:
Now take this code and replace that code above with this one:Code:if ($voting['thehabbos_enabled'] == true) { if (!isset($_GET["novote"])) { header("Location: http://votingapi.com/vote.php?username=" . $voting['thehabbos_username'] . "&api=" . WWW . "/client?novote");
Now look at 2 lines below it you will see this ' } ' delete both of them, reload your index, vote, sign in, try your client, and trouble, or errors post below.Code://if ($voting['thehabbos_enabled'] == true) { //if (!isset($_GET["novote"])) { //header("Location: http://votingapi.com/vote.php?username=" . $voting['thehabbos_username'] . "&api=" . WWW . "/client?novote");
Goodluck.
*Credits
SubZ - 50%
Me - 50%






