PDA

View Full Version : Display user-info on non-vb page


Python2
10-03-2004, 04:44 PM
Heres what I want:

If a user is not logged in I would like a login box to appear. If they are logged in then I would like the following to show up:


USERNAME :: Logout
New Messages: 0
Total Messages: 0

Your Posts: 34
Your Threads: 9
Edit Profile

Obviously above the USERNAME would be replaced with the members username and the numbers would be replaced by the approiate values.

So how do I do this?

Thanks

miz
10-03-2004, 06:01 PM
its easy

if (!$bbuserinfo['userid']) {

// login code here

} else {

// user info here

}

Python2
10-04-2004, 11:35 AM
yes but then how do I display all the other stuff. such as username, number of posts, pm's, etc

miz
10-04-2004, 01:01 PM
echo "User Posts : $bbuserinfo[posts]";

Python2
10-04-2004, 05:23 PM
what files do I have to include to get thise variables accesible in a non vb page?

miz
10-04-2004, 06:04 PM
read this thread, maybe its can help you

https://vborg.vbsupport.ru/showthread.php?t=62164

assassingod
10-04-2004, 06:51 PM
what files do I have to include to get thise variables accesible in a non vb page?
global.php mainly. It contains all the relevant information for users.