I like this hack, thanks for making it, Psionic Vision!
Quote:
Configurable list of usergroups that can access statistics (optional).
|
I set this so that only admins (usergroup 6) can access statistics. The menu option in "Quick Links" was still available to all users, though. (It didn't afford them access to anything, but I preferred they not see it at all.) I fixed this by putting this in navbar:
Code:
<if condition="$bbuserinfo[usergroupid]==6">
<tr><td class="vbmenu_option"><a href="psistats.php$session[sessionurl_q]">$vbphrase[psistats_link]</a></td></tr>
</if>
It'd be nicer if this tied in automatically with the permitted usergroups set via the AdminCP, obviously.
As a future feature request, I'd also love more detailed/specific permissions. For example, I'd like to allow registered users to view "Top Threads & Forums," but nothing else.
/clicks install