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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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>'),