Author Topic: Number format for {total images}, etc  (Read 4806 times)

0 Members and 1 Guest are viewing this topic.

Offline IndoX

  • Pre-Newbie
  • Posts: 9
    • View Profile
Number format for {total images}, etc
« on: May 06, 2015, 05:07:26 AM »
Hello,

I've been searching but haven't found a solution.

Right now my images show up as XXXXX and not XX,XXX. I would like to have them in number format for {lang_site_stats} and {num_images}

Regards,
Indo

Rembrandt

  • Guest
Re: Number format for {total images}, etc
« Reply #1 on: May 06, 2015, 06:23:31 PM »
Welcome to the Forum!

search in includes/page_header.php:

"total_categories" => $total_categories,
"total_images" => $total_images,

and replace:

"total_categories" => number_format($total_categories),
"total_images" => number_format($total_images),


search in includes/functions.php:

"num_images" => $num_images

and replace:

"num_images" => number_format($num_images)


and for the "categories.hmtl" search in includes/paging.php:

    $replace_array 
= array(
      
$this->num_rows_all,
      
$this->total_pages,
      
$this->first,
      
$this->last

and replace:

    $replace_array 
= array(
      
number_format($this->num_rows_all),
      
number_format($this->total_pages),
      
$this->first,
      
$this->last



mfg Andi

Offline IndoX

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Number format for {total images}, etc
« Reply #2 on: May 07, 2015, 02:23:26 AM »
Worked perfectly! Thanks!