rstan
06-26-2004, 06:26 PM
I cant figure this out. I need to have a carrige return or a new line insterted with the imgurl. This script places the images in a single line. I need onclick insert url and a carrige return. I dont know if this should be in Jscript or PHP forums so please excuse if its in the wrong place....thanks
if ( $medsize > 0 ) $imgurl = "{$data_dir}/$ppcat/{$user}{$photo_name}-med{$theext}";
else $imgurl = "[img]{$data_dir}/$ppcat/{$user}{$photo}[/img]";
$mthumb = "<img border=\"0\" src=\"{$data_dir}/{$ppcat}/{$user}{$photo_name}-thumb{$theext}\" alt=\"\" />";
$photorow .= <<<EOF
<td width="25%" align="center" valign="middle" class="$bgclass">
<a href="javascript:void(0)" onclick="updatePost('$imgurl')">$mthumb</a>
if ( $medsize > 0 ) $imgurl = "{$data_dir}/$ppcat/{$user}{$photo_name}-med{$theext}";
else $imgurl = "[img]{$data_dir}/$ppcat/{$user}{$photo}[/img]";
$mthumb = "<img border=\"0\" src=\"{$data_dir}/{$ppcat}/{$user}{$photo_name}-thumb{$theext}\" alt=\"\" />";
$photorow .= <<<EOF
<td width="25%" align="center" valign="middle" class="$bgclass">
<a href="javascript:void(0)" onclick="updatePost('$imgurl')">$mthumb</a>