drupalfun.com
4.4.2 Menu link in new block
Hi All... attempting to add a profile link in a new block as per 4.4.2.
My block just displays this code:
uid;
$node=content_profile_load(profile, $myuid);
//profile above = the name of our content type
$profileid=$node->nid;
$myimage=theme_image('path to my image');
print l($myimage, 'node/'.$node->nid, array('html'=>true)) ?>
I've checked my 'Input Format' in the block and it's set to PHP!!
Can anyone help??
It's weird that the code displayed only starts from: uid;
The full code I have in my block is: <?php global $user;
$myuid=$user->uid;
$node=content_profile_load(profile, $myuid);
//profile above = the name of our content type
$profileid=$node->nid;
$myimage=theme_image('sites/all/themes/cantkeepup/images/block_cap_user_info.gif');
print l($myimage, 'node/'.$node->nid, array('html'=>true)) ?>
Thanks
Jimmy

