forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: treasurenet on May 18, 2005, 05:22:25 pm

Title: uh oh, profile displays someone elses thumbnail?!?!?
Post by: treasurenet on May 18, 2005, 05:22:25 pm
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
Title: Re: uh oh, profile displays someone elses thumbnail?!?!?
Post by: Nibbler on May 18, 2005, 05:35:36 pm
Link to actual page please.
Title: Re: uh oh, profile displays someone elses thumbnail?!?!?
Post by: treasurenet on May 18, 2005, 08:39:09 pm
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...

Code: [Select]



                $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 = '';


            }
        }


Title: Re: uh oh, profile displays someone elses thumbnail?!?!?
Post by: Joachim Müller on May 19, 2005, 09:31:30 am
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