Welcome to Geeklog, Anonymous Sunday, March 03 2024 @ 01:47 pm EST

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 EST. The time is now 01:47 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