I have a block in view that is displaying the user details, i want to display that block in a nodes created by the respective users.
i am successfully using this block in user page now i want it on node page.
please help me.
For another block which is also coming from view is worked fine with this code Show block on specific pages:
<?php
//Read URL
$path=$_GET['q'];
//If URL is node page
if ( strpos($path,'node')===0){
//Parse URL to get nid
$links=explode("/",$_GET['q']);
$nid=$links[1];
//Load node
$node=node_load($nid);
//Display block only if node is of certain content type
if($node->type=='user_art'){
return TRUE;
}
}
return FALSE;
?>
Thanks