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
Radio Player and Flash Script
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="opinionswrest" data-source="post: 465348" data-attributes="member: 90370"><p>Hi</p><p></p><p>May be a simple fix but ive just put in a flash script now when my client loads in my radio player disappears </p><p></p><p>Any fix for this?</p><p></p><p>Client file posted </p><p>[CODE=php]<?php include_once('checktheban.php'); ?></p><p><!DOCTYPE html></p><p><html lang="en"></p><p><style></p><p>.flashfail{</p><p>margin: 0 auto;</p><p>max-width: 600px;</p><p>background-color: #111524;</p><p>color: #7ecaee;</p><p>margin-top: 80px;</p><p>border-radius: 10px;</p><p>overflow: hidden;</p><p>padding: 12px 24px 12px 24px;</p><p>display: block;</p><p>font-family: Roboto;</p><p>height: 350px;</p><p>font-size: 23px;</p><p>}</p><p></style></p><p><link rel="stylesheet" type="text/css" href="http://hotelurl/reliable/css/player.css"/></p><p> <link rel="stylesheet" type="text/css" href="http://hotelurl/reliable/css/venobox.css"/></p><p> <script src="http://hotelurl/reliable/js/JQuery.js"></script></p><p> <script src="http://hotelurl/reliable/js/JQuery-UI.js"></script></p><p> <script src="http://hotelurl/reliable/js/venobox.js"></script></p><p><head></p><p><link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/></p><p><meta http-equiv="content-type" content="text/html; charset=utf-8"></p><p><title>{hotelName} Hotel - Client</title></p><p></p><p><link rel="stylesheet" href="{url}/app/tpl/skins/Plus/styles/client.css" type="text/css"></p><p></p><p><script type="text/javascript" src="{url}/app/tpl/skins/Plus/js/swfobject.js"></script></p><p><script type="text/javascript"></p><p>var BaseUrl = "{swf_folder}";</p><p>var flashvars =</p><p>{</p><p>"client.allow.cross.domain" : "1",</p><p>"client.notify.cross.domain" : "0",</p><p>"connection.info.host" : "",</p><p>"connection.info.port" : "",</p><p>"site.url" : "{url}",</p><p>"url.prefix" : "{url}",</p><p>"client.reload.url" : "{url}/disconnected",</p><p>"client.fatal.error.url" : "{url}/disconnected",</p><p>"client.connection.failed.url" : "{url}/disconnected",</p><p>"external.variables.txt" : "{external_vars}?<?php echo time(); ?>",</p><p>"external.texts.txt" : "{external_texts}?<?php echo time(); ?>",</p><p>"external.override.texts.txt" : "http://hotelurl/swfs/gamedata/override/external_flash_override_texts.txt",</p><p>"external.override.variables.txt" : "http://hotelurl/swfs/gamedata/override/external_override_variables.txt",</p><p>"external.figurepartlist.txt" : "http://hotelurl/swfs/gamedata/figuredata.xml",</p><p>"productdata.load.url" : "{product_data}?<?php echo time(); ?>",</p><p>"furnidata.load.url" : "{furni_data}?<?php echo time(); ?>",</p><p>"use.sso.ticket" : "1",</p><p>"sso.ticket" : "{sso}",</p><p>"client.starting" : "Please wait! {hotelName} is starting up.",</p><p>"processlog.enabled" : "0",</p><p>"flash.client.url" : BaseUrl,</p><p>"client.starting.revolving" : "For science, you lil monster/Loading funny message... please wait and hold my beer./Would you like rum with that?/Follow the yellow dick... I meant duck./Time is just an illusion./Are we there yet mate?!/I like your bum, no t-shirt./Look left. Look right. Blink twice. Ta da!/It\'s you, it\'s not me./Shhh! I\'m trying to stink here./Loading pixel universe, please hold.",</p><p>"flash.client.origin" : "popup"</p><p></p><p>};</p><p>var params =</p><p>{</p><p>"base" : BaseUrl + "",</p><p>"allowScriptAccess" : "always",</p><p>"menu" : "false"</p><p>};</p><p>swfobject.embedSWF(BaseUrl + "Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null);</p><p></script></p><p></head></p><p></p><p><body></p><p><div id="client" style="height: 100%"></p><p></p><p> </p><p></p><p> <div id="client-ui"></p><p></p><p> <div id="flash-wrapper"></p><p> <div id="flash-container"></p><p></p><p> </p><p> <center> <div class="flashfail"></p><p> <img src="http://hotelurl/app/tpl/skins/Habwish/images/logo.png"></p><p> <h2 style="padding-bottom: 30px; color: white;"><center>You need flash to play {hotelname}!</center></h2></p><p> <p></p><p> <br> If you already have flash installed, click 'Enable Flash / Install' to enable it. If you haven't got it installed, still click it, you can download it from there!</p><p> </p><p> </p><p> <p><center><div style="margin-top: 10px; height: 350px;"><a href='http://www.adobe.com/go/getflashplayer' class="button"><font color="white"> Enable Flash / Install</font></a></p></p><p><div style="float: left; margin-top: -80px;"><img alt="{username}" src="https://habbo.nl/habbo-imaging/avatarimage?figure={figure}&action=wav&direction=2&head_direction=3&gesture=sml&size=l"/></div></p><p> </div></center></p><p></p><p></div></p><p></div>[PHP]</p><p></div></p><p><body></p><p><div id="client"></div></p><p><script></p><p> function reload() {</p><p> stream.pause();</p><p> stream.src = "";</p><p> $('#radioPlayer').fadeOut(400, function() {</p><p> $('#radioPlayer').load('http://hotelurl/reliable/index.html #playerdiv', function() {</p><p> $('#jsReload').html('<script src="http://hotelurl/reliable/js/reliable.js"></sc'+'ript>');</p><p> $('#radioPlayer').delay(500).fadeIn(400);</p><p> playRadio();</p><p> });</p><p></p><p> });</p><p> }</p><p> </script></p><p> <div class="playerbox"></p><p> <div id="radioPlayer"></p><p> <div id="playerdiv"></p><p> <audio type="audio/mpeg" id="streamPlayer"></audio></p><p> <a onclick="javascript:toggleRadio();" href="#"><img id="toggler" src="http://hotelurl/reliable/images/play1.png"></a></p><p> <input id="volume" min="0.02" max="1.0" step="0.01" type="range" ondrag=""></p><p> </div></p><p> </div></p><p> <div id="seperator"></div></p><p> <div id="buttons"></p><p> <a href="http://uhrlive.com" target="_blank"><div id="button1"></div></a></p><p> <div id="button2" onClick="reload();"></div></p><p> <a class="venobox_custom" data-type="iframe" href="#"><div id="button3"></div></a</p><p> <div id="jsReload"><script src="http://hotelurl/reliable/js/reliable.js"></script></div></p><p> <!-- ###################### --></p><p> </div></p><p> </div></p><p></body></p><p></html>[/CODE]</p></blockquote><p></p>
[QUOTE="opinionswrest, post: 465348, member: 90370"] Hi May be a simple fix but ive just put in a flash script now when my client loads in my radio player disappears Any fix for this? Client file posted [CODE=php]<?php include_once('checktheban.php'); ?> <!DOCTYPE html> <html lang="en"> <style> .flashfail{ margin: 0 auto; max-width: 600px; background-color: #111524; color: #7ecaee; margin-top: 80px; border-radius: 10px; overflow: hidden; padding: 12px 24px 12px 24px; display: block; font-family: Roboto; height: 350px; font-size: 23px; } </style> <link rel="stylesheet" type="text/css" href="http://hotelurl/reliable/css/player.css"/> <link rel="stylesheet" type="text/css" href="http://hotelurl/reliable/css/venobox.css"/> <script src="http://hotelurl/reliable/js/JQuery.js"></script> <script src="http://hotelurl/reliable/js/JQuery-UI.js"></script> <script src="http://hotelurl/reliable/js/venobox.js"></script> <head> <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>{hotelName} Hotel - Client</title> <link rel="stylesheet" href="{url}/app/tpl/skins/Plus/styles/client.css" type="text/css"> <script type="text/javascript" src="{url}/app/tpl/skins/Plus/js/swfobject.js"></script> <script type="text/javascript"> var BaseUrl = "{swf_folder}"; var flashvars = { "client.allow.cross.domain" : "1", "client.notify.cross.domain" : "0", "connection.info.host" : "", "connection.info.port" : "", "site.url" : "{url}", "url.prefix" : "{url}", "client.reload.url" : "{url}/disconnected", "client.fatal.error.url" : "{url}/disconnected", "client.connection.failed.url" : "{url}/disconnected", "external.variables.txt" : "{external_vars}?<?php echo time(); ?>", "external.texts.txt" : "{external_texts}?<?php echo time(); ?>", "external.override.texts.txt" : "http://hotelurl/swfs/gamedata/override/external_flash_override_texts.txt", "external.override.variables.txt" : "http://hotelurl/swfs/gamedata/override/external_override_variables.txt", "external.figurepartlist.txt" : "http://hotelurl/swfs/gamedata/figuredata.xml", "productdata.load.url" : "{product_data}?<?php echo time(); ?>", "furnidata.load.url" : "{furni_data}?<?php echo time(); ?>", "use.sso.ticket" : "1", "sso.ticket" : "{sso}", "client.starting" : "Please wait! {hotelName} is starting up.", "processlog.enabled" : "0", "flash.client.url" : BaseUrl, "client.starting.revolving" : "For science, you lil monster/Loading funny message... please wait and hold my beer./Would you like rum with that?/Follow the yellow dick... I meant duck./Time is just an illusion./Are we there yet mate?!/I like your bum, no t-shirt./Look left. Look right. Blink twice. Ta da!/It\'s you, it\'s not me./Shhh! I\'m trying to stink here./Loading pixel universe, please hold.", "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" style="height: 100%"> <div id="client-ui"> <div id="flash-wrapper"> <div id="flash-container"> <center> <div class="flashfail"> <img src="http://hotelurl/app/tpl/skins/Habwish/images/logo.png"> <h2 style="padding-bottom: 30px; color: white;"><center>You need flash to play {hotelname}!</center></h2> <p> <br> If you already have flash installed, click 'Enable Flash / Install' to enable it. If you haven't got it installed, still click it, you can download it from there! <p><center><div style="margin-top: 10px; height: 350px;"><a href='http://www.adobe.com/go/getflashplayer' class="button"><font color="white"> Enable Flash / Install</font></a></p> <div style="float: left; margin-top: -80px;"><img alt="{username}" src="https://habbo.nl/habbo-imaging/avatarimage?figure={figure}&action=wav&direction=2&head_direction=3&gesture=sml&size=l"/></div> </div></center> </div> </div>[PHP] </div> <body> <div id="client"></div> <script> function reload() { stream.pause(); stream.src = ""; $('#radioPlayer').fadeOut(400, function() { $('#radioPlayer').load('http://hotelurl/reliable/index.html #playerdiv', function() { $('#jsReload').html('<script src="http://hotelurl/reliable/js/reliable.js"></sc'+'ript>'); $('#radioPlayer').delay(500).fadeIn(400); playRadio(); }); }); } </script> <div class="playerbox"> <div id="radioPlayer"> <div id="playerdiv"> <audio type="audio/mpeg" id="streamPlayer"></audio> <a onclick="javascript:toggleRadio();" href="#"><img id="toggler" src="http://hotelurl/reliable/images/play1.png"></a> <input id="volume" min="0.02" max="1.0" step="0.01" type="range" ondrag=""> </div> </div> <div id="seperator"></div> <div id="buttons"> <a href="http://uhrlive.com" target="_blank"><div id="button1"></div></a> <div id="button2" onClick="reload();"></div> <a class="venobox_custom" data-type="iframe" href="#"><div id="button3"></div></a <div id="jsReload"><script src="http://hotelurl/reliable/js/reliable.js"></script></div> <!-- ###################### --> </div> </div> </body> </html>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Radio Player and Flash Script
Top