Verfasst: 22.03.2006 11:12
Buttons hab ich übersetzt.
Müssten bald im phpca Forum online gestellt werden.
Gruß
Müssten bald im phpca Forum online gestellt werden.
Gruß
.....Tupamaro hat geschrieben:Hatte schon das gif in der mein template.cfg geändert. Das hat aber nur bewirkt, daß bei Anzeigen ohne Bilder auch das Verkauft.gif angezeigt wird.
Wie man sieht gibt es hier keinen Eintrag wie z.B. $images['imagesold'] aber ich denke, daß es hiermit etwas zu tun haben könnte:$images['noimage'] = "$current_template_images/lang_german/noimage.gif";
$images['paypal_logo'] = "$current_template_images/paypal_logo.gif";
$images['msg_newad'] = "$current_template_images/lang_german/msg_newad.gif";
$images['icon_images'] = "$current_template_images/lang_german/icon_images.gif";
$images['icon_renew'] = "$current_template_images/lang_german/icon_renew.gif";
$images['icon_sold'] = "$current_template_images/lang_german/icon_sold.gif";
$images['icon_active'] = "$current_template_images/lang_german/icon_active.gif";
Kann man hier etwas einfügen, daß auf ein $images['soldimage']...... verweißt?// Check to see if an image exists for this ad
if ( $ads_config['images'] == 1 )
{
$sql2 = "SELECT *
FROM ". ADS_IMAGES_TABLE ."
WHERE id = '$id'
AND img_deleted_ind = 0
LIMIT 1";
$result2 = $db->sql_query($sql2);
if ( $db->sql_numrows($result2) > 0 )
{
while ($row2 = $db->sql_fetchrow($result2))
{
$img_url = ADS_IMAGES_PATH ."ad".$id."_img".$row2["img_seq_no"]."_thumb.jpg";
}
}
else
{
$img_url = $images['noimage'];
}
$template->assign_block_vars('imagerow', array(
'U_ADS_ITEM' => append_sid("ads_item.$phpEx?id=".$row['id']),
'USERNAME' => $row['username'],
'TITLE' => $row['title'],
'SHORT_DESC' => nl2br($row['short_desc']),
'DATE_ADDED' => date($lang['DATE_FORMAT'],$row['time']),
'STATUS' => $status,
'PRICE' => $row['price'],
'VIEWS' => $row['views'],
'IMAGE' => $img_url));
}
else
{
$template->assign_block_vars('noimagerow', array(
'U_ADS_ITEM' => append_sid("ads_item.$phpEx?id=".$row['id']),
'USERNAME' => $row['username'],
'TITLE' => $row['title'],
'SHORT_DESC' => nl2br($row['short_desc']),
'DATE_ADDED' => date($lang['DATE_FORMAT'],$time),
'STATUS' => $status,
'PRICE' => $row['price'],
'VIEWS' => $row['views']));
}
}
}