forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: boolbo on February 27, 2004, 01:25:27 pm

Title: [solved]: How to remove the n. of views from the title?
Post by: boolbo 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
Title: [solved]: How to remove the n. of views from the title?
Post by: Nibbler 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'])
Title: [solved]: How to remove the n. of views from the title?
Post by: Casper 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>" : '';
Title: [solved]: How to remove the n. of views from the title?
Post by: boolbo 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