Remove counter from last added Remove counter from last added
 

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

Main Menu

Remove counter from last added

Started by adik, December 14, 2005, 07:48:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

adik

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

Nibbler

File: include/functions.inc.php

under


    global $lang_get_pic_data, $lang_meta_album_names, $lang_errors;


add


global $album;


find

        if ($CONFIG['views_in_thumbview'] || in_array('hits',$must_have)) {

change to

        if ($album != 'lastup' && ($CONFIG['views_in_thumbview'] || in_array('hits',$must_have))) {

adik

#2
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

well, the sites you're refering to maybe didn't want to remove the feature that you want to remove.


Nibbler

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.

Joachim Müller

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

Nibbler

No, I'm planning a complete caption editing plugin that will cover this.