Empty Album Properties And Stats Empty Album Properties And Stats
 

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

Empty Album Properties And Stats

Started by Zvi, October 23, 2004, 05:28:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zvi

Hi All,

I've run into this issue today. I was creating new album, which was a subset of an existing larger album. Basically alll I didi is created an album with specific keyword what was used on several pix in another album. Because this smaller album didn't contain any pictures, but only linked ones select icon feature for this album was not available. And counters didn't work either. It displayed 0 pix and no link count.
I believe this isn't the right behavior. SInce CPG allows links, linked pic icons should be available to select them as album icon and counters shold be working properly either way.
Have Fun,
Gator
http://zvis.com

Joachim Müller

 ???

What coppermine version are you refering to?

Joachim

Zvi

Pardon, somehow I assumed feature requests was about 1.4.
I am using cpg 1.4. Donno how does this thing works in 1.3.
I've looked at the code and the reason empty album gets no stats is this select:
    //This query will fetch album stats and keyword for the albums
    $sql = "SELECT p.aid, count(p.pid) as pic_count, max(p.pid) as last_pid, max(p.ctime) as last_upload, a.keyword " .
            "FROM {$CONFIG['TABLE_PICTURES']} AS p, {$CONFIG['TABLE_ALBUMS']} AS a " .
            "WHERE p.aid IN $album_set AND
             p.aid = a.aid AND
            p.approved = 'YES' " . "GROUP BY p.aid";

Donno SQL that well to make that select pull stats for empty album as well, doesn't look possible.
Have Fun,
Gator
http://zvis.com

Joachim Müller

Actually you're looking for support on cpg1.4.0, which is still under development. There's absolutely no support for it, as clearly stated both in the documentation and on various postings on this board. The feature you're refering to is still under heavy development, you're not meant to use cpg1.4.0 if you can't live with this - it is not meant for production use.
"Feature requests" is exactly what it says: you can request features for new versions, but you can not request developers to fix bugs in development versions - we know those bugs exist, and we're working on them. Bug-fixing is not the same a a new feature.

Joachim

Zvi

I posted in feature requests because it was something that would be nice to see working in future versions, I was not requesting bug fix or support.  I do understand 1.4 has no support and I am on my own. Just sometimes it's not very clear whether something was designed that way or it's a bug.

Ok, my bad. Wrong forum, and which would be the right one? To post things like this?


P.S. I did fix this with some php code mods, resolves the issue, not too elegant, but works for now.
Have Fun,
Gator
http://zvis.com