Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Force Standard Editor for IE10 Users (Editor Workaround) for VB 4.x by BOP5 Details »»
Force Standard Editor for IE10 Users (Editor Workaround) for VB 4.x by BOP5
Version: 1.00, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 04-02-2013 Last Update: Never Installs: 61
Uses Plugins
Re-useable Code  
No support by the author.

NO LONGER NECESSARY IN VB 4.2.1 or above.

Brought to you by BirdOPrey5 / Qapla.com

See Post #12 for a different solution, it lets the editor work in IE10

If you are an Admin of a VB4 site with the ckeditor (all versions since 4.1.4 I believe) you probably know that the VB4 editor is not compatible with Internet Explorer 10 (IE10) web browsers.

As IE10 becomes more popular this is a bigger issue for site administrators.

The good news is the "Standard Editor" in VB 4.x does work, it is only the WYSIWYG editor with the problem.

This simple singe plugin mod will force IE10 users, and only IE10 users to the Standard Editor no matter what they have chosen in their settings.

This should prevent complaints from users about the editor not working properly.

We hope this issue will get fixed in a future VB4 version, maybe 4.2.1, maybe later, at that time you can remove this product.

No documentation, no settings, just import the XML file and it is active, disable or remove the product and it stops working.

Installation Instructions:

Log into your Admin CP
Go to Add/Import Product under "Plugins & Products" on the side menu.
Click the "Choose File" button to find the attached product xml file.
Press "Import"
Done.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated. :up:
Nominate MOTM if you LOVE it!

Download Now

File Type: xml product-ie10editorfixbop5.xml (1.4 KB, 264 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
7 благодарности(ей) от:
AusPhotography, djbaxter, f4vn, Hostboard, nacaruncr, SuperDave1971, TheLastSuperman

Comments
  #42  
Old 07-07-2013, 04:07 PM
SuperDave1971 SuperDave1971 is offline
 
Join Date: Sep 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Absolutely Perfect!

Thank you so much!!
Reply With Quote
Благодарность от:
BirdOPrey5
  #43  
Old 02-04-2014, 01:10 AM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this may be useful again if updated to work for IE11 users. Mine are reporting that they can't do a lot of things with the editor.
Reply With Quote
  #44  
Old 02-04-2014, 01:13 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tpearl5 View Post
I think this may be useful again if updated to work for IE11 users. Mine are reporting that they can't do a lot of things with the editor.
Just a question, what vB version and PHP version are you running? Also are you able to reproduce what they are reporting?
Reply With Quote
  #45  
Old 02-04-2014, 12:53 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you're running VB 4.2.2 the editor should be working for IE11 users because VB will force IE9 compatibility mode.
Reply With Quote
  #46  
Old 06-30-2015, 08:06 AM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The new Microsoft Edge browser doesn't like the wysiwyg mode on any of my vb4 sites (editor will not work without enter being pressed first), with a tweak to this mod you can force standard mode on Edge and patch the problem until a better solution is found.

Change
Code:
  if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/6.0'))
To
Code:
  if (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge'))
Note - this is only any good if you are not using this mod to force standard editor for IE.
Reply With Quote
Благодарность от:
djbaxter
  #47  
Old 06-30-2015, 09:11 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by z3r0 View Post
The new Microsoft Edge browser doesn't like the wysiwyg mode on any of my vb4 sites (editor will not work without enter being pressed first), with a tweak to this mod you can force standard mode on Edge and patch the problem until a better solution is found.

Change
Code:
  if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/6.0'))
To
Code:
  if (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/12'))
Note - this is only any good if you are not using this mod to force standard editor for IE.
I'm not clear what you mean by your last statement...

You seem to be saying we can make your modifications to this product to force standard editor for Edge, but then you say it's only good if you are NOT using this mod?
Reply With Quote
  #48  
Old 07-01-2015, 12:02 PM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I mean is if you make the change then it will only force Edge to standard mode and no longer work for IE.
Reply With Quote
  #49  
Old 07-02-2015, 06:11 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this not work for both?

PHP Code:
{
  if (
strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/6.0')) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/12'))
    
$vbulletin->userinfo['showvbcode'] = 1//This is the standard editor

Reply With Quote
  #50  
Old 05-04-2016, 08:39 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
Would this not work for both?

PHP Code:
{
  if (
strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/6.0')) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/12'))
    
$vbulletin->userinfo['showvbcode'] = 1//This is the standard editor

I tried this multiple browser patch and I get a boolean error in "includes"...

Quote:
PHP error: <b>Parse error</b>: syntax error, unexpected T_BOOLEAN_OR in <b>/usr/www/apache/includes/class_bootstrap.php(103) : eval()'d code</b> on line <b>214</b><br />
Regards,
Doug
Reply With Quote
  #51  
Old 05-04-2016, 09:38 AM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edge has changed since I posted the original bit of code, the following is how the plugin needs to look now to force edge to work correctly.

Code:
//This plugin checks if the user is using Edge, if he or she is, it forces use of the standard editor

global $vbulletin;


{
  if (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge'))
    $vbulletin->userinfo['showvbcode'] = 1; //This is the standard editor
}
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 06:25 PM.


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.06175 seconds
  • Memory Usage 2,357KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (9)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete