Quote:
Yesterday at 04:53 PM Zelda-King said this in Post #1094
I've installed this. Impressive hack. One gripe: banned users etc can view this.
I fixed this by inserting this code in vbstats.php (which wont work for a lot of you. This goes with a journal template I have from another hack, and most of you may not have a ban group for usergroup 10;
PHP Code:
//if user is banned then cannot view vB Stats.
if(($bbuserinfo[usergroupid] == "8") || ($bbuserinfo[usergroupid] == "10")){
//redirect
$goto="index.php?s=$session[sessionhash]";
eval("standardredirect(\"".gettemplate("redirect_noaccessjournal")."\",\"$goto\");");
You could easily customise that to your own templates etc if you want to keep certain usertypes out.
|
thanx for the addon
this is one of the best hacks