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: Remove counter from last added  (Read 6049 times)

0 Members and 1 Guest are viewing this topic.

adik

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Remove counter from last added
« on: December 14, 2005, 07:48:38 pm »

How to remove counter of views from last added category only ???

Nibbler

  • Guest
Re: Remove ... from last added
« Reply #1 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))) {
Logged

adik

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Remove ... from last added
« Reply #2 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......

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Remove counter from last added
« Reply #3 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.
Logged

adik

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Remove counter from last added
« Reply #4 on: December 16, 2005, 08:57:39 pm »

Well, then how to remove ??Any posiibilities ???

Nibbler

  • Guest
Re: Remove counter from last added
« Reply #5 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Remove counter from last added
« Reply #6 on: December 17, 2005, 12:27:22 am »

@Nibbler: should your plugin go into the plugin contrib sub-board?
Logged

Nibbler

  • Guest
Re: Remove counter from last added
« Reply #7 on: December 17, 2005, 12:38:34 am »

No, I'm planning a complete caption editing plugin that will cover this.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.