![]() |
BBCode Hide for VB4
Hello,
i need a full functional mod to hide [CODE] or other bbcode contents for a specific group, i have one but for some odd reason it hides the content for other groups too. Is there a real working one for VB4? :) Note: i don't want [ HIDE] [/HIDE ] hack. |
Quote:
Quote:
Why not? Is it not what you're asking for, or you don't like it for some other reason? |
i have an already posts coded with [CODE] and i just want to hide them.
|
OK, well I guess you could do something like this: edit the template bbcode_code (and maybe bbcode_code_printable as well), and add comments like this:
Code:
<!-- code --> Then create a plugin using hook postbit_display_complete and something like this for code: PHP Code:
(of course you can change the usergroup ids and '(Code Removed)' string to whatever you want). Edit: Actually this doesn't work perfectly. If the code happens to contain <!-- end code --> you'll still see everything after that. |
This worked for me i guess but is this method works 100% and no caching issues for example?
|
Quote:
|
can i parse bbcode in the message (Code Removed) ?
|
No, it has to be html. But you could probably render a template, like:
PHP Code:
That doesn't let you use bbcode, but it's a little more convenient. I suppose you could run the replacement text through the bbcode parser if you wanted, but it really doesn't let you do anything you couldn't do by inserting html. |
the HTML tags works with the first plugin you gave me, anything special wit the second one?
|
No, it just lets you put the html in a template but you don't need to do that.
|
All times are GMT. The time now is 11:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|