This topic is locked

Images in ver 4 beta

4/15/2007 4:35:48 PM
PHPRunner General questions
J
jim9 author

Prior to ver 4, I did the following to show an image smaller on list page but full size on the view page. Basically I commented out a line. This technique isn't working in ver 4 beta, but worked in ver 3.1. Any ideas? code: > dogpic - File-based Image
$value="";
if(CheckImageExtension($data["dogpic"]))
{
$value="<img";
// $value.=" width=100"; THIS LINE COMMENTED OUT
// $value.=" border=0"; THIS LINE COMMENTED OUT
// commenting these 2 lines makes picture full size in view page
// which is what I want....
$value.=" src=\"".htmlspecialchars(AddLinkPrefix("dogpic",$data["dogpic"]))."\">";
}
$smarty->assign("show_dogpic",$value);

Alexey admin 4/16/2007

Hi,
this code works the same way as in version 3.1

You modifications should work.

Make sure you modify proper files, refresh your page in browser, clean browser cache etc.