RR.NET Forums Forum Index RR.NET Forums

 

Mystery of the extra BBCode end tag revealed.
Click here to go to the original topic

 
       RR.NET Forums Forum Index -> RowdyRuff.Net Announcements
View previous topic :: View next topic  
Author Message
King Moonraiser



Joined: 28 May 2005
Posts: 2479
Location: The Land of Misfit Boys

Posted: Thu Jul 07, 2005 7:33 pm    Post subject: Mystery of the extra BBCode end tag revealed.  

I got a PM a while back alerting me to a possible bug in the forums. Sometimes a BBCode end tag is mysteriously added to the end of a post.

I finally figured out how it happens. If you click on a BBCode option, let's say bold, and then manually delete the tag, the JavaScript function still thinks the open tag is still there and tries to close it when you hit Submit.

I think the reson this happens is because PHPBB doesn't insert the opening code at the cursor's location. Instead, it stupidly sticks it at the end of the message. I'm going to work on fixing this behavior.

An easier way to apply BBCodes is to highlight the text and then click on the BBCode button. I know that works in Firefox. YMMV in other browsers.

UPDATE: I fixed the stupid behavior, but it still inserts an end tag if you manually delete the beginning tag.
Back to top  
 
       RR.NET Forums Forum Index -> RowdyRuff.Net Announcements
Page 1 of 1

RSS feed of forums.


Powered by phpBB Search Engine Indexer
Powered by phpBB © 2001, 2002 phpBB Group