The Arcive of vBulletin Modifications Site. |
|
Usergroup Tags in Templates Details »»
|
|||||||||||||||||||||||||
This hack lets you use tags like <ugid6>Only admins will see this</ugid6> in templates to dynamically show or hide text depending on the logged-in user's usergroupid. This is similar to the other conditional templates hack but much less bulky because it only handles usergroups. It's also surprising elegant and simple to use.
Usage: <ugidusergroupid>text to show</ugidusergroupid>. That will show "text to show" to the current user if (s)he has a usergroupid of usergroupid. All other usergroupid tags are just deleted and never outputted. Screenshot doesn't apply. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Wow you're right - this is easy to do hehe
I actually understand how it works too ![]() - miSt |
|
#3
|
||||
|
||||
|
Neat hack
It's definately useful. It reminds me of the webtemplates hack Nice work |
|
#4
|
||||
|
||||
|
Good hack
Nice job.
|
|
#5
|
|||
|
|||
|
Simple and very effective.
Great job. (I never looked into the 'conditionals' as they looked a bit complicated. This, however, is easy to install AND understand.) |
|
#6
|
||||
|
||||
|
k00l hack
i won't use it, but still, k00l
|
|
#7
|
||||
|
||||
|
is there a way to make it so that any person but a guest can see it?
l8er sonic |
|
#8
|
|||
|
|||
|
Of course the basic answer would be to enter all usergroup IDs but 1.
Like... <ugid2>Test</ugid2> <ugid3>Test</ugid3> It's easy enough to do. Tried mixing them together but it didn't work. |
|
#9
|
||||
|
||||
|
Rofl yea..
|
|
#10
|
||||
|
||||
|
sweetness....nice
|
![]() |
|
|