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
That already exists on the users' profile page.
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&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.
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&uid=' . USER_ID . '">'
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.
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&uid='.USER_ID.'">Uploaded by me</a>'),