Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Mar 2015, 12:30
Chris-777's Avatar
Chris-777 Chris-777 is offline
 
Join Date: Jan 2006
Real name: Chris
Question 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!
Reply With Quote
  #2  
Old 27 Mar 2015, 21:03
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You can create a plugin using hook location bbcode_parse_start and code like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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).
Reply With Quote
  #3  
Old 28 Mar 2015, 11:49
Chris-777's Avatar
Chris-777 Chris-777 is offline
 
Join Date: Jan 2006
Real name: Chris
That worked, thanks once again man!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:07.

Layout Options | Width: Wide Color: