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
Miscellaneous
FindRetros
Help & Support
How to add an easy 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="HrCrazy" data-source="post: 36826" data-attributes="member: 3218"><p>Well I've seen alot of people having trouble with adding api's, so here's a basic code that does the exact same thing as an api would do. But all you need to do is add another page called /api.php or whatever and make that page come up when you click enter hotel.</p><p></p><p>Here's the code to put on that page;</p><p>[HTML]</p><p> </p><p> </p><p></p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><head></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><title>Thehabbos - Voting Script</title></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><style type="text/css"></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>body {</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> background-image: url('http://i209.photobucket.com/albums/bb176/TheTrueHabbo127/bg.png');</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> font-family: Verdana;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> font-size: 10px;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> color: #000000;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>}</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>#contentHolder {</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> width: 450px;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> margin: auto;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> background-color: #FFFFFF;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> padding: 10px;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> border: 1px solid #CCCCCC;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> text-align: center;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>}</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>.contentTitle {</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> color: black;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> font-size: 24px; </p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> font-weight: bold;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> margin-bottom: 10px;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> border-bottom: 1px solid #CCCCCC;</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>}</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></style></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></head></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><body> </p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><div id="contentHolder"></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> <div class="contentTitle">Please Vote </div></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> Click the banner below to help make HOTEL NAME stay popular. You will be redirected to the <B>Client.</B></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> <br /></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> <form action="http://thehabbos.org/topsites/vote/THEHABBOS ACCOUNT NAME." method="post"></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> <input type="hidden" name="api_url" value="http://HOTELLINK/CLIENT" /></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> <input style="width: 120px; height: 40px; background-image: url(http://thehabbos.org/topsites/button.php); border: 0px; cursor: pointer;" type="submit" name="votingAPI" value="" /></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p> </form></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></div></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p><!-- --><script type="text/javascript" src="http://images.webs.com/static/global/js/webs/usersites/escort.js"></script><script type="text/javascript">if(typeof(urchinTracker)=='function'){_uacct="UA-230305-2";_udn="none";_uff=false;urchinTracker();}</script><!-- --><script type="text/javascript" src="http://images.webs.com/static/global/js/webs/usersites/escort.js"></script><script type="text/javascript">if(typeof(urchinTracker)=='function'){_uacct="UA-230305-2";_udn="none";_uff=false;urchinTracker();}</script></body></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></html></p><p>[/HTML]</p><p></p><p>You will need to edit the bit where it says ACCOUNT NAME and HOTEL NAME.</p><p>This might seem abit nooby but I hope it helped, it's MUCH easier to use if you don't know how to setup the normal API.</p><p></p><p><span style="font-size: 9px"><em>-------------------------- Post merged 8 Hours 37 minutes after original post. ---------------------------</em></span></p><p></p><p>Please don't leave any harsh comments please, as it is my first attempt at a thread like this.</p><p></p><p><span style="font-size: 9px"><em>-------------------------- Post merged 4 Hours 47 minutes after original post. ---------------------------</em></span></p><p></p><p>If you're having any troubles, PM me and I will be happy to help via tv or just to instruct you and tell you what to do. However you shouldn't have any problems.</p></blockquote><p></p>
[QUOTE="HrCrazy, post: 36826, member: 3218"] Well I've seen alot of people having trouble with adding api's, so here's a basic code that does the exact same thing as an api would do. But all you need to do is add another page called /api.php or whatever and make that page come up when you click enter hotel. Here's the code to put on that page; [HTML] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Thehabbos - Voting Script</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <style type="text/css"> body { background-image: url('http://i209.photobucket.com/albums/bb176/TheTrueHabbo127/bg.png'); font-family: Verdana; font-size: 10px; color: #000000; } #contentHolder { width: 450px; margin: auto; background-color: #FFFFFF; padding: 10px; border: 1px solid #CCCCCC; text-align: center; } .contentTitle { color: black; font-size: 24px; font-weight: bold; margin-bottom: 10px; border-bottom: 1px solid #CCCCCC; } </style> </head> <body> <div id="contentHolder"> <div class="contentTitle">Please Vote </div> Click the banner below to help make HOTEL NAME stay popular. You will be redirected to the <B>Client.</B> <br /> <form action="http://thehabbos.org/topsites/vote/THEHABBOS ACCOUNT NAME." method="post"> <input type="hidden" name="api_url" value="http://HOTELLINK/CLIENT" /> <input style="width: 120px; height: 40px; background-image: url(http://thehabbos.org/topsites/button.php); border: 0px; cursor: pointer;" type="submit" name="votingAPI" value="" /> </form> </div> <!-- --><script type="text/javascript" src="http://images.webs.com/static/global/js/webs/usersites/escort.js"></script><script type="text/javascript">if(typeof(urchinTracker)=='function'){_uacct="UA-230305-2";_udn="none";_uff=false;urchinTracker();}</script><!-- --><script type="text/javascript" src="http://images.webs.com/static/global/js/webs/usersites/escort.js"></script><script type="text/javascript">if(typeof(urchinTracker)=='function'){_uacct="UA-230305-2";_udn="none";_uff=false;urchinTracker();}</script></body> </html> [/HTML] You will need to edit the bit where it says ACCOUNT NAME and HOTEL NAME. This might seem abit nooby but I hope it helped, it's MUCH easier to use if you don't know how to setup the normal API. [SIZE="1"][i]-------------------------- Post merged 8 Hours 37 minutes after original post. ---------------------------[/i][/SIZE] Please don't leave any harsh comments please, as it is my first attempt at a thread like this. [SIZE="1"][i]-------------------------- Post merged 4 Hours 47 minutes after original post. ---------------------------[/i][/SIZE] If you're having any troubles, PM me and I will be happy to help via tv or just to instruct you and tell you what to do. However you shouldn't have any problems. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Miscellaneous
FindRetros
Help & Support
How to add an easy API.
Top