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
  #12  
Old 03-07-2008, 07:39 AM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: jpg activex.JPG (4.4 KB, 0 views)
Reply With Quote
  #13  
Old 03-29-2008, 08:23 PM
rizelim's Avatar
rizelim rizelim is offline
 
Join Date: Nov 2006
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much.
Reply With Quote
  #14  
Old 04-23-2008, 08:11 PM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice! Thank you
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 04:21 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.09053 seconds
  • Memory Usage 2,260KB
  • Queries Executed 19 (?)
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
  • (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
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete