sunl
Newbie
Offline
Posts: 20
Thank You
-Given: 6
-Receive: 0
|
 |
« 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.
|
|
|
|
Logged
|
|
|
|
Rembrandt
Moderator
4images Guru
   
Offline
Posts: 4187
Thank You
-Given: 116
-Receive: 896
Vienna
|
 |
« Reply #1 on: November 08, 2012, 02:29:31 PM » |
|
Hi! search in lang/english/main.php: 1
| $lang['paging_stats'] = "Found: {total_cat_images} image(s) on {total_pages} page(s). Displayed: image {first_page} to {last_page}.";
|
mfg Andi
|
|
|
|
Logged
|
|
|
|
sunl
Newbie
Offline
Posts: 20
Thank You
-Given: 6
-Receive: 0
|
 |
« Reply #2 on: November 08, 2012, 03:24:55 PM » |
|
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']
|
|
|
|
Logged
|
|
|
|
Rembrandt
Moderator
4images Guru
   
Offline
Posts: 4187
Thank You
-Given: 116
-Receive: 896
Vienna
|
 |
« Reply #3 on: November 08, 2012, 08:18:55 PM » |
|
search in lang/english: 1
| $lang['paging_stats'] = "Found: {total_cat_images} image(s) on {total_pages} page(s). Displayed: image {first_page} to {last_page}.";
|
insert below: 1
| $lang['paging_stats2'] = "{first_page} to {last_page}.";
|
search in categories.php: 1
| "paging_stats" => $getpaging->get_paging_stats()
|
replace: 1 2
| "paging_stats" => $getpaging->get_paging_stats(), "paging_stats2" => $getpaging->get_paging_stats2()
|
search in includes/paging.php: 1
| $this->desc = $lang['paging_stats'];
|
insert below: 1
| $this->desc2 = $lang['paging_stats2'];
|
search: insert below: 1 2 3 4 5 6 7 8 9 10 11 12 13
| 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
|
|
|
|
Logged
|
|
|
|
sunl
Newbie
Offline
Posts: 20
Thank You
-Given: 6
-Receive: 0
|
 |
« Reply #4 on: November 09, 2012, 12:48:10 AM » |
|
Great, its work as i want  Thanks for the help and support
|
|
|
|
Logged
|
|
|
|
|