Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Extra commas in the album view?  (Read 2368 times)

0 Members and 1 Guest are viewing this topic.

ashleyXcore

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 49
    • Magazine Junkie
Extra commas in the album view?
« on: November 04, 2006, 05:40:22 am »

If you go to this category: http://pink-pistol.net/scans/index.php?cat=4 (it's work safe), you'll see that I have extra commas in the statistics.

It looks like this:
Files: 251
Updated: Nov 03, 2006
, Linked: 40
, Total: 291

I need it to look like this:
Files: 251
Updated: Nov 03, 2006
Linked: 40
Total: 291

Here is what I have in my language file, I'm not sure where the extra commas are coming from.
Code: [Select]
$lang_list_albums = array(
  'n_pictures' => '<b>Files:</b> %s<br>',
  'last_added' => '<b>Updated:</b> %s',
  'n_link_pictures' => '<b>Linked:</b> %s<br>', //cpg1.4
  'total_pictures' => '<b>Total:</b> %s', //cpg1.4
);
« Last Edit: November 04, 2006, 09:16:36 am by Sami »
Logged
"There are many kinds of eyes. Even the sphinx has eyes — and consequently there are many kinds of 'truths', and consequently there is no truth."

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Extra commas in the album view?
« Reply #1 on: November 04, 2006, 05:58:05 am »

It need core hack (mod),
- Edit index.php and find this line (around line 538)

Code: [Select]
            $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : "") . (($CONFIG['link_pic_count'] && $link_pic_count > 0 ) ? sprintf(", {$lang_list_albums['n_link_pictures']},  {$lang_list_albums['total_pictures']}", $link_pic_count, $count + $link_pic_count) : "");

and change it with this:

Code: [Select]
// [BEGIN] Moded to remove extra commas
            $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : "") . (($CONFIG['link_pic_count'] && $link_pic_count > 0 ) ? sprintf(" {$lang_list_albums['n_link_pictures']}  {$lang_list_albums['total_pictures']}", $link_pic_count, $count + $link_pic_count) : "");
// [END]

As I said it's Core mod so be careful about that
Logged
‍I don't answer to PM with support question
Please post your issue to related board

ashleyXcore

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 49
    • Magazine Junkie
Re: Extra commas in the album view?
« Reply #2 on: November 04, 2006, 08:58:06 am »

Ahh I see, thank you very much :)
Logged
"There are many kinds of eyes. Even the sphinx has eyes — and consequently there are many kinds of 'truths', and consequently there is no truth."
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.