PDA

View Full Version : Kewl Code [Newbie]


irn-bru
08-26-2002, 10:58 AM
After looking about the forums to find out how I can
make all my addons not viewable to unreged members
I didnt find anything.

I know I could have just set the option up for allow
unreged members to view borad= no...but I can't do that
for other reasons.. so I found this.

In any php file that can be viewed by unreged members.

[start]

Find This---

include('./global.php');

Then Add Under---

if ($bbuserinfo[userid]==0) {
show_nopermission();
}

eval("\$joiner = \"".gettemplate("nav_joiner")."\";");

[end]

This will make it that all unreged members will have to
register and cant view any pages.. This is a little newbie
but as I am a newbie I thought I would share.

g-force2k2
08-26-2002, 01:53 PM
irn-bru... yeah good work :p but i don't believe that you need the eval("\$joiner line in the code ;) regards...

g-force2k2