PDA

View Full Version : Thread Views - Only admins and mods can see


doorhandle
07-17-2011, 03:16 PM
Is there a way to hide the thread views column so only admins and mods can see it or choose the usergroups you want to display it to?

I could surely use a mod like this.

BirdOPrey5
07-17-2011, 11:42 PM
Pretty simple template edit...

Edit the template: threadbit

Find the line:
<li>{vb:rawphrase views}: {vb:raw thread.views}</li>

Replace it with:
<vb:if condition="is_member_of($bbuserinfo, 5,6,7)"><li>{vb:rawphrase views}: {vb:raw thread.views}</li></vb:if>

5, 6, and 7 are usergroupids for supermods, admins, and mods... you can change these as needed. keep each one separated by a comma.

doorhandle
07-19-2011, 05:50 PM
Worked like a charm. Thank you.

fassy4u
03-18-2012, 10:58 AM
thanx