Welcome to Geeklog, Anonymous Friday, July 19 2024 @ 08:15 pm EDT

Geeklog Forums

cant get $uid


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;


Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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

All times are EDT. The time is now 08:15 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content