MyBB-Plugins Forums

Full Version: Profile member's uid variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi !
I'm developping a plugin, and i have a function which is launched in member_profile_start (hook).
I need the profile member's uid variable.
I used those ones but don't work :
$memprofile["uid"], $_GET["uid"]
The GET works on MyBB 1.6 but not in 1.8 :/
Please help.
Hook: member_profile_start
MyBB: 1.8+
Code:
PHP Code:
global $mybb;

$uid $mybb->get_input('uid'1);
if(
$uid)
{
    
$memprofile get_user($uid);
}
elseif(
$mybb->user['uid'])
{
    
$memprofile $mybb->user;
}
else
{
    return;
}

print_r($memprofile); 
Thank you Omar Big Grin +rep
Hope you approve the stuff soon Tongue