View Single Post
  #18 (permalink)  
Old 12-03-2007, 12:07 PM
beatniak's Avatar
beatniak beatniak is offline
Pligg Donor
 
Join Date: Apr 2006
Location: NL - 52.100863;5.108356
Posts: 310
Thanks: 14
Thanked 77 Times in 48 Posts
OMG, never even noticed it was already there in user management :)

Weird though that those links aren't present when you read a story and click on the user. Would be much more user/admin friendly.

Easy to put it in though. Just paste the code from /template/admin_templates/user_show_center.tpl into /template/user_center.tpl near {if $user_view eq 'profile'}:
Quote:
{if $amIgod || $user_logged_in eq $userdata[nr].user_login || ($userdata[nr].user_level neq 'admin' && $userdata[nr].user_level neq 'god')}

<table style="border:none">
<tr><td><img src="{$my_pligg_base}/templates/{$the_template}/images/user_reset.png" align="absmiddle"/> <a href="?mode=resetpass&user={$userdata[nr].user_login}" onclick="return confirm('{#PLIGG_Visual_View_User_Reset_Pass_Confi rm#}')">{#PLIGG_Visual_View_User_Reset_Pass#}</a></td></tr>
<tr><td><img src="{$my_pligg_base}/templates/{$the_template}/images/user_edit.png" align="absmiddle"/> <a href="?mode=edit&user={$userdata[nr].user_login}">{#PLIGG_Visual_View_User_Edit_Data#} </a></td></tr>
<tr><td><img src="{$my_pligg_base}/templates/{$the_template}/images/user_disable.png" align="absmiddle"/> <a href="?mode=disable&user={$userdata[nr].user_login}">{#PLIGG_Visual_View_User_Disable#}</a></td></tr>
<tr><td><img src="{$my_pligg_base}/templates/{$the_template}/images/user_killspam.png" align="absmiddle"/> <a href="?mode=killspam&user={$userdata[nr].user_login}&id={$userdata[nr].user_id}">{#PLIGG_Visual_View_User_Killspam#}</a></td></tr>
</table>
</fieldset>

{/if}
__________________
Like my work? Donations are welcome if you would like to support my work!
Finger pliggin' good sites of mine: receptencocktail.nl / numarketing.nl / goboz.com
Reply With Quote