![]() |
Kewl Code [Newbie]
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. |
irn-bru... yeah good work :p but i don't believe that you need the eval("\$joiner line in the code ;) regards...
g-force2k2 |
All times are GMT. The time now is 04:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|