The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
IMG tags mass rewriting?
Hi everyone,
we've migrated from SMF to vB5. It seems that IMG tag sizes aren't recognized since now we're full of topic with broken codes like: [img width=220 height=600 We're trying to understand if is possible to mass editing them setting to simple IMG tags without size, in order to recover the linked images. Anyone had the same problem? Suggestions? Thanks in advance. |
#2
|
|||
|
|||
Edit: just noticed it's for vBulletin 5... nvm.
I originally thought this was for vBulletin 4, so this will not work for your forum, but I decided to just post the script here anyway: You could use something like this in PHP to mass rewrite IMG tags that look like: [img width=123 height=123] to [img]. Create a PHP file in the root of your forum and then visit it in the browser or execute it through the command line interface. I recommend executing it against a test database first since I didn't test it. Also if you have a very big database, it may timeout. PHP Code:
|
#3
|
|||
|
|||
Thanks anyway, maybe we could start from this to formulate a solution for our problem.
Any other suggestion is welcome. Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|