step1:write the block title
step2:write the following php code in body
<?
global $base_url;//give the base url path link "http://www.fando.in"
$url = $_SERVER['REQUEST_URI'];//it return the argument of url like "http://www.fando.in/photo" then this while return "photo"
switch($url){
case '/photo':
$img="<img alt='' src = '{$base_url}/sites/default/files/about-us-image.jpg' />";
print $img;
break;
case '/image' :
$img="<img alt='' src = '{$base_url}/sites/default/files/IDW_In_63_0.jpg' />";
print $img;
break;
}
?>
step3:select the "php code " input format.
step4:Show block on specific pages,in that user need to write where this block display
eg:photo
step5:select the region,for proper display block.
eg:leftside,rightside etc
step2:write the following php code in body
<?
global $base_url;//give the base url path link "http://www.fando.in"
$url = $_SERVER['REQUEST_URI'];//it return the argument of url like "http://www.fando.in/photo" then this while return "photo"
switch($url){
case '/photo':
$img="<img alt='' src = '{$base_url}/sites/default/files/about-us-image.jpg' />";
print $img;
break;
case '/image' :
$img="<img alt='' src = '{$base_url}/sites/default/files/IDW_In_63_0.jpg' />";
print $img;
break;
}
?>
step3:select the "php code " input format.
step4:Show block on specific pages,in that user need to write where this block display
eg:photo
step5:select the region,for proper display block.
eg:leftside,rightside etc