[]
Zarzal said:Was hat es mit ubbt_photopost.tmpl auf sich ? Was hast du geändert ? [/]
Ach da habe ich nur eine Zeile geändert, damit man die Bilder wieder im Forum als Gallery sieht...
Suche
[] while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$photo = $line["bigimage"];
if ( is_image($photo) ) {
$photolen = strlen($photo);
$theext = get_ext($photo);
$photo_name = str_replace( $theext, "", $photo );
print "<td align="center" bgcolor="#FFFFFF" width="25%"><font size="1" face="verdana,arial">";
$temp_user = $line["userid"];
$thumbtag = "{$full_path}{$line['cat']}/{$line['userid']}{$photo}";
$mthumb = "<img border="0" src="{$data_dir}{$line['cat']}/{$line['userid']}{$photo_name}-thumb{$theext}" alt="$thumbtag" />";
print "<a href="{$url_path}/showphoto.php?photo={$line['id']}">$mthumb</a><br />by ".$line["user"]."</font></td>";
$counted++;
}
if ( $counted == 4 ) break;
}
mysql_free_result($result);
[/]
Ersetze durch
[] while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$photo = $line["bigimage"];
if ( is_image($photo) ) {
$photolen = strlen($photo);
$theext = get_ext($photo);
$photo_name = str_replace( $theext, "", $photo );
print "<td align="center" bgcolor="#000000" width="25%"><font size="1" face="verdana,arial">";
$temp_user = $line["userid"];
$thumbtag = "{$full_path}{$line['cat']}/{$line['userid']}{$photo}";
$mthumb = "<img border="0" src="{$data_dir}{$line['cat']}/thumbs/{$photo_name}{$theext}" alt="$photo" />";
print "<a href="{$url_path}showphoto.php?photo={$line['id']}">$mthumb</a><br />{$ubbt_lang['TEXT_BY']} ".$line["user"]."</font></td>";
$counted++;
}
if ( $counted == 4 ) break;
}
mysql_free_result($result);
[/]
Und schon sind die Bilder wieder als Vorschau im Forum.
