Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Change "# views" to "viewed # times"  (Read 3525 times)

0 Members and 1 Guest are viewing this topic.

breagan1

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Change "# views" to "viewed # times"
« on: November 16, 2004, 04:31:03 pm »

The visitors to my gallery have been confused by the view counter under the thumbnails. They think "8 views" means that there are 8 views of that particular photo.  How can I change this to read "viewed 8 times"?  If I go to the "include" folder and "function.inc" I find "n_views".  But if I change this wording it disappears under the thumbnails.  What else do I need to change?
« Last Edit: November 16, 2004, 07:30:44 pm by TranzNDance »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Change "# views" to "viewed # times"
« Reply #1 on: November 16, 2004, 05:58:22 pm »

You don't change the functions.inc.php at all.  You should undo any changes you made to that.

Open lang/your_lang.php and edit this section (english.php shown)

Code: [Select]
$lang_get_pic_data = array(
  'n_comments' => '%s comments',
  'n_views' => '%s views',
  'n_votes' => '(%s votes)',
);

So you could change it to;

Code: [Select]
$lang_get_pic_data = array(
  'n_comments' => '%s comments',
  'n_views' => 'Viewed %s times',
  'n_votes' => '(%s votes)',
);
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

breagan1

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Change "# views" to "viewed # times"
« Reply #2 on: November 16, 2004, 06:40:31 pm »

It worked, thanks! :)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.