Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Tutorials
[GUIDE] How to set up thehabbos_api
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Hypomethic" data-source="post: 125179" data-attributes="member: 19579"><p style="text-align: left"><span style="font-family: 'Verdana'"><span style="color: #333333">There are probably many tutorials out there on how to set this up. But people still have issues. So my objective here is to make an 100% idiot-proof tutorial to set it up.</span></span></p><p></p><p><strong><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-size: 18px">Downloads:</span></span></span></strong></p><p></p><p><a href="http://api.thehabbos.org/" target="_blank"><span style="font-family: 'Verdana'"><span style="color: #256e97"><span style="color: #ff0000">TheHabbos_api</span></span></span></a></p><p><a href="http://www.rarlab.com/download.htm" target="_blank"><span style="font-family: 'Verdana'"><span style="color: #256e97"><span style="color: #ff0000">Winrar</span></span></span></a></p><p></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">################################################################################################</span></span></p><p></p><p><span style="color: #40e0d0"><span style="font-family: 'Verdana'">1.)</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> Download the newest version of thehabbos_api.</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><img src="http://i1062.photobucket.com/albums/t495/LandLineSwagg/thehabbos_api%20tut/image1.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></p><p></p><p><span style="color: #40e0d0"><span style="font-family: 'Verdana'">2.)</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> When you download it, it will be in a .zip format. You will need winrar to extract it. </span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Select the version that works with your computer. (32-Bit, or 64-Bit.)</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">To tell what your computer is </span></span><a href="http://support.microsoft.com/kb/827218" target="_blank"><span style="font-family: 'Verdana'"><span style="color: #256e97"><span style="color: #ff0000">click here</span></span></span></a></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><img src="http://i1062.photobucket.com/albums/t495/LandLineSwagg/thehabbos_api%20tut/image2.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></p><p></p><p><span style="color: #40e0d0"><span style="font-family: 'Verdana'">3.)</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> Extract it somewhere you can get to easily. Like your desktop.</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Your file will look something like this. </span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">(I recommend making a folder called "thehabbos_api." To keep it organized. </span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><img src="http://i1062.photobucket.com/albums/t495/LandLineSwagg/thehabbos_api%20tut/image3.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></p><p></p><p><span style="color: #40e0d0"><span style="font-family: 'Verdana'">4.)</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> Once extracted onto your desktop, open the folder. There will be 3 folders. Unless you are using a MAC, you only need to open the upload folder.</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><img src="http://i1062.photobucket.com/albums/t495/LandLineSwagg/thehabbos_api%20tut/image4.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></p><p></p><p><span style="color: #40e0d0"><span style="font-family: 'Verdana'">5.)</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> Upload all the files within the upload folder, to your wwwroot directory.</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">(Where your cms is hosted.)</span></span></p><p></p><p><span style="color: #40e0d0"><span style="font-family: 'Verdana'">6.)</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> Open the </span></span><span style="color: #40e0d0"><span style="font-family: 'Verdana'">"habbos_api>config.php."</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> and edit as follows, and then save it.</span></span></p><p></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Where it says "$CONFIG['Username']." Put your username for thehabbos.org. If you are not registered, you can register </span></span><a href="http://thehabbos.org/join" target="_blank"><span style="font-family: 'Verdana'"><span style="color: #256e97"><span style="color: #ff0000">here</span></span></span></a></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Where it says "$CONFIG['URL']." Put the link to where it is on your site. E.G "whateverhotel.com/api.php."</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em> </em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em>$CONFIG['Username'] = 'TheHabbos Username'; //thehabbos topsites username</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em>$CONFIG['URL'] = '<a href="http://example.com/api.php';" target="_blank">http://example.com/api.php';</a> //the location to the file api.php on your website (i.e. <a href="http://example.com/api.php" target="_blank"><span style="color: #256e97">IANA &mdash; Example domains</span></a>)</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">If you are using xampp change "$CONFIG['Curl_Enabled']." From "1" to "0" If you arn't using Xampp then skip this step.</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em> </em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em>$CONFIG['Curl_Enabled'] = 1; //mark this 0 if cURL isn't installed/enabled on your server, although cURL is recommended</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">If you are running REVCMS then go to</span></span><span style="color: #40e0d0"><span style="font-family: 'Verdana'">"thehabbos_api>types>client.php."</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> And open it in notepad. click "edit>replace." where it says "Find What:" put "client.php" and where it says "Replace With:" put "client" Now just simply replace them all, then save it.</span></span></p><p></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Lastly, open </span></span><span style="color: #40e0d0"><span style="font-family: 'Verdana'">"thehabbos_api>core.lang.php"</span></span><span style="font-family: 'Verdana'"><span style="color: #333333"> and replace the top of that page with</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em> </em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em><?php</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em>if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em></em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em>////////////////////////////////////////////////////////</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em>// # TheHabbos Topsites API Script - Release 1.0.3 //</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em>// # © Copyright TheHabbos 2011. All rights reserved. //</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333"><span style="font-family: 'Tahoma'"><em>////////////////////////////////////////////////////////</em></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Then save it.</span></span></p><p></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Now all you need to do is open me.php and change the enter button to open "/api.php" instead of "/client" Then go to every other page that has an enter button on it, and do the same.</span></span></p><p></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">You should now have thehabbos_api setup!</span></span></p><p></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Credits;</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">- thehabbos.org; for creating the api.</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">- ralab; for creating winrar.</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #333333">- me; for making this tutorial.</span></span></p></blockquote><p></p>
[QUOTE="Hypomethic, post: 125179, member: 19579"] [LEFT][FONT=Verdana][COLOR=#333333]There are probably many tutorials out there on how to set this up. But people still have issues. So my objective here is to make an 100% idiot-proof tutorial to set it up.[/COLOR][/FONT][/LEFT] [B][FONT=Verdana][COLOR=#333333][SIZE=5]Downloads:[/SIZE][/COLOR][/FONT][/B] [URL='http://api.thehabbos.org/'][FONT=Verdana][COLOR=#256e97][COLOR=#ff0000]TheHabbos_api[/COLOR][/COLOR][/FONT][/URL] [URL='http://www.rarlab.com/download.htm'][FONT=Verdana][COLOR=#256e97][COLOR=#ff0000]Winrar[/COLOR][/COLOR][/FONT][/URL] [FONT=Verdana][COLOR=#333333]################################################################################################[/COLOR][/FONT] [COLOR=#40e0d0][FONT=Verdana]1.)[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] Download the newest version of thehabbos_api.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333][IMG]http://i1062.photobucket.com/albums/t495/LandLineSwagg/thehabbos_api%20tut/image1.jpg[/IMG][/COLOR][/FONT] [COLOR=#40e0d0][FONT=Verdana]2.)[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] When you download it, it will be in a .zip format. You will need winrar to extract it. [/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]Select the version that works with your computer. (32-Bit, or 64-Bit.)[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]To tell what your computer is [/COLOR][/FONT][URL='http://support.microsoft.com/kb/827218'][FONT=Verdana][COLOR=#256e97][COLOR=#ff0000]click here[/COLOR][/COLOR][/FONT][/URL] [FONT=Verdana][COLOR=#333333][IMG]http://i1062.photobucket.com/albums/t495/LandLineSwagg/thehabbos_api%20tut/image2.jpg[/IMG][/COLOR][/FONT] [COLOR=#40e0d0][FONT=Verdana]3.)[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] Extract it somewhere you can get to easily. Like your desktop.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]Your file will look something like this. [/COLOR][/FONT] [FONT=Verdana][COLOR=#333333](I recommend making a folder called "thehabbos_api." To keep it organized. [/COLOR][/FONT] [FONT=Verdana][COLOR=#333333][IMG]http://i1062.photobucket.com/albums/t495/LandLineSwagg/thehabbos_api%20tut/image3.jpg[/IMG][/COLOR][/FONT] [COLOR=#40e0d0][FONT=Verdana]4.)[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] Once extracted onto your desktop, open the folder. There will be 3 folders. Unless you are using a MAC, you only need to open the upload folder.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333][IMG]http://i1062.photobucket.com/albums/t495/LandLineSwagg/thehabbos_api%20tut/image4.jpg[/IMG][/COLOR][/FONT] [COLOR=#40e0d0][FONT=Verdana]5.)[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] Upload all the files within the upload folder, to your wwwroot directory.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333](Where your cms is hosted.)[/COLOR][/FONT] [COLOR=#40e0d0][FONT=Verdana]6.)[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] Open the [/COLOR][/FONT][COLOR=#40e0d0][FONT=Verdana]"habbos_api>config.php."[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] and edit as follows, and then save it.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]Where it says "$CONFIG['Username']." Put your username for thehabbos.org. If you are not registered, you can register [/COLOR][/FONT][URL='http://thehabbos.org/join'][FONT=Verdana][COLOR=#256e97][COLOR=#ff0000]here[/COLOR][/COLOR][/FONT][/URL] [FONT=Verdana][COLOR=#333333]Where it says "$CONFIG['URL']." Put the link to where it is on your site. E.G "whateverhotel.com/api.php."[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333][FONT=Tahoma][I] $CONFIG['Username'] = 'TheHabbos Username'; //thehabbos topsites username $CONFIG['URL'] = '[url]http://example.com/api.php';[/url] //the location to the file api.php on your website (i.e. [URL='http://example.com/api.php'][COLOR=#256e97]IANA — Example domains[/COLOR][/URL])[/I][/FONT][/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]If you are using xampp change "$CONFIG['Curl_Enabled']." From "1" to "0" If you arn't using Xampp then skip this step.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333][FONT=Tahoma][I] $CONFIG['Curl_Enabled'] = 1; //mark this 0 if cURL isn't installed/enabled on your server, although cURL is recommended[/I][/FONT][/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]If you are running REVCMS then go to[/COLOR][/FONT][COLOR=#40e0d0][FONT=Verdana]"thehabbos_api>types>client.php."[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] And open it in notepad. click "edit>replace." where it says "Find What:" put "client.php" and where it says "Replace With:" put "client" Now just simply replace them all, then save it.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]Lastly, open [/COLOR][/FONT][COLOR=#40e0d0][FONT=Verdana]"thehabbos_api>core.lang.php"[/FONT][/COLOR][FONT=Verdana][COLOR=#333333] and replace the top of that page with[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333][FONT=Tahoma][I] <?php if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; } //////////////////////////////////////////////////////// // # TheHabbos Topsites API Script - Release 1.0.3 // // # © Copyright TheHabbos 2011. All rights reserved. // ////////////////////////////////////////////////////////[/I][/FONT][/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]Then save it.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]Now all you need to do is open me.php and change the enter button to open "/api.php" instead of "/client" Then go to every other page that has an enter button on it, and do the same.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]You should now have thehabbos_api setup![/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]Credits;[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]- thehabbos.org; for creating the api.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]- ralab; for creating winrar.[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]- me; for making this tutorial.[/COLOR][/FONT] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[GUIDE] How to set up thehabbos_api
Top