Author Topic: In {paging_stats}, Displayed: image a to z  (Read 5399 times)

0 Members and 1 Guest are viewing this topic.

Offline sunl

  • Newbie
  • *
  • Posts: 20
    • View Profile
In {paging_stats}, Displayed: image a to z
« 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.

Rembrandt

  • Guest
Re: In {paging_stats}, Displayed: image a to z
« Reply #1 on: November 08, 2012, 02:29:31 PM »
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

Offline sunl

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: In {paging_stats}, Displayed: image a to z
« 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']

Rembrandt

  • Guest
Re: In {paging_stats}, Displayed: image a to z
« Reply #3 on: November 08, 2012, 08:18:55 PM »
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

Offline sunl

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: In {paging_stats}, Displayed: image a to z
« Reply #4 on: November 09, 2012, 12:48:10 AM »
Great,  its work as i want :D
Thanks for the help and support