The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Removing HTML Code From Posts
I converted my site from IkonBoard a while back, and all the old posts are full of HTML formatting code that was imported. I have HTML turned off on VB, so of course, the messages show up with all this ugly HTML code in them. Is there an easy way I can strip all that out?
Thanks. Example Thread: http://www.fireblades.org/forums/showthread.php?t=6708 |
#2
|
||||
|
||||
There are a few options to this I guess. Assuming the HTML is pretty much the same in alot of posts, for example HTML for a quote box, you could use vB replacements to just hide it.
Alternativly you'd need a script to run through and grab each post, either strip all HTML or try and convert it to vBcode and then update the database. Going on your 97k posts this would take a while todo as you'd have to have around the same number of queries to perform the operation. |
#3
|
||||
|
||||
or you can try this way:
open includes/functions_bbcodeparse.php find PHP Code:
PHP Code:
|
#4
|
||||
|
||||
Thanks.
Just tried that, but nothing changed. |
#5
|
||||
|
||||
hmm, that should work normally...
well i don't beleive it, but maybe try this: PHP Code:
|
#6
|
||||
|
||||
Nope. Same.
|
#7
|
||||
|
||||
are you sure you have not enabled post caching?
if you have it enabled, you won't see fresh parsed posts |
#8
|
||||
|
||||
Ooops.
Yep, post caching is enabled. |
#9
|
||||
|
||||
I'd close the board and run an update-script to strip all HTML.
Seems to be the better solution to do this one-time and not "on the fly" all the time. |
#10
|
||||
|
||||
Quote:
Sounds good to me? So where's that update script buddy? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|