Flash Plugin Request to new visitors in Client

Results 1 to 9 of 9
  1. #1
    Apprentice dudusgame is offline
    MemberRank
    Aug 2018 Join Date
    12Posts

    Support Flash Plugin Request to new visitors in Client

    Can anyone help me with my client ?
    I have some troubles in my BrainCMS, and now, my hotel is working fine, but i cant join in because he dont ask for new visitors to enable plugin in browser like this one :



    Can help me ? i love u

    my hotel link to check this issue: 429 Too Many Requests
    Last edited by dudusgame; 23-08-18 at 03:57 AM. Reason: added link


  2. #2
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: Flash Plugin Request to new visitors in Client

    Add me on discord @PureDesire

  3. #3
    Novice StewieShore is offline
    MemberRank
    Aug 2018 Join Date
    1Posts

    Re: Flash Plugin Request to new visitors in Client

    I made something for this, a TINY script.
    It looks like trash because i didnt style it yet, but it works and thats the thing!Add this under <body> in client.php
    Code:
    <script>    //no flash?!    if(!FlashDetect.installed){        window.location.href = "/noflash";         }</script>
    Then make a new file in your root folder (same as where client is) called noflash.php
    Then inside there put this.
    Code:
    <html> 
    <script type="text/javascript">
    this.blankwin = function(){
            var dlists = new Array();  
     dlists[0] = 'forum.ragezone.com'; 
    
    	var hostname = window.location.hostname;
    	hostname = hostname.replace("www.","").toLowerCase();
    	var a = document.getElementsByTagName("a");	
    	this.check = function(obj){
    		var href = obj.href.toLowerCase();
                    var dbopcount = 0;
                    if (href.indexOf("http://")!=-1)
                    {
                       for (jdi = 0; jdi <= dlists.length; jdi++)
                       {
                          if (href.indexOf(dlists[jdi]) == -1)
                          {
                             //alert("NO MATCH " + dlists[jdi] + " " + href);
                             dbopcount = dbopcount;  //Do nothing
                          }
                          else
                          {
                             //alert("match " + dlists[jdi] + " " + href);
                             dbopcount++;
                          }
                       } 
                       if (dbopcount > 0)
                         return true; //If this link URL was an internal URL
                       else  //there were no matches to any internal domain, so leave it external
                         return false;
                    }
                    else
                    {
                      return false;
                    }
    		//return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? false : true;				
    	};
    	this.set = function(obj){
    		obj.target = "_self";
    	};	
    	for (var i=0;i<a.length;i++){
    		if(check(a[i])) set(a[i]);
    	};		
    };
    
    // script initiates on page load. 
    
    this.addEvent = function(obj,type,fn){
    	if(obj.attachEvent){
    		obj['e'+type+fn] = fn;
    		obj[type+fn] = function(){obj['e'+type+fn](window.event );}
    		obj.attachEvent('on'+type, obj[type+fn]);
    	} else {
    		obj.addEventListener(type,fn,false);
    	};
    };
    addEvent(window,"load",blankwin);
    </script>
    </body><head>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>    <title><?= $config['hotelName'] ?> - Game</title>    <script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>    <script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>    <script src="/templates/brain/client/js/flashclient.js"></script>    <script src="/templates/brain/client/js/flash_detect_min.js"></script>    </head><body style="background-color: black; color: white"></div></div><div style><div id="flash-wrapper"><div id="flash-container"><div id="content" style="width: 900px; margin: 20px auto 0 auto;display: none"><div class="client-error"><h1 class="client-error__title" translate="client_error_title">JE HEBT FLASH NODIG OM SHADY TE KUNNEN SPELEN!</h1><p translate="CLIENT_ERROR_FLASH">Als je Shady speelt op de computer, dan moet je <a href="https://www.adobe.com/go/getflashplayer" target="_blank">Flash toestaan, installeren, of updaten. </a> Klik op <a href="https://www.adobe.com/go/getflashplayer" target="_blank">KLIK HIER</a> om Flash te gebruiken. LET OP: als je computer Flash blokkeert, dan moet je de instellingen van je browser veranderen om Flash te deblokkeren en weer Beast te kunnen spelen.</p><div class="client-error__downloads"><a class="client-error__flash" href="https://www.adobe.com/go/getflashplayer" rel="http://shadyhotel.nl/client" target="_blank"></a></div><p translate="CLIENT_ERROR_MOBILE">Probeer je Shady Hotel op een tablet of mobiel te openen? Dit kan met een Flash-browser, zoals <b>Puffin</b><br>Zoek in de App Store of Play Store naar: <b>Puffin</b></p><br /><br /><br /><button style="background-color: green"><a href="https://www.adobe.com/go/getflashplayer" style="font-size: 80px;">Activeer FLASH</a></button> <br /> <br /> <button style="background-color: orange"><a href="/client" style="font-size: 80px;">TERUG NAAR CLIENT</a></button> <br /></div></div><script type="text/javascript">                    $('#content').show();                </script></div></div></div> 
    <script type="text/javascript">
    this.blankwin = function(){
            var dlists = new Array();  
     dlists[0] = 'forum.ragezone.com'; 
    
    	var hostname = window.location.hostname;
    	hostname = hostname.replace("www.","").toLowerCase();
    	var a = document.getElementsByTagName("a");	
    	this.check = function(obj){
    		var href = obj.href.toLowerCase();
                    var dbopcount = 0;
                    if (href.indexOf("http://")!=-1)
                    {
                       for (jdi = 0; jdi <= dlists.length; jdi++)
                       {
                          if (href.indexOf(dlists[jdi]) == -1)
                          {
                             //alert("NO MATCH " + dlists[jdi] + " " + href);
                             dbopcount = dbopcount;  //Do nothing
                          }
                          else
                          {
                             //alert("match " + dlists[jdi] + " " + href);
                             dbopcount++;
                          }
                       } 
                       if (dbopcount > 0)
                         return true; //If this link URL was an internal URL
                       else  //there were no matches to any internal domain, so leave it external
                         return false;
                    }
                    else
                    {
                      return false;
                    }
    		//return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? false : true;				
    	};
    	this.set = function(obj){
    		obj.target = "_self";
    	};	
    	for (var i=0;i<a.length;i++){
    		if(check(a[i])) set(a[i]);
    	};		
    };
    
    // script initiates on page load. 
    
    this.addEvent = function(obj,type,fn){
    	if(obj.attachEvent){
    		obj['e'+type+fn] = fn;
    		obj[type+fn] = function(){obj['e'+type+fn](window.event );}
    		obj.attachEvent('on'+type, obj[type+fn]);
    	} else {
    		obj.addEventListener(type,fn,false);
    	};
    };
    addEvent(window,"load",blankwin);
    </script>
    </body></html></center></div></head>
    Now u get a screen, with activate flash and return to client!
    Looks like this



    Now you got something!

    the language is DUTCH you can translate that, green button = Activate Flash the other button = Return to Client

  4. #4
    Apprentice dudusgame is offline
    MemberRank
    Aug 2018 Join Date
    12Posts

    Re: Flash Plugin Request to new visitors in Client

    Dont worked for me @StewieShore :(

    can you check my hotel and see this code ? i added in client and created noflash, but i get blank page...

  5. #5
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: Flash Plugin Request to new visitors in Client

    This should work for you:

    <div id="client-ui">
    <div id="flash-wrapper">
    <div id="flash-container">
    <div class="client-error">
    <h1 class="client-error__title" translate="client_error_title">YOU NEED TO USE FLASH TO PLAY HABBOON!</h1>
    <p translate="client_error_flash">If you're using a computer, you need to <a href="https://www.adobe.com/go/getflashplayer" target="_blank">allow, install or update Flash</a> to play HABBOON. Please <a href="https://www.adobe.com/go/getflashplayer" target="_blank">CLICK HERE</a> to use Flash! NOTE: if you block Flash, you will need to go to your browser's settings to unblock it in order to play Habboon.</p>
    <div class="client-error__downloads">
    <a class="client-error__flash" href="https://www.adobe.com/go/getflashplayer" rel="noopener noreferrer" target="_blank"></a>
    </div>
    <p translate="CLIENT_ERROR_MOBILE">
    If you need further guidance, please see <a href="https://habboon.pw/articles/1862-important-news-about-google-chrome-and-flash-player" target="_blank">this article</a> for more information on how to do this.
    </p>
    </div>
    </div>
    </div>
    </div>
    </div>


    </div>

  6. #6
    Apprentice dudusgame is offline
    MemberRank
    Aug 2018 Join Date
    12Posts

    Re: Flash Plugin Request to new visitors in Client

    Quote Originally Posted by PythoneX12 View Post
    This should work for you:
    Dont worked pythone ;s

  7. #7
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: Flash Plugin Request to new visitors in Client

    Its ur swf then. Had the same problem before. Change ur habbo.swf or check links

  8. #8
    Typescript XOXO LeChris is offline
    MemberRank
    Sep 2011 Join Date
    749Posts

    Re: Flash Plugin Request to new visitors in Client

    Just make a link...
    https://get.adobe.com/flashplayer/


  9. #9
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: Flash Plugin Request to new visitors in Client

    Ya it automatically checks. But his problem is his swfs. Ive seem it. When linked incorrectly it doesnt work. So idk what hes doing.



Advertisement