The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Cleaning out an improperly uninstalled mod
I recently installed, and subsequently uninstalled, DJ's AME because of various reasons. Unfortunately, even though i ran the cleanup tools with the plugin it left behind a ton of artifacts in old posts.
All of my old Youtube video links (which were previously just the YT URL) now look like so: Code:
[ame="http://www.youtube.com/watch?v=6fOprNSFCX4"]Title of Video[/ame] Code:
[ame="ht tp://w ww.youtube.com/watch?v=6fOprNSFCX4"]Title of Video |
#2
|
|||
|
|||
Unfortunately I don't think there's any regular expression replacement in mysql, so you'd have to write a script, or maybe export the post table to a text file, do a replacement on it in an editor or something (maybe by a command line tool in linux), then import it again. But I did figure out a pattern, I think, so in a vbulletin php script it would be something like:
PHP Code:
|
#3
|
|||
|
|||
OK, I decided to test it in a plugin, so I thought I might as well export it and post it here. You would take this xml file and use Plugins & Products > Download/ Upload Plugins, and scroll to the bottom for the upload form. Then you'd point your browser at misc.php?do=fixame and see what happens. I tried to echo dots but it might not work, so you might see nothing for a long time if you have a lot of posts. You only need to do it once (assuming it doesn't timeout or stop because of an error) then uninstall it.
You should probably close your forum and backup your database before running this. |
#4
|
|||
|
|||
I'll give that a shot, thank you VERY much! It rewrote all of my Amazon URLs too (ugh).
If this works, I'll PM you and paypal you some cash to grab a burrito on me. I make a decent chunk of change from my Amazon affiliated links, and AME broke them all. --------------- Added [DATE]1426944173[/DATE] at [TIME]1426944173[/TIME] --------------- That worked! Thank you so much dude! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|