Extra commas in the album view? Extra commas in the album view?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Extra commas in the album view?

Started by ashleyXcore, November 04, 2006, 05:40:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ashleyXcore

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.
$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
);
"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

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


            $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:


// [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
‍I don't answer to PM with support question
Please post your issue to related board

ashleyXcore

"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."