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: [solved]: How to remove the n. of views from the title?  (Read 4174 times)

0 Members and 1 Guest are viewing this topic.

boolbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://www.boolbo.com
[solved]: How to remove the n. of views from the title?
« on: February 27, 2004, 01:25:27 pm »

I hope this is a simple matter, but I wasn't able to find a right answer to my problem throught the seach function on this board.
I wish to know how to remove the number of views from the title of the images shown in the album homepage....
Look at my website Hp:
http://www.expo.francesconesi.it/thumbnails.php?album=2

For example you could see the first image called "Voler dans l'ensamble".
This is the title of this picture, but now you could see the number of views on this pic too. Look like:

"Voler dans l'ensamble-1 views"

So I would remove th "...-1 views" text from the title shown there. I'm not interested in this kind of counter....is it possible?
Thank you for your help
Marco
Logged
---
Boolbo.com
about photography and seeing
http://www.boolbo.com
http://www.images.boolbo.com

Nibbler

  • Guest
[solved]: How to remove the n. of views from the title?
« Reply #1 on: February 27, 2004, 01:47:43 pm »

In functions.inc.php find and remove:

Code: [Select]

.(($rowset[$key]['title'])?"-":"").sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits'])
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
[solved]: How to remove the n. of views from the title?
« Reply #2 on: February 27, 2004, 02:08:51 pm »

functions.inc.php, change line 449,
Code: [Select]

$caption = ($rowset[$key]['title']||$rowset[$key]['hits']) ? "<span class=\"thumb_title\">".$rowset[$key]['title'].(($rowset[$key]['title'])?"-":"").sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits'])."</span>" : '';



To this;
Code: [Select]
$caption = ($rowset[$key]['title']||$rowset[$key]['hits']) ? "<span class=\"thumb_title\">".$rowset[$key]['title'].(($rowset[$key]['title'])?"-":"")."</span>" : '';
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

boolbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://www.boolbo.com
[solved]: How to remove the n. of views from the title?
« Reply #3 on: February 27, 2004, 02:29:18 pm »

:D  Nibbler, Casper, thank you for your help...now it is running good!

If you want, you could visit the gallery:
http://www.expo.francesconesi.it/

Bye, have a nice day!
Marco
Logged
---
Boolbo.com
about photography and seeing
http://www.boolbo.com
http://www.images.boolbo.com
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 18 queries.