PDA

View Full Version : Remove old UBB formatting problems


JJR512
05-10-2001, 02:52 AM
The UBB importation isn't perfect. At least, the one with 1.1.5 wasn't; maybe it's better now. But in all my old UBB messages, where ever there were quotes, you now see the raw text of the HTML formatting that made the quote.

For example, take a look at this post here: http://www.jjr512.com/forums/showthread.php?s=&postid=161776#post161776

You see the blockquote and font formatting HTML codes that made up quotes.

Also, note the signature. That is not the signature from my vBulletin profile. That signature is just text in the message body, which I guess is how UBB actually put your sigs in messages.

So the hack I am suggesting is a series of database queries that search for all the old UBB formatting crap from quotes and replaces it with the appropriate vB tags. For example, find all instances of this:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
and replace it with the opening quote tag.
And find all instances of this:
<HR></BLOCKQUOTE>
and replace with the closing quote tag.

It would be very slick if you could find a way to do this, while preserving the idea of quoted messages and regular quotes. What I mean is if the quote contains the text "Originally posted by...", to make that part italicized, as it is in vBulletin.

Now about the signatures. Another query should go through and find the thing that separates sigs from the message body. In other words, this: ------------------ And it should remove that and all text after that. It should also set the attribute for that post to display the user's signature.

However, when it removes all text from the dashes to the end, it should not remove any "edited by" messages... unless there's a way to convert that to the vB formatting as well.

BfB
07-01-2001, 10:34 PM
Please, can you respond to this. It's happening to a host of UBB upgrades.