PDA

View Full Version : How do i get userid in profile page?


nicedreams
01-26-2006, 05:27 PM
How do i get userid in profile page?

I have a plugin under global start, the variable is being called from the profile page.

ob_start();
$memid = $userinfo[userid];
include("../jim_profile_gallery.php");
$jim_profile_gallery = ob_get_contents();
ob_end_clean();

$userinfo[userid] quals null.

I need $memid to equal the userid of the member's profile I am viewing.

I'm not sure if the plugin is in the right hook location or if i'm just accessing the userid field wrong.

Jim

Delphiprogrammi
01-26-2006, 05:35 PM
$memid=$vbulletin->userinfo['userid'];

nicedreams
01-26-2006, 05:42 PM
$memid=$vbulletin->userinfo['userid'];


No, that's my userid. I want the userid of the person's profile page i'm viewing.

Jim

Guest190829
01-26-2006, 05:50 PM
Try $userinfo[userid]

nicedreams
01-26-2006, 06:17 PM
Try $userinfo[userid]

Uh no, that's what i started out with. Equals null.

Jim