Log in

View Full Version : Will these still work in vB3?


pgowder
03-18-2004, 07:06 PM
On submission forms, and other applications, I use these. Will this work in vB3?

Grabbing the username by $bbuserinfo[userid]

And checking if the user is logged in with:
require('global.php');

if ($bbuserinfo[userid]==0) {

//Send user to the registration page
show_nopermission();
} else {



If these don't work, are there methods to do this?

NTLDR
03-18-2004, 07:11 PM
require_once('./global.php');

if (!$bbuserinfo['userid']) {
print_no_permission();
}

pgowder
03-18-2004, 07:44 PM
Thanks, how about pulling the user's name or id?

$bbuserinfo[userid] still work??

NTLDR
03-18-2004, 08:08 PM
Yes, $bbuserinfo['userid'] still contains the users id and $bbuserinfo['username'] has the username.

pgowder
03-18-2004, 11:29 PM
Thanks