![]() |
Need help with user permission codes
Hello,
I have a script in vb4 footer template, and I want to allow some usergroups and also want to disallow some user ids. how can I do that and what codes will be used? Thanks. |
If you wanted to do it just in a template (which will proably be easier and faster in most cases.
<vb:if condition="{vb:var bbuserinfo.userid} == 1"> Show this</vb:if> Since you are combining uergroups and id's you may end up using nested if statements. Another optoins which you could use and it will be ALOt easier (this is what I did), make a special userfield for permission, make the fault no and then whoever youw anted to give permission to just change it to yes. Then just use an i statement ont he user field. First Look at vBulletin 4 Template Variables First take a look at this one First Look at vBulletin 4 Template Tags Code:
<vb:if condition="$show['guest']"> |
All times are GMT. The time now is 01:25 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:
|