![]() |
Usergroup based content
I want show content for a specific usergroup only. How do I do this. would adding
PHP Code:
|
You can not use PHP in templates (HTML only).
But you can use a conditional: HTML Code:
<if condition="is_member_of($bbuserinfo,x)"> |
So I simply replace the x with the usergroup #?
What if I want an else statement ? |
Yes the x should be replaced by the usergroupid.
You can add a <else />. |
<a href="http://www.vbulletin.com/docs/html/main/template_conditionals" target="_blank">Template Conditionals</a>
|
Thanks for the link and the help.
One more question. Is it possible to get the content in PHP Code:
|
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.
|
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. |
Have you looked into maybe using the "Notices" feature?
|
Yes but it doesn´t do what I want.
|
All times are GMT. The time now is 07:11 PM. |
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:
|