Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Fix for problem posting HTML entities as plain text Details »
Fix for problem posting HTML entities as plain text
Mod Version: 1.00, by Cap'n Steve (Member) Cap'n Steve is offline
Developer Last Online: May 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.3 Rating: (0 vote - 0 average) Installs: 7
Released: 16 Jan 2006 Last Update: Never Downloads: 9
Not Supported Code Changes  

HTML Entities Fix 1.0 (ported from vBulletin 3.0)


What does this hack do?

The short explanation: It makes it so & entities aren't escaped when posting.

The long explanation: As you may know, HTML uses entities in the form of &(something); to represent certain characters. For example, & will show up as & in the browser. vBulletin escapes any of these that you post so they show up as plain text. However, to be compatible with languages other than English, any entities in the form of &#(number); can't be escaped. That means things like ' (that represents a '), can't be posted as plain text without inserting empty bbcode in the middle of it. That's an ugly workaround, so I came up with this hack. Now, if you want to post ', just post ' and it will show up properly in the browser.

Why would I want to use this?

Well, if your forum involves discussing HTML or programming, or perhaps making modifications for popular forum software, this will let your users post instructions with entities in a way that makes much more sense than the current way. (hint, hint)



Here are the instructions, it should work on all 3.5 versions:

In includes/class_core.php find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace that with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Profile Enhancements Send html OR plain text emails per user phart vBulletin 3.6 Add-ons 3 23 Feb 2007 15:08
Fix for problem posting HTML entities as plain text Cap'n Steve vBulletin 3.0 Full Releases 0 18 Apr 2005 07:25

Comments
  #2  
Old 16 Jan 2006, 07:09
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Real name: Dave
nice job
Reply With Quote
  #3  
Old 16 Jan 2006, 11:29
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Excellent!
Reply With Quote
  #4  
Old 16 Jan 2006, 14:21
Reef Reef is offline
 
Join Date: May 2003
Thanks Cap. This should be included in future builds.
Reply With Quote
  #5  
Old 26 Feb 2006, 20:47
michaelbenson's Avatar
michaelbenson michaelbenson is offline
 
Join Date: Feb 2005
Real name: Michael Benson
Originally Posted by Reef
Thanks Cap. This should be included in future builds.
I agree, perhaps this should be put forward in the vb.com suggestion forum?
Reply With Quote
  #6  
Old 27 Feb 2006, 07:01
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
I originally reported this as a bug, but they either didn't get the point or just like it the way it is now.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 06:32.

Layout Options | Width: Wide Color: