uh oh, profile displays someone elses thumbnail?!?!? uh oh, profile displays someone elses thumbnail?!?!?
 

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

uh oh, profile displays someone elses thumbnail?!?!?

Started by treasurenet, May 18, 2005, 05:22:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

treasurenet

In the users profiles, there is more than one thumbnail being displayed...

As you can see, not only does it display this user's image (on the right) it's also displaying another user's thumbnail on the left!

Any idea why?

Thx

Nibbler


treasurenet

here it is...

http://www.treasurenet.com/gallery/

I hacked it in order to fix the problem - but I doubt it was the desired solution...

here's what I did...

line 347 of profile.php...





                $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['thumb_width']);
                $mime_content = get_type($picture['filename']);
                $user_thumb = '<img src="' . $pic_url . '" class="image"'
                                . $image_size['geom'] . ' border="0" alt="">';
    Here  --->          $user_thumb = '';
                           
                                       
//    I  changed this...       $user_thumb = '<td width="50%" valign="top" align="center">'
//                            . '<a href="thumbnails.php?album=lastupby&uid=' . $uid . '">'
//                            . $user_thumb
//                            . '</a></td>';
//     to this...    $user_thumb = '';


            }
        }



Joachim Müller

clicking on those two thumbnails will show you what they're being used for: one is for the last uploads made by that user, the other one is for the last comments made by the user. In cpg1.4.x, we have added some text to make this more obvious: above the left thumbnail, there is the caption "Last uploaded file. Click to see all uploads by [username]". Above the right one: "Last comment. Click to see all comments made by [username]". For details: see http://forum.coppermine-gallery.net/index.php?topic=17264.msg80322#msg80322