4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: sunl on November 08, 2012, 02:06:13 PM
-
In category.php file there is code {paging_stats} which shows text like this "Found: 7 image(s) on 1 page(s). Displayed: image 1 to 7". But i want only text "Displayed: image 1 to 7" to show.
I try to figure it out but failed.
Please help.
-
Hi!
search in lang/english/main.php:
$lang['paging_stats'] = "Found: {total_cat_images} image(s) on {total_pages} page(s). Displayed: image {first_page} to {last_page}.";
mfg Andi
-
Thanks for reply Rembrandt. :)
I want like this $lang['paging_stats'] = "{first_page} to {last_page}.";
without deleting this $lang['paging_stats'] = "Found: {total_cat_images} image(s) on {total_pages} page(s). Displayed: image {first_page} to {last_page}.";
How tho change code to get $lang['paging_stats2']
-
search in lang/english:
$lang['paging_stats'] = "Found: {total_cat_images} image(s) on {total_pages} page(s). Displayed: image {first_page} to {last_page}.";
insert below:
$lang['paging_stats2'] = "{first_page} to {last_page}.";
search in categories.php:
"paging_stats" => $getpaging->get_paging_stats()
replace:
"paging_stats" => $getpaging->get_paging_stats(),
"paging_stats2" => $getpaging->get_paging_stats2()
search in includes/paging.php:
$this->desc = $lang['paging_stats'];
insert below:
$this->desc2 = $lang['paging_stats2'];
search:
return $this->desc;
}
insert below:
function get_paging_stats2() {
global $site_template;
$search_array = array(
"/".$site_template->start."first_page".$site_template->end."/iU",
"/".$site_template->start."last_page".$site_template->end."/iU"
);
$replace_array = array(
$this->first,
$this->last
);
$this->desc2 = preg_replace($search_array, $replace_array, $this->desc2);
return $this->desc2;
}
now, you can write in categories.html : {paging_stats2}
mfg Andi
-
Great, its work as i want :D
Thanks for the help and support