forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: adik on December 14, 2005, 07:48:38 pm

Title: Remove counter from last added
Post by: adik on December 14, 2005, 07:48:38 pm
How to remove counter of views from last added category only ???
Title: Re: Remove ... from last added
Post by: Nibbler on December 14, 2005, 07:59:53 pm
File: include/functions.inc.php

under

Code: [Select]
    global $lang_get_pic_data, $lang_meta_album_names, $lang_errors;

add

Code: [Select]
global $album;

find

Code: [Select]
        if ($CONFIG['views_in_thumbview'] || in_array('hits',$must_have)) {
change to

Code: [Select]
        if ($album != 'lastup' && ($CONFIG['views_in_thumbview'] || in_array('hits',$must_have))) {
Title: Re: Remove ... from last added
Post by: adik on December 14, 2005, 08:11:11 pm
Boing.And nothing...number of views is still on last additions.Damn it :(

http://kitek.net



Anyone know hot to do this ????? I have that on 1.3.5 but here....


Hmm.Im looking on another forum users gallery and i see that on many site...

http://www.338tharmyband.com/photo_gallery/

http://www.antonovart.com/gallery/

http://www.trevorlarson.com/

http://www.lenon.com/modules.php?name=coppermine


Even http://tariquesani.net/ have that......
Title: Re: Remove counter from last added
Post by: Joachim Müller on December 16, 2005, 10:18:26 am
well, the sites you're refering to maybe didn't want to remove the feature that you want to remove.
Title: Re: Remove counter from last added
Post by: adik on December 16, 2005, 08:57:39 pm
Well, then how to remove ??Any posiibilities ???
Title: Re: Remove counter from last added
Post by: Nibbler on December 16, 2005, 09:22:28 pm
The sites you mention have the view count turned off for all albums using the option in config. You are asking for the view count only to be removed from latest uploads which is different. The code I gave you removed the view count from the lastup album (http://adik.netlook.pl/thumbnails.php?album=lastup) which is what I assumed you wanted. Perhaps you should be clearer about what you are requesting in the future.

This plugin should do what you want.
Title: Re: Remove counter from last added
Post by: Joachim Müller on December 17, 2005, 12:27:22 am
@Nibbler: should your plugin go into the plugin contrib sub-board?
Title: Re: Remove counter from last added
Post by: Nibbler on December 17, 2005, 12:38:34 am
No, I'm planning a complete caption editing plugin that will cover this.