PDA

View Full Version : Who to know when I'm logued on vB?


qwerty_ACL
Thu 30th May '02, 8:15am
Hi,
why this doesn't seems to work:

<?php
error_reporting(7);
include '/www/mysite.com/htdocs/forums/global.php';

if ($bbuserinfo['userid'] != 0) {
echo "a lot of stuff here";
else {
show_nopermission();
}
?>

I need to make that his non-vB page to don't show if not logued on forums. Can anyone helpme with this?

Steve Machol
Thu 30th May '02, 10:28am
Please follow the instructions in the last line of my sig to register for vB support on these forums. Thanks. :)

Dan615
Sat 1st Jun '02, 7:40pm
Originally posted by qwerty_ACL
Hi,
why this doesn't seems to work:

<?php
error_reporting(7);
include '/www/mysite.com/htdocs/forums/global.php';

if ($bbuserinfo['userid'] != 0) {
echo "a lot of stuff here";
else {
show_nopermission();
}
?>

I need to make that his non-vB page to don't show if not logued on forums. Can anyone helpme with this?

You're missing a bracket on the IF statement:


<?php
error_reporting(7);
include '/www/mysite.com/htdocs/forums/global.php';

if ($bbuserinfo['userid'] != 0) {
echo "a lot of stuff here";
} else {
show_nopermission();
}
?>