View Full Version : Make Custom BBCode Re-Appear
MRGTB
05-26-2007, 04:16 PM
When you create a custom BBCode to use with vBulletin. What do you have to do, so if you ever use the Rebuild Post Cache in the admin control panel. The text within your custom BBCode comes back. Basicly it is cached in the post still, and not stripped.
Eikinskjaldi
05-27-2007, 10:15 PM
Any idea why it is being stripped? rebuilding the post cache just means reparsing posts, if they displayed data before they should do so again.
Having said that they "fixed" a "problem" in 3.6.6 where by empty tags are completely removed from both the parsed and raw text. If your custom tags are empty then they will have been removed.
To prevent this behaviour edit includes/class_dm.php and comment out the line
$pagetext = $this->strip_empty_bbcode($pagetext);
which appears in function verify_pagetext.
MRGTB
05-28-2007, 06:57 AM
Thanks for that, but removing that bit of code did not work. The TAGS are still removed.
That bit of code was there to remove n 3.6.5 also, which I'm currently running.
Here is the stangest thing though. After you run the "Rebuild Post Cache" and the TAGS are removed from posts. If you edit a post where the TAG was removed from, the TAG is still displayed with the content in it. And when saved the TAG comes back again
Eikinskjaldi
05-30-2007, 12:40 AM
Thanks for that, but removing that bit of code did not work. The TAGS are still removed.
That bit of code was there to remove n 3.6.5 also, which I'm currently running.
Yes...but it didn't work in 3.6.5 They re-wrote it in 3.6.6 so that it did.
Here is the stangest thing though. After you run the "Rebuild Post Cache" and the TAGS are removed from posts. If you edit a post where the TAG was removed from, the TAG is still displayed with the content in it. And when saved the TAG comes back again
That means the problem is in the parser, not pre-parser (which is good, obviously).
What do your custom tags do?
MRGTB
05-30-2007, 05:30 AM
they let you add ed2k links
Eikinskjaldi
05-30-2007, 08:53 PM
That means nothing to me, and is not quite what I was asking.
Where have you added the cutom bbcodes, in admincp r as some kind of class_bbcode hack? DO they just do formatting, or do they run some kind of code?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.