Results 1 to 2 of 2
  1. #1
    New Pligger HDRider's Avatar
    Joined
    Jan 2010
    Posts
    8
    Thanks
    Received:0
    Given: 0

    Tweak to user_show_center.tpl in admin templates

    I made a tweak to the subject template in the admin area. I wanted to be able to easily check the origin of a users IP address. When you click on username to view the detail, you can now click on the either IP address and a new window will open so you can get some info.

    Replace all the content in your user_show_center.tpl with the following:

    {section name=nr loop=$userdata}
    <fieldset><legend>View User: {$userdata[nr].user_login} <img src="{$userdata[nr].Avatar}" align="absmiddle"/></legend>
    <table id="zebratable">
    <tr><td><b>{#PLIGG_Visual_View_User_Login#}: </b></td><td>{$userdata[nr].user_login}</td></tr>
    <tr><td><b>{#PLIGG_Visual_View_User_Level#}: </b></td><td>{$userdata[nr].user_level}</td></tr>
    <tr><td><b>{#PLIGG_Visual_View_User_Email#}: </b></td><td>{$userdata[nr].user_email}</td></tr>
    <tr><td><b>{#PLIGG_Visual_View_User_LL_Date#}: </b></td><td>{$userdata[nr].user_lastlogin}</td></tr>
    <tr><td><b>{#PLIGG_Visual_View_User_LL_Address#} : </b></td><td><a href="http://ws.arin.net/whois/?queryinput={$userdata[nr].user_lastip}" target="_blank">{$userdata[nr].user_lastip}</a></td></tr>
    {if $userdata[nr].user_login neq "god"}<tr><td><strong>{#PLIGG_Visual_View_User_IP_ Address#}:</strong></td><td><a href="http://ws.arin.net/whois/?queryinput={$userdata[nr].user_ip}" target="_blank">{$userdata[nr].user_ip}</a></td></tr>{/if}
    {checkActionsTpl location="tpl_admin_user_show_center_fields"}
    <tr><td><img src="{$my_pligg_base}/templates/admin/images/user_links.gif" align="absmiddle"/> <a href="?mode=viewlinks&user={$userdata[nr].user_login}">{#PLIGG_Visual_View_User_Sub_Links#} </a></td><td>{$linkcount} Total</td></tr>
    <tr><td><img src="{$my_pligg_base}/templates/admin/images/user_comments.gif" align="absmiddle"/> <a href="?mode=viewcomments&user={$userdata[nr].user_login}">{#PLIGG_Visual_View_User_Sub_Comment s#}</a></td><td>{$commentcount} Total</td></tr>
    </table>
    <hr/>

    {if $amIgod}

    <table id="zebratable">
    <tr><td><img src="{$my_pligg_base}/templates/admin/images/user_edit.gif" align="absmiddle"/> <a href="?mode=edit&user={$userdata[nr].user_login}">{#PLIGG_Visual_View_User_Edit_Data#} </a></td></tr>
    {if $user_logged_in neq $userdata[nr].user_login && $userdata[nr].user_id neq '1'}
    <!--tr><td><img src="{$my_pligg_base}/templates/admin/images/user_reset.gif" align="absmiddle"/> <a href="?mode=resetpass&user={$userdata[nr].user_login}{$uri_token_admin_users_resetpass}" onclick="return confirm('{#PLIGG_Visual_View_User_Reset_Pass_Confi rm#}')">{#PLIGG_Visual_View_User_Reset_Pass#}</a></td></tr-->
    {if $userdata[nr].user_enabled}
    <tr><td><img src="{$my_pligg_base}/templates/admin/images/user_disable.gif" align="absmiddle"/> <a href="?mode=disable&user={$userdata[nr].user_login}">{#PLIGG_Visual_View_User_Disable#}</a></td></tr>
    {else}
    <tr><td><img src="{$my_pligg_base}/templates/admin/images/user_disable.gif" align="absmiddle"/> <a href="?mode=enable&user={$userdata[nr].user_login}">{#PLIGG_Visual_View_User_Enable#}</a></td></tr>
    {/if}
    <tr><td><img src="{$my_pligg_base}/templates/admin/images/user_killspam.gif" align="absmiddle"/> <a href="?mode=killspam&user={$userdata[nr].user_login}&id={$userdata[nr].user_id}">{#PLIGG_Visual_View_User_Killspam#}</a></td></tr>
    {/if}
    </table>
    </fieldset>

    {/if}

    {sectionelse}
    {include file="/templates/admin/user_doesnt_exist_center.tpl"}
    {/section}

  2. #2
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Thanks
    Received:396
    Given: 73
    Version
    SVN Build
    Site
    http://Pligg.com/chuckroast
    Quote Originally Posted by HDRider View Post
    I made a tweak to the subject template in the admin area. I wanted to be able to easily check the origin of a users IP address. When you click on username to view the detail, you can now click on the either IP address and a new window will open so you can get some info.
    Or you can just use http://www.pligg.com/pro/catalog/modules/geo-users-65.html
    Displays the country, city, and flag automatically.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


Similar Threads

  1. How to tweak my pligg site to dofollow?
    By Prabhakaran in forum Questions & Comments
    Replies: 5
    Last Post: 05-26-2012, 01:30 PM
  2. Templates not showing in Admin area, folders are 777
    By peachesboy in forum Questions & Comments
    Replies: 3
    Last Post: 12-21-2007, 02:20 PM
  3. Cannot View Templates in ADMIN
    By RichSage in forum Questions & Comments
    Replies: 0
    Last Post: 12-20-2007, 11:37 AM
  4. Small CSS tweak needed - yget
    By mickscool in forum Questions & Comments
    Replies: 3
    Last Post: 12-01-2007, 06:42 PM
  5. Error after tweak and re-install....
    By deguello in forum Questions & Comments
    Replies: 3
    Last Post: 01-11-2007, 06:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg