The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show only to logged in users BBCODE?
When I make a bbcode of
Code:
<if condition="$show['member']"> {param} </if> |
#2
|
|||
|
|||
You can't use template conditionals or PHP in a bbcode definition. The only way to make that kind of thing work would be to write a plugin.
|
#3
|
|||
|
|||
How would I do that?
|
#4
|
|||
|
|||
I don't know offhand. But I was thinking about this - it seems like it wouldn't be too hard to make a mod that allows a BBCode definition to be PHP code (and use templates if you wanted). Does anyone else know if it's been done before?
|
#5
|
||||
|
||||
There is a "[hide]" mod available that can do this. There are several "Hide" mods, at least one should be able to do what you want.
But to kh99- there is no mod I've ever seen to allow php or templates in bb code. |
#6
|
|||
|
|||
Quote:
Quote:
|
#7
|
|||
|
|||
For vb 4
<vb:if condition="$show['member']"> you code </vb:if> |
#8
|
||||
|
||||
If you can get php and templates to work in BB Code it would quickly become my favorite mod.:up:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|