coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Luk on July 21, 2008, 09:40:06 PM

Title: "uploaded by me" button
Post by: Luk 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
Title: Re: "uploaded by me" button
Post by: Nibbler on July 22, 2008, 10:38:25 AM
That already exists on the users' profile page.
Title: Re: "uploaded by me" button
Post by: Luk 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.
Title: Re: "uploaded by me" button
Post by: ΑndrĂ© on July 22, 2008, 04:03:47 PM
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 . '">'
Title: Re: "uploaded by me" button
Post by: Luk 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.
Title: Re: "uploaded by me" button
Post by: ΑndrĂ© on July 23, 2008, 07:53:45 AM
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>'),