Enabling Flash

Kristo

Website & Software Developer
Feb 5, 2015
269
69
Hello,
One big issue I am facing just now is users accessing the client due to flash being disabled on the website. I have written a tutorial and posted it all over the hotel pages detailing how to fix this through the chrome settings. I was looking to find a code I could implement into my client.php so that it detects if the user has flash enabled or disabled and then redirects accordingly

(Flash Enable = Client Runs / Flash Disabled = Pop up to enable flash appears and then client runs)

I have seen this on another retro and was just curious how I would write this code.

 
Any possible re directions to previous articles on this if not?
 

HoldUp

dont even
Aug 31, 2017
242
32
Add this to the client.php just under the <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>

Then under the javascript for the hotel put this:

PHP:
<div id="client" style="height: 100%">

  

        <div id="client-ui">

        <div id="flash-wrapper">
            <div id="flash-container">

              
       <center> <div class="flashfail">
  <img src="{url}/app/tpl/skins/{skin}/images/logo.gif">
    <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="http://avatar-retro.com/habbo-imaging/avatarimage?figure={figure}&action=wav&direction=2&head_direction=3&gesture=sml&size=l"/></div>
        </div></center>

</div>
</div>[PHP]

Looks like this:


The image isn't working because I haven't linked my logo right.
 
Last edited:

Kristo

Website & Software Developer
Feb 5, 2015
269
69
Add this to the client.php just under the <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>

Then under the javascript for the hotel put this:

PHP:
<div id="client" style="height: 100%">

 

        <div id="client-ui">

        <div id="flash-wrapper">
            <div id="flash-container">

             
       <center> <div class="flashfail">
  <img src="{url}/app/tpl/skins/{skin}/images/logo.gif">
    <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="http://avatar-retro.com/habbo-imaging/avatarimage?figure={figure}&action=wav&direction=2&head_direction=3&gesture=sml&size=l"/></div>
        </div></center>

</div>
</div>[PHP]

Looks like this:


The image isn't working because I haven't linked my logo right.

Perfect. Thanks! I had this code partly written out, however I was getting confused on the popup for flash.

Thanks again!
 

Kurma

Member
Oct 12, 2011
32
1
Just stumbled across this as I've been trying for figure this out for about 3 hours! Thank you! I've lot so much hair pulling it all out trying to get something like this on my client.
 

Users who are viewing this thread

Top