The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide content within a bbcode from certain usergroups
I know this has been asked before but it doesn't seem like there is a solution (or if there is, it's pretty complicated and the solution hasn't been posted in full, and any mods that claim to do this seem to have a lot of problems).
Is there any way to have a bbcode, for example [PRIVATE]my text here[/PRIVATE] which could be set up so that only users in X, Y & Z usergroups can view when they're parsed on the front end? (Like vb.org hides code from unregistered users) I realise (after much searching) that it's not possible to simply put a conditional within the bbcode HTML. I also considered a replacement variable but of course that doesn't work either. I don't suppose there's any way to use a conditional in the bbcode style template? Like IF it's bbcode id #9, show this, IF not show this. I guess it can't be that simple or someone would have mentioned it on the 30+ threads I just hunted through! Perhaps there's some sort of magical javascript that could do this based on the style name of the div/span id or class? For example, I make a bbcode that contains the HTML <span class="hidethis">{PARAM}</span>, then in the javascript include the code to hide content within that span from certain usergroups.... Any suggestions would be greatly appreciated. eta: Or perhaps someone could expand on this method? https://vborg.vbsupport.ru/showthread.php?t=212048 I've not created my own vb plugin before so a bit unsure on this process. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|