PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 24th, 2008, 05:04 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
Category thumbnail not refresh

When a member upload a photo, the thumbnail of the category don't show it, shows always the same photo.

When I use 5.62 the category thumb shows the last upload photo, now shows always the same.

What happens?
What can I do to show the last upload?
vigape is offline   Reply With Quote
Old July 24th, 2008, 08:06 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
The default working of the code is this

If you specify a category thumbnail it will be static meaning you have tagged a photo. If you do not tag a photo then it will show the lastphoto upload.

So it would appear to me you have a photo tagged as the category thumbnail.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 24th, 2008, 08:41 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
I delete all tagged photo with
UPDATE `pp_categories` SET `thumbnail` = '' WHERE 1;
Now show the last photo, but
when a user upload a new photo automaticaly that photo was the thumbnail cell in pp_category table

and not change if another is uploaded. The lastphoto field change but not the thumbnail field.
vigape is offline   Reply With Quote
Old July 24th, 2008, 08:48 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
Ummm, I try to un-tagged the photo, but when another is uploaded the last photo was automatically tagged.
vigape is offline   Reply With Quote
Old July 24th, 2008, 09:36 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
Make sure to untag the photos and your using the latest 6.11 code.

5.62 I think the only way we showed an avatar is when you tag one for a category so I am unsure what functionality your really looking for there or expecting to happen.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 25th, 2008, 03:37 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
Let's see if I will explain.

We have several galleries.
The index shows the galleries with a thumbnail. To upgrade the 5.62 to 6.1 thumbnail photo showed the last ascent by a user. By contrast now, shows a photo sets and although users upload new photos, is still showing it.

You can see the index at Indice Principal - Galerķas Canonistas.com
And if you enter one, for example Galerias de Usuarios - Galerķas Canonistas.com see that the latest photo is not the picture that appears in the index.php

I found that although I remove the image with editphoto.php?uncat=...
The following photo upload by a user is attached as a thumbnail of the gallery.

What can I do?
vigape is offline   Reply With Quote
Old July 25th, 2008, 11:35 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
If a category has a static avatar set in the categories table meaning a photo has been tagged then it is not going to show the last photo uploaded to that cat. If you remove the tagged photo and then upload another photo it will set the avatar to the last photo.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 25th, 2008, 11:46 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
Yes, but the new photo automatically are a static avatar and if we upload more photos the avatar is the same, the avatar is the first upload after I remove the tagged photo.
vigape is offline   Reply With Quote
Old July 25th, 2008, 12:21 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
Yes you would need to modify code if you expect it to work some other way. Updating it to the last photo always would be a bug because no one would be able to set a category avatar
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 27th, 2008, 05:46 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
I resolve the problem:

In image-inc.php
..
function process_image( $realname, $filepath, $thecat, $thevideo=0, $replace=0 )
{
....

In the code:
Code:
Content visible to verified customers only.
Sames that in the upgrade from 5.62 to 6.11 the thumbnail field in pp_categories is loaded to 0 for all categories.
When the first photo is uploaded $row['thumbnail'] == 0 is true and make that photo the category avatar with $morestuff
The second and more photos not true the condition and not refresh the avatar.

The solution for me is comment it
Code:
Content visible to verified customers only.
Now never $morestuff is added and the avatar at index page shows the last photo uploaded.

Is a bug?
A best solution?
vigape is offline   Reply With Quote
Old July 27th, 2008, 08:57 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
I have explained this to you several times how it works its not a bug. The category avatar is set when an admin tags a photo they want to use as the category avatar when viewing a photo. It has always been this way. Now Michael added some code to populate categories if the admin does not do it but making it always the last photo would be moreso a bug because the admin can not set a static avatar which has always been the feature.

I dont know what your doing with your code change above since that effectively will do nothing but make sure an avatar is never set. If your trying to set the category avatar to change everytime someone uploads a photo to it your going to have to change code different from what you have.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Next image? No refresh? spiceman Photopost Pro How Do I...? 1 May 8th, 2008 06:48 AM
No Thumbnail After Category Move StuartDH Photopost Pro Bug Reports 7 January 29th, 2008 05:52 PM
Thumbnail in category Ricsca Photopost Pro How Do I...? 1 August 6th, 2007 04:08 PM
Thumbnail for Category longislandjam Photopost Pro How Do I...? 1 May 2nd, 2007 03:19 PM


All times are GMT -5. The time now is 12:54 PM.

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