The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I want show content for a specific usergroup only. How do I do this. would adding
PHP Code:
|
#2
|
|||
|
|||
![]()
You can not use PHP in templates (HTML only).
But you can use a conditional: HTML Code:
<if condition="is_member_of($bbuserinfo,x)"> Stuff for members of usergroup x </if> |
#3
|
|||
|
|||
![]()
So I simply replace the x with the usergroup #?
What if I want an else statement ? |
#4
|
|||
|
|||
![]()
Yes the x should be replaced by the usergroupid.
You can add a <else />. |
#5
|
|||
|
|||
![]()
<a href="http://www.vbulletin.com/docs/html/main/template_conditionals" target="_blank">Template Conditionals</a>
|
#6
|
|||
|
|||
![]()
Thanks for the link and the help.
One more question. Is it possible to get the content in PHP Code:
|
#7
|
|||
|
|||
![]()
Anything is possible, it could be done. But would probably require a lot more work then a template edit, the exact nature of which I'm not sure.
|
#8
|
|||
|
|||
![]()
Ok. In that case. Is there a way I can show the content on the index page only by editing the template.
PS thanks to both of you for helping me. |
#10
|
|||
|
|||
![]()
Yes but it doesn´t do what I want.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|