Quote:
Originally posted by arracing
wont someone please help me out with my question. What code should I use to make unregistered user group not able to access the top_stats link to vbstats.php. I want them to still be able to see the button but just when they click on it, it takes them to the user not registered page, please log in screen.
|
This hack allows you to display/hide your stats button but this is not what you want. To achieve your goal, you have to either know the template your stats file display or edit the file vbstats.php, find
PHP Code:
require('./global.php');
and after that add:
PHP Code:
if ($bbuserinfo[userid]==0)
{
show_nopermission();
}