Foren / Cotonti / Support / shopsystem

ruben
#36706 6. Januar 2013, 17:48

i have the shopsystem plugin running at my site, and added the prdct_extra lines to be able to add some extra photo's.
but when there is no photo-url added it does add the code accept for the URL that was not added
so i get an image with a dead url

how can i change the code in the shopsystem.detail.php code so it shows a "No Photo" image when the prdct_extra field is empty?

i tried a little bit myself but i have no php coding skills at all cheeky

if (empty($row1['prdct_extra9']) {$shopsystem_items .= "<td width=\"200px\"><img src=\"images/geenfoto.jpg width=\"100px\" id=\"ads\" \"></td>" : '';} else { 
$shopsystem_items .= "<td width=\"200px\"><a href=\"datas/users/".$cfg['plugin']['shopsystem']['shopsystem_userid']."/".$row1['prdct_extra9']."\" target=\"_blank\">
<img src=\"datas/users/".$cfg['plugin']['shopsystem']['shopsystem_userid']."/".$row1['prdct_extra9']."\" width=\"100px\" id=\"ads\" \"></a>" : '';};