![]() |
How do I...
How do I call usergroup permissions and forum permissions in an if condition within a template? I can't figure that out but I need to do that for a mod. I searched through here but didn't find anything so maybe I missed something.
Thanks in advance Steve M |
Personally, I wouldn't put all that logic in templates, do the logic in the php file (or plugin) and then use the $show array to communicate to the templates.
|
Can't do that for this mod. Need to call the usergroup permissions and forum permissions.
|
Do what Danny said. PHP for logic, templates (wait, CSS! lol) for presentation.
|
Well if I do that then I would know what I'm doing as I have no clue what Danny is talking about.
|
Examples,
PHP Code:
PHP Code:
|
Ahhh see I learned something new. Thanks, I will do it that way then since it seems easier.
Adrian, is there a specific code for using forum perms, such as the above that you used for usergroups but instead forum permis. |
All times are GMT. The time now is 09:16 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:
|