Quote:
Originally Posted by joseph2007
forgive me but.. how could i go about doing the same? i want to add the userid to my postbit but i don't want anyone cept admins (and or higher) seeing it.
|
Where you would add:
Code:
<if condition="$post[userid]">
<div>UserID: $post[userid]</div><br />
</if>
Instead, add:
Code:
<if condition="$post[userid] AND in_array($bbuserinfo[usergroupid], array(5,6))">
<div>UserID: $post[userid]</div><br />
</if>
Where "array(5,6)" is the userids for the Super-Moderators and Admins. Any additional usergroups (like moderators) can just be added in the same way, with a comma then the ID.
Quote:
Originally Posted by Simplicity
I don't see how you would benefit by hiding the user id in the template to other usergroups... all a user needs to do is hover the mouse over the username or go to the users profile page and the user id is viewable in the url. However thats just my opinion.
|
True, but I also don't like cluttering up the postbit for the members with information that doesn't need to be there.
There's no reason for a member to be able to see the userID that easily, where as an administrator such as myself would find it easier having the ID displayed in static text rather than having to hover my mouse over a link every time I need to referrence it.