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: [solved]: How to remove the n. of views from the title?  (Read 4858 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.025 seconds with 18 queries.