Purchase Credits 2.0.1 released and NewPoints 2.1.2 released .
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
Reply
#3
Thank you Omar Big Grin +rep
Hope you approve the stuff soon Tongue
Reply





Users browsing this thread: 1 Guest(s)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2020 MyBB-Plugins Forums.

Statistics

  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here