The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
Quote:
Quote:
Why not? Is it not what you're asking for, or you don't like it for some other reason? |
#3
|
|||
|
|||
i have an already posts coded with [CODE] and i just want to hide them.
|
#4
|
|||
|
|||
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 --> existing template code <!-- end 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. |
Благодарность от: | ||
DNCL |
#5
|
|||
|
|||
This worked for me i guess but is this method works 100% and no caching issues for example?
|
#6
|
|||
|
|||
Yes, it happens after the caching so it should be OK (of course now it has to run a preg_replace on every post, but you can't have everything). And like I mentioned above it potentially would mess up if the code included one of those comments, but you change them to something even less likely to appear by accident.
|
#7
|
|||
|
|||
can i parse bbcode in the message (Code Removed) ?
|
#8
|
|||
|
|||
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. |
#9
|
|||
|
|||
the HTML tags works with the first plugin you gave me, anything special wit the second one?
|
#10
|
|||
|
|||
No, it just lets you put the html in a template but you don't need to do that.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|