Quoting Nick Young nick_young@ncsu.edu:
If you know member id, ,
Go to block configure
select " Show if the following PHP code returns |TRUE| (PHP-mode, experts only). "
and write the code
global $user
$userid=$user->uid; if($userid ==10 || $userid ==10 ){
return TRUE;
} else{
return FALSE; }
--8<--
I need the block to display only if BOTH conditions are met. I need the block to NOT display if none or only one condition is met.
The built-in options only allow you to check for one type of condition (path OR role).
I need it to check for path AND role.
So just change the condition.
return ($user->uid == 10 && $_GET['q'] = 'my/uri/path')
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/