Quote:
Originally posted by papa
Hi Guys,
I am trying to password protect my pages that are on myvbindex page so once they are logged in they can view our site. I have found a few things but nothing seems to work right. Is there anything like that in myVBindex?
So if they are not logged in it takes them to a reg. page and if they are it allows them access to the site.
Papa
|
papa:
this should work for you...assuming you do not want un-registered/un-logged-in users to see your myvbindex.php page;
right after:
require('./global.php');
insert the following code:
PHP Code:
if ($bbuserinfo['userid'] == 0) { eval("dooutput(\"".show_nopermission()."\");"); }