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: "uploaded by me" button  (Read 4284 times)

0 Members and 1 Guest are viewing this topic.

Luk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
"uploaded by me" button
« on: July 21, 2008, 09:40:06 pm »

Hi. Mayby someone have done it before or know hot to do it. I would like user to have a button "Added by me" or something like that. And this button will link to all pictures added by him to public admin categories. Thx
Logged

Nibbler

  • Guest
Re: "uploaded by me" button
« Reply #1 on: July 22, 2008, 10:38:25 am »

That already exists on the users' profile page.
Logged

Luk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: "uploaded by me" button
« Reply #2 on: July 22, 2008, 01:15:16 pm »

You are of course right,  this button is in user profile but you see it only when you are looking at someones other profile. And i would like it to be shown when someone is editing his/her own profile. I found something like this in profile.php :

 $user_thumb = '<td width="50%" valign="top" align="center">'
                            . '<a href="thumbnails.php?album=lastupby&amp;uid=' . $uid . '">'
                            . '<span class="thumb_title">' . $lang_register_php['last_uploads'] . ' ' . $user_data['user_name'] . '<br /></span>'
                            . $user_thumb
                            . '</a></td>';

And i believie this is the function but, hmmm im not too good in php and just cant figure whow to add it to user editing its own profile i added the line:

'user_thumb' => $quick_jump,

Which is responsible for lastuploaded and last commented link but it just wont show up. Thx for any help :-) and sry for stupidity.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: "uploaded by me" button
« Reply #3 on: July 22, 2008, 04:03:47 pm »

this button is in user profile but you see it only when you are looking at someones other profile. And i would like it to be shown when someone is editing his/her own profile.

You can watch your own profile in the same way as watching others' profile.


Otherwise try :
Code: [Select]
'<a href="thumbnails.php?album=lastupby&amp;uid=' . USER_ID . '">'
Logged

Luk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: "uploaded by me" button
« Reply #4 on: July 22, 2008, 08:01:53 pm »

Ok i just wasn't clear enough. :-). So the question is how to move this link, so it will be displayed in EDIT_PROFILE. Sorry and thx.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: "uploaded by me" button
« Reply #5 on: July 23, 2008, 07:53:45 am »

Here a very simple solution.

Open profile.php, find:
Code: [Select]
    array('text', 'disk_usage', $lang_register_php['disk_usage']),
and replace with:
Code: [Select]
    array('text', 'disk_usage', $lang_register_php['disk_usage'].' - <a href="thumbnails.php?album=lastupby&amp;uid='.USER_ID.'">Uploaded by me</a>'),
Logged
Pages: [1]   Go Up
 

Page created in 0.044 seconds with 19 queries.