Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: uh oh, profile displays someone elses thumbnail?!?!?  (Read 2476 times)

0 Members and 1 Guest are viewing this topic.

treasurenet

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
    • digitalimagery
uh oh, profile displays someone elses thumbnail?!?!?
« 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
Logged

Nibbler

  • Guest
Re: uh oh, profile displays someone elses thumbnail?!?!?
« Reply #1 on: May 18, 2005, 05:35:36 pm »

Link to actual page please.
Logged

treasurenet

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
    • digitalimagery
Re: uh oh, profile displays someone elses thumbnail?!?!?
« Reply #2 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 = '';


            }
        }


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: uh oh, profile displays someone elses thumbnail?!?!?
« Reply #3 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


Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.