Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > Programming Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
How to bypass "Click to activate and use this control" IE ActiveX Fix Guide
NeutralizeR
Join Date: Aug 2005
Posts: 355

 

Show Printable Version Email this Page Subscription
NeutralizeR NeutralizeR is offline 07-26-2006, 10:00 PM


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.

************************************************** **
************************************************** **
************************************************** **

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.

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.
Reply With Quote
  #2  
Old 11-07-2006, 04:49 PM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 12-22-2006, 10:35 PM
WildSharky's Avatar
WildSharky WildSharky is offline
 
Join Date: Jun 2004
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can you make it so that flash sig dont show that??
Reply With Quote
  #4  
Old 04-02-2007, 05:36 AM
loonytune15's Avatar
loonytune15 loonytune15 is offline
 
Join Date: Mar 2003
Location: Loony Bin
Posts: 357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool worked well.

any way of making it only work in the arcade?
Reply With Quote
  #5  
Old 04-16-2007, 10:14 PM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice!
Reply With Quote
  #6  
Old 05-12-2007, 12:23 PM
dooch dooch is offline
 
Join Date: Dec 2005
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

D
Reply With Quote
  #7  
Old 05-12-2007, 02:44 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant fix, very useful!
Reply With Quote
  #8  
Old 07-13-2007, 07:54 AM
kaptanblack's Avatar
kaptanblack kaptanblack is offline
 
Join Date: Mar 2007
Location: Turkey
Posts: 397
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool..thanks NeutralizeR
Reply With Quote
  #9  
Old 09-24-2007, 07:03 AM
ArchangelX ArchangelX is offline
 
Join Date: Feb 2006
Location: Oahu, HI
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 02-12-2008, 09:16 PM
sentinal's Avatar
sentinal sentinal is offline
 
Join Date: Aug 2007
Location: jesus heart
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ArchangelX View Post
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:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05647 seconds
  • Memory Usage 2,311KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete