Advanced search  

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

Pages: [1]   Go Down

Author Topic: pic_count  (Read 6844 times)

0 Members and 1 Guest are viewing this topic.

danp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
pic_count
« on: October 11, 2003, 02:31:21 am »

Is there a way to update the pic count for each album?  I made a script that lists each album and how many photos are in it by getting the pic_count from each album in mysql but they aren't accurate.  What makes them update, even when I upload photos to that album they do not change.  Is there some way to change them or someone have a script to do it?
Logged

danp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
pic_count
« Reply #1 on: October 12, 2003, 09:37:59 pm »

Should my pic_count be updating everytime a picture is uploaded?
Logged

danp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
pic_count
« Reply #2 on: October 13, 2003, 08:08:33 pm »

What does it take to get a responce around here??? I think something is wrong, it should be updating the pic_count correct?  It hasn't updated in a week, almost all the galleries are wrong.

http://www.correct-proportion.com
user: nimrod
pass: guitar
version 1.1D in phpnuke
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
pic_count
« Reply #3 on: October 13, 2003, 08:14:10 pm »

If you've looked at the cpg_albums table you'd know that cpg calculates the number of pics in the album on the fly.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
pic_count
« Reply #4 on: October 13, 2003, 08:33:58 pm »

I looked at your site.  I looked in a few albums and counted the number of pics, the counts cpg show at the bottom of each page appear to be correct.  If you're referring to the script you wrote not reporting the correct numbers, it's because your script isn't correct.  Look in index.php and you'll see how cpg counts (hint, $count) pictures in each album.

And since your original post was Friday, October 10, and it's now the 13th, I don't think that's too long of a wait to get a response, especially since it doesn't look (at first glance) that there's anything wrong with cpg.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

danp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
pic_count
« Reply #5 on: October 13, 2003, 09:48:33 pm »

The numbers on the left menu are from a script that I wrote, thats not what I'm talking about, those are correct.  I'm talking about cpg's main menu where it lists the categories and the albums not under any categories.

Look at "user uploads" and "user artwork gallery" both are not under any categories.  The uploads has 4 pictures in it, the script on the left says 4, cpg says it has 3.  The artwork gallery has 1, the script on the left says 1, cpg says 0.  

I started using cpg on oct. 1st which is when I uploaded almost all of the pictures.  I'm pretty sure that anything uploaded after then has not been counted correctly.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
pic_count
« Reply #6 on: October 13, 2003, 10:57:38 pm »

User uploads:
(http://www.kazebeer.com/icon/uloads.jpg)
User artwork:
(http://www.kazebeer.com/icon/uart.jpg)
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

danp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
pic_count
« Reply #7 on: October 14, 2003, 12:26:21 am »

OMG, I have to approve photos!@$  I've always been in admin mode where they show up as soon as they upload them.  Well thanks for replying.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
pic_count
« Reply #8 on: October 14, 2003, 12:34:14 am »

I was thinking you might have some photos that needed to be approved.  Glad it was something simple.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.