Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Flash Plugin Request to new visitors in Client

Newbie Spellweaver
Joined
Aug 13, 2018
Messages
12
Reaction score
0
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 :

o9dLhuE - Flash Plugin Request to new visitors in Client - RaGEZONE Forums


Can help me ? i love u

my hotel link to check this issue:
 

Attachments

You must be registered for see attachments list
Last edited:
Initiate Mage
Joined
Aug 22, 2018
Messages
1
Reaction score
0
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

786cca20e47eea57097ea97189723ec0 - Flash Plugin Request to new visitors in Client - RaGEZONE Forums


Now you got something!

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

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Aug 13, 2018
Messages
12
Reaction score
0
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...
 
Upvote 0
Joined
Sep 15, 2010
Messages
519
Reaction score
88
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>
 
Upvote 0
Back
Top