![]() |
Show only to logged in users BBCODE?
When I make a bbcode of
Code:
<if condition="$show['member']"> |
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.
|
How would I do that?
|
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?
|
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. |
Quote:
Quote:
|
For vb 4
<vb:if condition="$show['member']"> you code </vb:if> |
Quote:
|
All times are GMT. The time now is 06:31 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:
|