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 Q&A
Client redirect to /me
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="RyanzRetros" data-source="post: 353161" data-attributes="member: 55855"><p>That depends, it could also be {server_ip}. The better way of fixing this if you're thinking about that would be to give him some code and instructions on how to make {server_ip}/{server_port} work.</p><p></p><p style="text-align: center">[SPOILER="Possible Fix - Expanded on Above Comment"]</p> <p style="text-align: center">Go to your <strong>class.template.php </strong>file, located in your app folder and look for these lines.</p> <p style="text-align: center"></p> <p style="text-align: center">[PHP]</p> <p style="text-align: center">$this->setParams('server_ip', $_CONFIG['hotel']['server_ip']);</p> <p style="text-align: center">$this->setParams('server_port', $_CONFIG['hotel']['server_port']);</p> <p style="text-align: center">[/PHP]</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">If they're not there, then add them BELOW hotelName</p> <p style="text-align: center"><img src="http://i.imgur.com/JH7aKXa.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center">Then go to your config.php file and add this:</p> <p style="text-align: center"><strong>$_CONFIG['hotel']['server_ip'] = '127.0.0.1'; //Server IP; insert the proxy IP here. NEVER put your VPS IP here!!</strong></p> <p style="text-align: center"><strong>$_CONFIG['hotel']['server_port'] = '30000'; //Server Port; insert the proxy/VPS's emulator port here.</strong></p> <p style="text-align: center">Now replace <strong>127.0.0.1</strong> with your <strong>PROXY IP (</strong><em><u>never use your VPS IP as this allows people to DDoS the hotel).</u></em></p> <p style="text-align: center">Then replace <strong>30000</strong> with the <strong>PORT </strong>from your <strong>PROXY</strong>.</p> <p style="text-align: center"></p> <p style="text-align: center">Last step is to replace your client.php file with the one below:</p> <p style="text-align: center">[HTML]</p> <p style="text-align: center"><!DOCTYPE html></p> <p style="text-align: center"><html lang="en"></p> <p style="text-align: center"> <head></p> <p style="text-align: center"> <meta http-equiv="content-type" content="text/html; charset=utf-8"></p> <p style="text-align: center"> <title>{hotelName} - Client</title></p> <p style="text-align: center"> </p> <p style="text-align: center"> <link rel="stylesheet" href="/app/tpl/skins/{skin}/styles/client.css" type="text/css"></p> <p style="text-align: center"> </p> <p style="text-align: center"> <script type="text/javascript" src="/app/tpl/skins/{skin}/js/swfobject.js"></script></p> <p style="text-align: center"> <script type="text/javascript"></p> <p style="text-align: center"> var BaseUrl = "{swf_folder}";</p> <p style="text-align: center"> var flashvars =</p> <p style="text-align: center"> {</p> <p style="text-align: center"> "client.starting" : "Please wait, {hotelName} is loading",</p> <p style="text-align: center"> "client.allow.cross.domain" : "1",</p> <p style="text-align: center"> "client.notify.cross.domain" : "0",</p> <p style="text-align: center"> "connection.info.host" : "{server_ip}",</p> <p style="text-align: center"> "connection.info.port" : "{server_port}",</p> <p style="text-align: center"> "site.url" : "{url}",</p> <p style="text-align: center"> "url.prefix" : "{url}",</p> <p style="text-align: center"> "client.reload.url" : "{url}/client",</p> <p style="text-align: center"> "client.fatal.error.url" : "{url}/me",</p> <p style="text-align: center"> "client.connection.failed.url" : "{url}/me",</p> <p style="text-align: center"> "external.variables.txt" : "{external_vars}",</p> <p style="text-align: center"> "external.texts.txt" : "{external_texts}",</p> <p style="text-align: center"> "productdata.load.url" : "{product_data}",</p> <p style="text-align: center"> "furnidata.load.url" : "{furni_data}",</p> <p style="text-align: center"> "use.sso.ticket" : "1",</p> <p style="text-align: center"> "sso.ticket" : "{sso}",</p> <p style="text-align: center"> "processlog.enabled" : "0",</p> <p style="text-align: center"> "flash.client.url" : BaseUrl,</p> <p style="text-align: center"> "flash.client.origin" : "popup"</p> <p style="text-align: center"> };</p> <p style="text-align: center"> var params =</p> <p style="text-align: center"> {</p> <p style="text-align: center"> "base" : BaseUrl + "/",</p> <p style="text-align: center"> "allowScriptAccess" : "always",</p> <p style="text-align: center"> "menu" : "false" </p> <p style="text-align: center"> };</p> <p style="text-align: center"> swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null);</p> <p style="text-align: center"> </script></p> <p style="text-align: center"> </head></p> <p style="text-align: center"> </p> <p style="text-align: center"> <body></p> <p style="text-align: center"> </p> <p style="text-align: center"> <div id="client"></div></p> <p style="text-align: center"> </p> <p style="text-align: center"> </body></p> <p style="text-align: center"></html></p> <p style="text-align: center">[/HTML]</p> <p style="text-align: center">[/SPOILER]</p></blockquote><p></p>
[QUOTE="RyanzRetros, post: 353161, member: 55855"] That depends, it could also be {server_ip}. The better way of fixing this if you're thinking about that would be to give him some code and instructions on how to make {server_ip}/{server_port} work. [CENTER][SPOILER="Possible Fix - Expanded on Above Comment"] Go to your [B]class.template.php [/B]file, located in your app folder and look for these lines. [PHP] $this->setParams('server_ip', $_CONFIG['hotel']['server_ip']); $this->setParams('server_port', $_CONFIG['hotel']['server_port']); [/PHP] If they're not there, then add them BELOW hotelName [img]http://i.imgur.com/JH7aKXa.png[/img] Then go to your config.php file and add this: [B]$_CONFIG['hotel']['server_ip'] = '127.0.0.1'; //Server IP; insert the proxy IP here. NEVER put your VPS IP here!![/B] [B]$_CONFIG['hotel']['server_port'] = '30000'; //Server Port; insert the proxy/VPS's emulator port here.[/B] Now replace [B]127.0.0.1[/B] with your [B]PROXY IP ([/B][I][U]never use your VPS IP as this allows people to DDoS the hotel).[/U][/I] Then replace [B]30000[/B] with the [B]PORT [/B]from your [B]PROXY[/B]. Last step is to replace your client.php file with the one below: [HTML] <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>{hotelName} - Client</title> <link rel="stylesheet" href="/app/tpl/skins/{skin}/styles/client.css" type="text/css"> <script type="text/javascript" src="/app/tpl/skins/{skin}/js/swfobject.js"></script> <script type="text/javascript"> var BaseUrl = "{swf_folder}"; var flashvars = { "client.starting" : "Please wait, {hotelName} is loading", "client.allow.cross.domain" : "1", "client.notify.cross.domain" : "0", "connection.info.host" : "{server_ip}", "connection.info.port" : "{server_port}", "site.url" : "{url}", "url.prefix" : "{url}", "client.reload.url" : "{url}/client", "client.fatal.error.url" : "{url}/me", "client.connection.failed.url" : "{url}/me", "external.variables.txt" : "{external_vars}", "external.texts.txt" : "{external_texts}", "productdata.load.url" : "{product_data}", "furnidata.load.url" : "{furni_data}", "use.sso.ticket" : "1", "sso.ticket" : "{sso}", "processlog.enabled" : "0", "flash.client.url" : BaseUrl, "flash.client.origin" : "popup" }; var params = { "base" : BaseUrl + "/", "allowScriptAccess" : "always", "menu" : "false" }; swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null); </script> </head> <body> <div id="client"></div> </body> </html> [/HTML] [/SPOILER][/CENTER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Client redirect to /me
Top