4images code on GitHub Click here to visit GitHub.
0 Members and 1 Guest are viewing this topic.
$lang_total_new = $lang['lang_total_new']; $site_template->register_vars("lang_total_new", $lang_total_new); unset($lang_total_new);
$lang['total_new'] = "Neue Bilder :";
<b>Bilder für dich : {total_images}</b>
$sql = "SELECT COUNT(*) AS all_total_images FROM ".IMAGES_TABLE." WHERE image_active = 1"; $row = $site_db->query_firstrow($sql); $all_total_images = $row['all_total_images']; $lang_all_total_images = $lang['all_total_images']; $site_template->register_vars("all_total_images", $all_total_images); $site_template->register_vars("lang_all_total_images", $lang_all_total_images); unset($all_total_images); unset($lang_all_total_images);
$lang['all_total_images'] = "Bilder gesamt :";
<b>{lang_all_total_images} {all_total_images}</b>
(69 neu = abhängig vom status)
//-----------------------------------------------------//--- Show New Images ---------------------------------//-----------------------------------------------------
//-----------------------------------------------------//--- Random Image ------------------------------------//-----------------------------------------------------
$sql = "SELECT COUNT(image_id) AS total_stats_images FROM " . IMAGES_TABLE . " WHERE image_active = 1 AND (cat_id NOT IN (".get_auth_cat_sql("auth_viewimage", "NOTIN").", ".get_auth_cat_sql("auth_viewcat", "NOTIN")."))";$row = $site_db->query_firstrow($sql);$total_stats_images = (isset($row['total_stats_images'])) ? (int)$row['total_stats_images'] : 0;$get_total_stats_images = (isset($total_stats_images) && $total_stats_images > 0) ? preg_replace("/" . $site_template->start . "total_images_count" . $site_template->end . "/siU", $total_stats_images, $lang['total_stats_images']) : "";$site_template->register_vars("total_stats_images", $get_total_stats_images);$total_stats_images_template = $site_template->parse_template("total_stats_images");$site_template->register_vars("total_stats_images_template", $total_stats_images_template);
$lang['total_stats_images'] = "Total images count: {total_images_count}";
{if total_stats_images_template}{total_stats_images_template}{endif total_stats_images_template}
{if total_stats_images}{total_stats_images}{endif total_stats_images}
Thanks dear for reply, i wanna show total number of images (old and new) on my site i mean site stats.For example.Total Wallpapers: 1239
My code is no random image ... is for total count of image ... QuoteThanks dear for reply, i wanna show total number of images (old and new) on my site i mean site stats.For example.Total Wallpapers: 1239
if i put your code in that section then random wallpaper will not work