vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   How to bypass "Click to activate and use this control" IE ActiveX Fix Guide (https://vborg.vbsupport.ru/showthread.php?t=122289)

NeutralizeR 07-26-2006 10:00 PM

How to bypass "Click to activate and use this control" IE ActiveX Fix Guide
 
https://vborg.vbsupport.ru/external/2006/07/9.gif
Preparing Websites with Active Content for Announced Browser Changes


Many of you have read about the announced changes in Microsoft Internet Explorer. You may have some questions about what's going to happen to your websites that use embedded ("active") content and applications. Active content can include Macromedia Flash, Shockwave, or Adobe Acrobat files. You are probably starting to consider what you're going to do to be prepared.

How Will the Browser Changes Affect My Site?

What will the effect of the browser changes actually be? How soon are these changes happening? Will users still be able to view active content tomorrow or next week?

Users will be able to view embedded content and applications in their present form?until they update their Internet Explorer browsers on Windows. The browser update was first released as an optional update in February 2006. After users update the browser, they have to click embedded or "active" content before they interact with it. Check out the resources on the Microsoft Developer Network (MSDN), where you can get more information.

Some sites will not be affected by the change. The updated browser prompts users to click before displaying active content coded using <object> , <embed> , or <applet> tags that are inline in an HTML file. However, HTML pages that use tags generated by external script files (like JavaScript), such as sites that use complex Flash detection scripts, should continue to work normally with no change.

Many of you will want to fix your sites to work around the mandatory browser changes. The good news is that you can apply one of several design-arounds to your site right now.

************************************************** **
************************************************** **
************************************************** **
https://vborg.vbsupport.ru/external/2006/07/10.gif
I've lots of flash files in my forum style and i also have flash & media player bbcodes enabled. It's really boring to click on the active contents everytime to activate them (for Internet Explorer users).

I'll try to tell you the easiest solution to bypass active content activating.

-Create a new TXT file on your desktop.
-Rename it to 'iefix.js'.
-Open 'iefix.js' with your text editor. (NotePad)
-Paste the following code in it:
HTML Code:

fls = document.getElementsByTagName("object");
for (var a = 0; a < fls.length; a++){fls[a].outerHTML = fls[a].outerHTML;}

-Save 'iefix.js' and close it.
-Upload 'iefix.js' to your web servers root.

Now we have the needed external javascript file.

If you just have .swf files embedded on your pages, you are cool.

Because this way of bypassing active content activation got some issues with media players. The media files won't play automatically and the media players will miss their "src, width, height, etc..." attributes.

Let's say you just want it for your swf enabled pages.

-Open your Admin CP > Styles & Templates Manager > Style Manager > footer template.
Paste the following code at the beginning of your footer template:
HTML Code:

<script type="text/javascript" src="http://www.yourdomain.com/iefix.js"></script>
*Don't forget to replace http://www.yourdomain.com/ with your domain.

The logic of this method depends on adding the code above right after the last </object> tag in the page to disable the active content's activation requirement. Of course you can also use this method for your non-vbulletin pages.

Example:
Open your IE and go to this address:
http://www.msxlabs.org/forum/
Mouse over the flash animations at the top.

Let me know if you want to know how to exclude media players in vBulletin posts from this IE ActiveX Fix method.
http://msdn.microsoft.com/workshop/g...ivex_fig01.gif
For more information:
http://www.adobe.com/devnet/activeco...devletter.html
http://msdn.microsoft.com/library/de...ng_activex.asp

IE ActiveX Fix Guide by NeutralizeR from MsXLabs Organization.

rinkrat 11-07-2006 04:49 PM

This works great. All of my arcade games were being delayed with the extra click and now they are working fine. Glad I read your signature in another thread :)

WildSharky 12-22-2006 10:35 PM

how can you make it so that flash sig dont show that??

loonytune15 04-02-2007 05:36 AM

cool worked well.

any way of making it only work in the arcade?

Patria 04-16-2007 10:14 PM

Very nice!

dooch 05-12-2007 12:23 PM

Thats a lovely little script, MANY thanks for sharing it, it works a charm on my webby.

D

Antivirus 05-12-2007 02:44 PM

Brilliant fix, very useful!

kaptanblack 07-13-2007 07:54 AM

cool..thanks NeutralizeR ;)

ArchangelX 09-24-2007 07:03 AM

I tried it for my site, and it didn't work. I have embedded SWF files, but they don't use Objects...is that why?

sentinal 02-12-2008 09:16 PM

Quote:

Originally Posted by ArchangelX (Post 1345760)
I tried it for my site, and it didn't work. I have embedded SWF files, but they don't use Objects...is that why?


if you use Object Tag or Embed Tag or Both

Just replace the code with this

Code:

fls = document.getElementsByTagName("object");
for (var a = 0; a < fls.length; a++){fls[a].outerHTML = fls[a].outerHTML;}
flsa = document.getElementsByTagName("embed");
for (var a = 0; a < flsa.length; a++){flsa[a].outerHTML = flsa[a].outerHTML;}

i used the code that "NeutralizeR" post and added the element for the embedded tag

and its works excellent :up:

haytham 03-07-2008 07:39 AM

1 Attachment(s)
Quote:

Let me know if you want to know how to exclude media players in vBulletin posts from this IE ActiveX Fix method.
Could you please give me the right code for this midi player? Look at the pic. Everytime a member loads a page he gets a message which is annoying.

rizelim 03-29-2008 08:23 PM

thank you very much.

Jasem 04-23-2008 08:11 PM

Very nice! Thank you :)


All times are GMT. The time now is 11:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete