forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: SaigonK on June 11, 2004, 09:17:59 pm

Title: [fixed] Lost thumbnails for user galleries
Post by: SaigonK on June 11, 2004, 09:17:59 pm
Since updating my version to 1.3.0 stable, my thumbnails dont seem to work on my User Galleries page


http://gallery.is12.net/index.php?cat=1



they just show up as the default "no image" thumbnail instead of a picture form the album or the last photo uploaded.
Any ideas?
Title: Lost thumbnails for user galleries
Post by: FuguTabetai on June 11, 2004, 11:09:45 pm
After the upgrade from 1.2.1 to 1.3.0, when I checked my user galleries, all of them had lost their thumbnails and defaulted to the "no picture" thumbnail.  The individual albums in the users' galleries have thumbnails, but the thumbnail for the user in the "User galleries" sections do not.  Before, I think it used the thumbnail for the last uploaded picture to each users' account for the thumbnail, but I couldn't find any options to control that anywhere...
Title: Re: Lost thumbnails for user galleries
Post by: Casper on June 11, 2004, 11:54:05 pm
Same thing for me.  Will look into it.

@FuguTabetai,  please do not just post on any board.  The istallation board is for issues relating to installation problems.
Title: Re: Lost thumbnails for user galleries
Post by: SaigonK on June 12, 2004, 01:30:53 pm
Same thing for me.  Will look into it.

@FuguTabetai,  please do not just post on any board.  The istallation board is for issues relating to installation problems.


Thanks man, using the old index.php makes it work without issue....
Title: Re: Lost thumbnails for user galleries
Post by: FuguTabetai on June 12, 2004, 03:40:11 pm
Same thing for me.  Will look into it.

@FuguTabetai,  please do not just post on any board.  The istallation board is for issues relating to installation problems.

Your board setup is confusing, I did not realize until just now (when topics were moved around) that this "CPH 1.3 support" is a board itself.  Having the child boards up at top led me to believe that this was just a container for more specific boards, and as I experienced this problem after an install...

Anyway, I've figured it out now.  Thanks for the work on coppermine - I hope someone looks into this, but it isn't urgent for me, so I'm not going to go code diving.  Cheers,

fugu
Title: Re: Lost thumbnails for user galleries
Post by: Casper on June 12, 2004, 03:44:53 pm
@Fugu,
this is a new setup for us all, so no problem, we are all having to get used to it  ;)
Title: Re: Lost thumbnails for user galleries
Post by: OBecanoby on June 13, 2004, 06:25:52 am
I have same problem in a brand new set up When I go to Album List I just get the generic thumbnail instead of one from the acutal album. But otherewise the whole set up is absolutley fantastic. I messed with 2 other galleries for hours on end to the point of absolute frusteration lol. :\'( But when i uploaded coppermine it installed and setup in what seemed like no time, I practically fell on my ass. ;D
Thanks Great Program
Title: Re: Lost thumbnails for user galleries
Post by: SaigonK on June 13, 2004, 02:39:40 pm
I verified that gong back to the latest index.php of mine shows the thumbnails.
Title: Re: Lost thumbnails for user galleries
Post by: Casper on June 13, 2004, 03:20:18 pm
Yes, we know, but that has other issues, which is why it was changed. 
Title: Re: Lost thumbnails for user galleries
Post by: SaigonK on June 13, 2004, 05:26:55 pm
I figured as much, but I thought it might help out to see what code changed that is causing the issue.

Thanks!
Title: Re: Lost thumbnails for user galleries
Post by: yonggui on June 15, 2004, 04:14:36 pm
Here a quick fix:

After line 343 of the file "index.php" (saying "$image_size = compute_img_size( ...") add the following code:


$user_thumb = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"\">";
Title: Re: Lost thumbnails for user galleries
Post by: Casper on June 15, 2004, 04:38:29 pm
Yes, that's similar to the fix being done right now, but there is more code being added. It will be in version 1.3.1, and those that cannot wait will be able to get it from the cvs soon.  ;)
Title: Re: Lost thumbnails for user galleries
Post by: Casper on June 15, 2004, 10:10:00 pm
The updated file with this fixed is now available from the cvs,  http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/index.php
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: Ithildin on June 16, 2004, 11:12:05 pm
Thank you very much! You are great!
Love your gallery, it's so beautiful and so easy to have!  ;) :D

Title: Re: [fixed] Lost thumbnails for user galleries
Post by: OBecanoby on June 17, 2004, 11:26:16 pm
I just downloaded the fix and it works Great Thank You Very Much :D
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: buffermaster on June 18, 2004, 09:29:56 pm
I tried the latest file version and it has not fixed the problem for me....still looking www.ncvc.org.uk/gallery
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: psundstrom on June 18, 2004, 11:32:20 pm
How is it that the updated CVS version of index.php is at version 1.8 whereas the version that came with CPG1.3 was version 1.40?
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: Casper on June 19, 2004, 12:00:42 am
because the devel brach and stable branch use slightly different numbering systems.  In the stable branch, the version numbers rise by .1 every change, in the dev branch, by .01 (far more changes occur during development).
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: Jules74 on June 30, 2004, 07:58:35 pm
For some reason this fix only solves half the problem.
When I'm in 'Home -> User Galleries -> Jules74' the picture I've selected as the album thumbnail is correctly displayed. But, when I'm in 'Home -> User Galleries' the thumbnail for my album always is the last picture I've uploaded instead of the picture I selected!
Could this be in the theme I'm using (mac_ox_x) or is it a bug in the latest index.php (CVS 1.8)?
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: Casper on June 30, 2004, 08:18:59 pm
That's just the way it's always been, afaik.
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: spaceman on July 04, 2004, 01:49:32 pm
That's just the way it's always been, afaik.

IMHO, the thumbnail that is chosen to represent a user and all his/her galleries should be treated like an avatar in a forum. So, for example, it would be great to have the ability to upload a thumbnail in 'my profile'. Of course, some folk might like the option keep the current system (show latest image uploaded to represent a user's gallery), and this should remain an option to.

Hope that's helpful feedback to the most excellent developers of coppermine. Keep up the great work guys (and gals?) :-)
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: Casper on July 04, 2004, 01:56:18 pm
There is a mod available to upload an avatar for each user, but this was done for version 1.2.
I don't know if it will work with 1.3.

Search the mods board for avatar.
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: spaceman on July 04, 2004, 02:00:56 pm
There is a mod available to upload an avatar for each user, but this was done for version 1.2.
I don't know if it will work with 1.3.

Search the mods board for avatar.

Thanks for the tip, but I have to confess to being a bit mod-averse these days, unless I really, really have to have the feature. I used to do it a lot with phpbb, but
a) half the time the quality was low.
b) they're too hard (or impossible) to keep when I want to upgrade.

Maybe that's just me! Thanks again all the same.  ;D
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: clairobscur on July 30, 2004, 10:37:07 am
I just downloaded the fix and it works Great Thank You Very Much :D

What is meant by downloading the file? Just copy the new index.php and replace the old one with this new?
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: Joachim Müller on July 30, 2004, 10:50:14 am
What is meant by downloading the file? Just copy the new index.php and replace the old one with this new?
Yes.

GauGau
Title: Re: [fixed] Lost thumbnails for user galleries
Post by: clairobscur on July 30, 2004, 01:00:40 pm
Thank you for your fast reply GauGau !