The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
some BBcode for member only
Dear all ,
I have a question need all your help . I want to make one of my bbcode that need user to login for watching . My idea is , [ member ] Member Content [ /member ] But I can't use the code as following (which is what I post in the bbcode area) PHP Code:
Can you tell me how to modify the script or how to make it work ? thanks for your help . |
#2
|
|||
|
|||
Have you tried to use an if conditional array?
HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 2, 5, 6, 7)"> Code for members here <else /> Errormsg for others here </if> |
#3
|
|||
|
|||
Dear DataHero
thanks for your reply , your code can not work with bbcode , I think there might be some limit that those command can not run outside the templates of the vbulletin |
#4
|
||||
|
||||
You can't use conditions or php in BB Code- it just doesn't work. That said search for the "[hide]" mod which should do the same thing... basically you need to make a product/plugin that hides text that looks like a BB Code but isn't really a BB Code.
https://vborg.vbsupport.ru/showthread.php?t=203010 https://vborg.vbsupport.ru/showthread.php?t=221667 |
#5
|
|||
|
|||
Dear BirdOPrey5
thanks for your information , I have done modification with your link , many thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|