[fixed] Lost thumbnails for user galleries [fixed] Lost thumbnails for user galleries
 

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

[fixed] Lost thumbnails for user galleries

Started by SaigonK, June 11, 2004, 09:17:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SaigonK

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?

FuguTabetai

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...

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

SaigonK

Quote from: 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.


Thanks man, using the old index.php makes it work without issue....

FuguTabetai

Quote from: 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.

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

Casper

@Fugu,
this is a new setup for us all, so no problem, we are all having to get used to it  ;)
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

OBecanoby

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

SaigonK

I verified that gong back to the latest index.php of mine shows the thumbnails.

Casper

Yes, we know, but that has other issues, which is why it was changed. 
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

SaigonK

I figured as much, but I thought it might help out to see what code changed that is causing the issue.

Thanks!

yonggui

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=\"\">";

Casper

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.  ;)
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Ithildin

Thank you very much! You are great!
Love your gallery, it's so beautiful and so easy to have!  ;) :D


OBecanoby

I just downloaded the fix and it works Great Thank You Very Much :D

buffermaster

I tried the latest file version and it has not fixed the problem for me....still looking www.ncvc.org.uk/gallery

psundstrom

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?

Casper

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).
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Jules74

#18
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)?

Casper

That's just the way it's always been, afaik.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here