The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Disable BBcodes in a certain theme?
On my old vb3 board, I had a plug-in (that I can't seem to find) that disabled the IMG tag for a single theme. I have a work-safe theme that my members really like, which has no avatars, no images in posts and a generic looking header so that they can browse my guitar forum incognito at work. (Because let's face it, guitar forums are more fun than actually working.)
How do I pull this off with vb4? I've already stripped the theme of all the usual bits, but I don't know how to stop it from parsing the IMG bbcode (and ideally the VIDEO bbcode as well). Any insight would be great. Thanks! |
#2
|
|||
|
|||
You can create a plugin using hook location bbcode_parse_start and code like this:
Code:
if (defined('STYLEID') && STYLEID == X) { $dobbimagecode = 0; $dobbvideocode = 0; } where you replace the X with the styleid of the NSFW style. Then you need to truncate (empty) the postparsed table to see the results (the images seem to be affected immediately, but you need to clear the postparsed table to affect the video tag). |
#3
|
|||
|
|||
That worked, thanks once again man!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|