4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 03, 2014, 08:59:21 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Requests & Discussions) (Moderators: mawenzi, Rembrandt)
| | |-+  In {paging_stats}, Displayed: image a to z
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: In {paging_stats}, Displayed: image a to z  (Read 2079 times)
sunl
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 6
-Receive: 0


View Profile
« 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 Offline

Posts: 4046

Thank You
-Given: 105
-Receive: 850

Vienna


View Profile WWW
« 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

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
sunl
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 6
-Receive: 0


View Profile
« Reply #2 on: November 08, 2012, 03:24:55 PM »

Thanks for reply Rembrandt. Smile


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 Offline

Posts: 4046

Thank You
-Given: 105
-Receive: 850

Vienna


View Profile WWW
« 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:
1
2
    return $this->desc;
  }
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

Follow members gave a thank to your post:
sunl

For this post, 1 member gave a thank you!
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
sunl
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 6
-Receive: 0


View Profile
« Reply #4 on: November 09, 2012, 12:48:10 AM »

Great,  its work as i want Very Happy
Thanks for the help and support
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.118 seconds with 24 queries.
Post your comments here