The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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.
|
#3
|
|||
|
|||
![]()
Can't do that for this mod. Need to call the usergroup permissions and forum permissions.
|
#4
|
||||
|
||||
![]()
Do what Danny said. PHP for logic, templates (wait, CSS! lol) for presentation.
|
#5
|
|||
|
|||
![]()
Well if I do that then I would know what I'm doing as I have no clue what Danny is talking about.
|
#6
|
||||
|
||||
![]()
Examples,
PHP Code:
PHP Code:
|
#7
|
|||
|
|||
![]()
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. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|