![]() |
Usergroup Tags in Templates
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. |
Wow you're right - this is easy to do hehe
I actually understand how it works too :) - miSt |
Neat hack :) It's definately useful. It reminds me of the webtemplates hack
Nice work |
Good hack :) Nice job.
|
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.) |
k00l hack
i won't use it, but still, k00l ;) |
is there a way to make it so that any person but a guest can see it?
l8er sonic |
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. |
Rofl yea..
|
sweetness....nice :)
|
All times are GMT. The time now is 12:39 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:
|