PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   Albums in assigned cat don't add to cat index count(FIXED) (http://www.photopost.com/forum/photopost-pro-bug-reports/115232-albums-assigned-cat-dont-add-cat-index-count-fixed.html)

mjm August 10th, 2005 06:07 PM

Albums in assigned cat don't add to cat index count(FIXED)
 
If pics are uploaded to an album in an assigned cat, the pic count isn't added to the cat

So Categoriess that only have albums shows - 0 photos- in cat at index page. :(

I believe this was addressed back in early 5.0.

I will need to do a search to see if a solution was found.

Mark

Edit: http://www.photopost.com/members/for...d.php?t=113132

Chuck S August 11th, 2005 09:58 AM

Have you ran a scan database? You sure you did not upload an old file or break it with a hack?

I have tested pretty darn good and it works fine. If I assign an album to a category the count on index shows correct.

example

Here is my index look at member pics see the photo count 20

http://www.reeftalk.com/gallery/index.php

Now view the cat and you see 4 pics but on index it had count of 20

http://www.reeftalk.com/gallery/showgallery.php/cat/508

Thats because I have a personal family pics of 16 in a private album ;)

mjm August 11th, 2005 05:12 PM

hmmm, we don't have any outside hacks, but maybe a template tweak is causing the problem.
I don't know if this makes any difference, View Members Gallery is set as List + Show all photos.

I haven't run scan database since 5.13, should I?

The count doesn't increment for me when uploading into album at a new cat containing no other pics, - 0 photos - (this is how I noticed it), or into an existing cat containing photos in cats.

Can you reccommend any files that we could re-upload to see if it straightens this out?

Thanks,
Mark

Chuck S August 11th, 2005 05:49 PM

Well remember yes you can always do a scan database but let me add this so there is no confusion

Album counts are only added to categories when they are assigned to that album. Just so we are clear. Possible files to consider would be pp-inc.php if I had to name a file as thats where the counts come from

mjm August 11th, 2005 10:32 PM

[quote=omegatron]

> Album counts are only added to categories when they are assigned to that album.

Yep, albums are assigned to categories.

> Possible files to consider would be pp-inc.php

Carole reinstalled this file.
This was a file she downloaded July 12 when she did the upgrade

However there was no change - did not increment album pic count to cat.

I did a - Scan Database > Check here to recalculate photos/posts numbers and check children. - and the count was corrected.

Tried uploading additional pics - no count change - rescaned > corrected.

Mark

Chuck S August 12th, 2005 09:18 AM

Try uploading useralbums.php or if you still have a problem all the stock 5.13 files. There is no issue that I can find with the 5.13 files

mjm August 13th, 2005 10:07 PM

Hi Chuck, an update ...
We reverted all .php and template files, still no go.
So then we installed a fresh test (v5.13 7/11/05 8:07 PM Build), and album pic count is still not incremented to pic count of assigned cat on index page.

Mark

mjm August 22nd, 2005 10:37 PM

I should add that photo count for Members Gallery (index page) also does not change unless scan database > recalculate photo count.

I had not been looking Members Gallery count until I noticed the prob with Assigned album pic count.

Background ... v5.13 7/11/05 8:07 PM Build

Basic vB user integration (not enhanced)

Members Gallery - View as list - Show all users pics? Yes

Chuck S August 23rd, 2005 09:03 AM

Interesting I can not replicate this as if I assign an album to a category the counts are indeed updated.

mjm August 23rd, 2005 09:47 AM

Also the Members Gallery count, as it's set to show all pics, does not update total photo count, so my problem extends past assigned album count in categories.

Fortunatetly the scan database recalculate photo counts does work :)

Mark

Chuck S August 23rd, 2005 10:56 AM

Lets try an experiment on your install

in useralbums.php find this

Code:

Content visible to verified customers only.
change to this and reassign an album and let me know if it works

Code:

Content visible to verified customers only.

mjm August 23rd, 2005 01:22 PM

Okay, we did that, created a new Album assigned to a cat, added 4 pics, and it didn't add to the cat total photo count.

Also it didn't add to the total Members Gallery pic count, (which when > scan database - correctly equals the total pic count, as in stats at the bottom, which always do update correctly.

Mark

Chuck S August 23rd, 2005 07:28 PM

Interesting I will look and try something else. I do not know why yours does not update like mine

Chuck S August 23rd, 2005 07:29 PM

how about this

// They reassigned, so recalc old assignment and new
upgradecategories( $oldchild );
upgradecategories( $child );

mjm August 24th, 2005 08:17 AM

Nope, doesn't work.
If it would be of any help I can email you access to the account.

Mark

Chuck S August 24th, 2005 08:43 AM

Sure go ahead and email me and I will try a few things out

mjm August 24th, 2005 10:13 AM

I sent you info but forgot to include a subject Title.
Let me know if I need to resend it.

Mark

mjm August 24th, 2005 10:45 AM

Just to let you know, it was returned, (no subject heading), so I resent it.

Mark

Chuck S August 24th, 2005 08:22 PM

In useralbums.php

Code:

Content visible to verified customers only.
should be this

Code:

Content visible to verified customers only.

mjm August 24th, 2005 09:50 PM

hmm, sorry to say, we did this and still no go ...

Much appreciate if you could give it another try at ...


All times are GMT -5. The time now is 06:34 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97