04/04/04 05:35pm
geekuskhan
Anonymous
I am trying to write a custome block. But I cant seem to get the $uid into my function. check this out:
Text Formatted Code
#start online tools function
function phpblock_onlineTools($uid){
$retval .= "test = " . $uid;
return $retval;
}
04/05/04 01:59am
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
The PHP blocks don't get any parameters.
Refer to the global variable $_USER['uid'] for the user id (and note that it can be empty or 1 for anonymous users).
bye, Dirk