"uploaded by me" button "uploaded by me" button
 

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]

Main Menu

"uploaded by me" button

Started by Luk, July 21, 2008, 09:40:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Luk

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

Nibbler

That already exists on the users' profile page.

Luk

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.

Αndré

Quote from: Luk on July 22, 2008, 01:15:16 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 :
'<a href="thumbnails.php?album=lastupby&amp;uid=' . USER_ID . '">'

Luk

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.

Αndré

Here a very simple solution.

Open profile.php, find:
    array('text', 'disk_usage', $lang_register_php['disk_usage']),

and replace with:
    array('text', 'disk_usage', $lang_register_php['disk_usage'].' - <a href="thumbnails.php?album=lastupby&amp;uid='.USER_ID.'">Uploaded by me</a>'),