so..
suche in der page_header.php:
unset($category_dropdown_form);
füge darunter ein:
//######################################### Random Images Start #########################################################
$num_random_images = $config['image_cells'];
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name".get_user_table_field(", u.", "user_name")."
FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
ORDER BY RAND()
LIMIT $num_random_images ";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);
if (!$num_rows) {
$random_images = $lang['no_random_images'];
}
else {
$random_images ="";
while ($image_row = $site_db->fetch_array($result)){
show_image($image_row);
$random_images .= $site_template->parse_template("random_bit");
} // end while
} // end else
$site_template->register_vars(array(
"random_images" => $random_images
));
unset($random_images);
//######################################### Random Images END #########################################################
erstell eine neue datei mit den namen "random_bit.html" und speichere sie in deinen template ordner:
{thumbnail}
<br>
<b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new} ({user_name_link})
<br>
<a href="{cat_url}">{cat_name}</a><br />
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br />
{lightbox_button}
suche in deinTemplates/home.html :
{random_image}
und ersetze es mit:
{random_images}
mfg Andi