hi,
I am trying to add pictures for each block title in the theme.php.
function themesidebox
($block){ echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" style=\"width:100%;background-color:$GLOBALS[bgcolor2]\">" .
"<tr><td>" .
"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-title\"></td>$block[title]</tr>" .
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-normal\">$block[content]</td></tr>" .
"</table>" .
"</td></tr>" .
"</table>";
}
I replaced it with the following code
"<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-title\"><img src=\"images/$block[title].gif\"></td></tr>" .
I add a variable to the path of a image's "href". Is this grammar correct? I am not sure about it! I found one example in the "thelang.php"
$content .= "<a href=\"$currentURL".$append."newlang=$k\"><img src=\"images/flags/flag-$k.png\" alt=\"$lang[$k]\" $imgsize[3]></a>";
if this is correct, my code should be working.
And the most strange thing is that it's working when I don't log in. When I log in, I got the follwing error.
Not Found
The requested URL /images/MainMenu span>
I do have those pictures in the fold of "images".
Can someone help me to fix it?
Thanks
Tracy