• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Client script to show flash notification

Newbie Spellweaver
Joined
Oct 12, 2014
Messages
52
Reaction score
2
Is anyone able to share a script that will show the enable Flash notification thing when someone does not have flash enabled on the client?

My client.php file:

Code:
<html lang="en">
<head>
<link rel="shortcut icon" href="http://localhost/app/tpl/skins/Habbo/images/favicon.ico" type="image/vnd.microsoft.icon"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<link rel="stylesheet" href="http://localhost/app/tpl/skins/Habbo/styles/client.css" type="text/css">

<script type="text/javascript" src="http://localhost/app/tpl/skins/Habbo/js/swfobject.js"></script>
<script type="text/javascript">
var BaseUrl = "http://localhost/swf/gordon/";
var flashvars =
{
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0", 
"connection.info.host" : "localhost",
"connection.info.port" : "30000",
"site.url" : "http://localhost",
"url.prefix" : "http://localhost",
"client.reload.url" : "http://localhost/disconnected",
"client.fatal.error.url" : "http://localhost/disconnected",
"client.connection.failed.url" : "http://localhost/disconnected",
"external.variables.txt" : "http://localhost/swf/gamedata/external_variables.txt",
"external.texts.txt" : "http://localhost/swf/gamedata/external_flash_texts.txt",
"external.override.texts.txt" : "http://localhost/swf/gamedata/override/external_flash_override_texts.txt",
"external.override.variables.txt" : "http://localhost/swf/gamedata/override/external_override_variables.txt",
"external.figurepartlist.txt" : "http://localhost/swf/gamedata/figuredata.xml", 
"productdata.load.url" : "http://localhost/swf/gamedata/productdata.txt",
"furnidata.load.url" : "http://localhost/swf/gamedata/furnidata.xml",
"use.sso.ticket" : "1",
"sso.ticket" : "{sso}",
"client.starting" : "Loading...", 
"processlog.enabled" : "0",
"flash.client.url" : BaseUrl,
"client.starting.revolving" : "Loading...",
"flash.client.origin" : "popup" 
};
var params =
{
"base" : BaseUrl + "/",
"allowScriptAccess" : "always",
"menu" : "false" 
};
swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "http://localhost/swf/gordon/expressInstall.swf", flashvars, params, null);
</script>
</head>

<body>
<div id="client"></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>
Instead it just shows black screen.
Any help appreciated ^^
 
Elite Diviner
Joined
Apr 5, 2014
Messages
464
Reaction score
223
Put whatever you want to display when flash is not turned on inside the <div id="client">
 
Upvote 0
Back
Top