Database Error: Table 'db_joomla.smf_sessions' doesn't exist

Started by rdx, January 12, 2007, 09:04:31 AM

Previous topic - Next topic

mpetrie

Quote from: Orstio on April 14, 2007, 08:41:03 PM
THe <p> tags get translated into [ br ][ br ] for posting.&nbsp; If they don't paragraphs don't get separated in the SMF post.

Quote blocks in SMF are normally closely bounded to the text, but in this case there's a large space before and after the text. I guess what would be needed to get the quote to look like a normal SMF quote would be to strip off leading and trailing <p> tags from the quoted text, just keeping </p><p> combinations for paragraph breaks in the quotation. Without this it looks strange. In fact, it looks like there are at least two blank lines above, and a further three below the short quote. The link in my last post has been left active so you can see the effect by following the comment link from this "article".

Orstio

QuoteI guess what would be needed to get the quote to look like a normal SMF quote would be to strip off leading and trailing <p> tags from the quoted text, just keeping </p><p> combinations for paragraph breaks in the quotation.

I agree.  That shouldn't be too hard to implement.  It would just be a matter of checking $row->text for a <p> at the beginning, and deleting it, and then check for </p> at the end, and deleting that before going through the HTML to BBcode translation in the bot.

chadness

Shouldn't be too tough.  I'll make a note of it for beta 3.

Advertisement: