Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

Profile member's uid variable
#1

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.
Reply
#2

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); 
Support PM's will be ignored. Exclamation
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
Reply
#3

Thank you Omar Big Grin +rep
Hope you approve the stuff soon Tongue
Reply




Users browsing this thread: 1 Guest(s)