[i] turned into <i>
Posted: 11 May 2008 03:03 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  90
Joined  10-26-2007

Hi,
Today I discovered a small thing with EE that renders a full section of my site useless:

Every instance of (hard brackets) are turned into <i> tags?

I assume this has to do with one of the “automagical” settings in EE, but someone pls advice on how to turn this off ASAP?

Programming tutorials without those brackets are kind of useless…

I’ve checked the database and the hard brackets are there, so this must happen on the final output stage.

J

Profile
 
 
Posted: 11 May 2008 03:48 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  421
Joined  06-24-2007

Look at the formating for the field, setting it to “None” will turn off auto formatting.

 Signature 

Rob - http://www.blue-dreamer.co.uk/ - because I like blue!

Profile
 
 
Posted: 12 May 2008 02:27 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  90
Joined  10-26-2007

@bluedreamer Thanks for replying, but the field is already set to None so that is not the problem.

It struck me yesterday that maybe the system thinks this is BB-code?

J

Profile
 
 
Posted: 12 May 2008 07:48 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Yep- it thinks it’s BB code for italics.  Hm- one option would be to use entities instead of [].  The other option- in system/core/core.typography.php- around line 69

var $safe_decode = array(
                                
'b'             => 'b',
                                
'i'             => 'i',
                                
'u'             => 'u',
                                
'em'            => 'em',
                                
'strike'        => 'strike',
                                
'strong'        => 'strong',
                                
'pre'           => 'pre',
                                
'code'          => 'code',
                                
'blockquote'    => 'blockquote',
                                
'quote'         => 'blockquote',
                                
'QUOTE'         => 'blockquote'
                             
);


I THINK if you simply remove the ‘i’ line it won’t convert the italics.  But if you try the hack, I’d definitely hard code a test in italics to make sure they still work.  I think they should, but I’m not dead sure.

It also strikes me that this would make a good feature request- some way to specify the pmcode.

But- does the above make sense?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 12 May 2008 08:03 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  90
Joined  10-26-2007

Hi Robin,
Thanks for replying quickly! This did indeed solve my problem, but “it a hack” wink

How about a possibility to turn off ALL pmCode parsing unless explicitly allowed? Is this something one could do on a data field basis? I’m using the LG TinyMCE editor on this field and just turning it off for all such fields would seem like a good solution?

J

Profile
 
 
Posted: 12 May 2008 09:25 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Agreed- I’m not loving the fix either.  I think the best thing to do- put in a feature request.  The crew does pay attention to them, and I agree it would be nice to have a configurable that controls the use of pm code.  To do it on a per field basis would take some significant changes, but it would make a good request.  At a minimum, would be nice to turn them on/off universally.  I just didn’t spot a way to do it.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 12 May 2008 01:23 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

jensa, does that solve your problem for the time being? I, too, think that an FR would be your best bet at this time.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 13 May 2008 01:14 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

Closing this thread with reference to http://expressionengine.com/forums/viewthread/79279/

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 36
Total Topics: 82229 Total Anonymous Users: 21
Total Replies: 441930 Total Guests: 211
Total Posts: 524159    
Members ( View Memberlist )