PDA

View Full Version : Want to show the logge din users profile


DjSao
03-24-2001, 10:55 AM
I have a header where a menu is, and in the menu i want a link to the logged in users profile, not where he can edit it, just the profile, exactly like other people see it.

I think i know how to do this, ill grab the "start get info" code from member.php and put it in a separate file, like yourprofile.php, but the mysql quiry in the beginning of "Start get info" must be changed so that it automaticly shows the logged in users profile, can someone help me out doing this?

03-24-2001, 11:06 AM
Find this:

$userid = verifyid("user",$userid);

Above it, put this:

$userid = $bbuserid;

Untested but should be ok :)

03-24-2001, 11:25 AM
thanks, it worked perfectly.

03-24-2001, 12:47 PM
Instead of making code changes you simply could have linked to it....

member.php?action=getinfo&userid=$bbuserinfo[userid]&s=$session[sessionhash]

03-24-2001, 01:09 PM
thanks, used that instead