Fixed vBulletin 4.x Import: [QUOTE] tags broken

Affected version


Well-known member
diff --git a/xenforo/src/XF/Import/Importer/vBulletin.php b/xenforo/src/XF/Import/Importer/vBulletin.php
--- a/xenforo/src/XF/Import/Importer/vBulletin.php
+++ b/xenforo/src/XF/Import/Importer/vBulletin.php
@@ -2641,7 +2648,7 @@ class vBulletin extends AbstractForumImporter
                 function ($match)
-                    return sprintf('[QUOTE="%s, post: %d]',
+                    return sprintf('[QUOTE="%s, post: %d"]',
                         $this->lookupId('post', $match['postid'])
The importer turns this:

Into this (note the missing " character):
[QUOTE="Nickname, post: 1234]Text[/QUOTE]

PS: When I move the diff from the start to the end of this post then the formatting is broken.


Well-known member
I'd dump the import and run it again with this fix applied (and maybe even wait for XenForo 2.0.1 with more importer fixes). I hope this was a test import. :)


New member
That would be too difficult to redo, the board is massive and everything is running smoothly again, just need to fix this.


XenForo developer
Staff member
You could potentially use the content find/replace add-on with a regular expression to find the broken quote tags?