vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   IP address from user profile (https://vborg.vbsupport.ru/showthread.php?t=115171)

bashy 05-08-2006 09:00 PM

IP address from user profile
 
Hi peeps

This is my 1st attempt, well actually i was helped by peterska2 of which i am
eternally gratefull :)

I have been wanting a hack like this for a while now, due to users registering
and not posting, because they have not posted, there is no easy way to find
thier IP address other than searching for it in the admincp.

With this hack all you have to do is go into the users profile and the IP image is
there next to the User Options link (see screenshot) click this and you have the
users IP address :)

Hope you find this as usefull as i do!!

Instructions

In the memberinfo template

FIND

Code:

    <if condition="can_moderate()">
        <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
    </if>

REPLACE WITH

Code:

  <if condition="can_moderate()">
        <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[user_options]</a>
<!-- Bashy's IP Hack Start -->
&nbsp;<a href="admincp/usertools.php?$session[sessionurl]do=doips&username=$userinfo[username]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<!-- Bashy's IP Hack end -->
</td>
    </if>

If you want this for your Moderators as well then please replace the above with this code, With thanks to thalamus for this addition :)

Code:

  <if condition="can_moderate()">
        <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[user_options]</a>
<!-- Bashy's IP Hack Start -->
&nbsp<a href="modcp/user.php?$session[sessionurl]do=doips&username=$userinfo[username]"> <img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<!-- Bashy's IP Hack end -->
</td>
    </if>

Please click install if you use this

EDIT: Now optimised for IE

rmxs 05-09-2006 06:40 PM

First Post Reserved :p


Let me try

Thanks for Share

Ziki 05-09-2006 06:40 PM

INstalled.Good one bashy,Simple and handy :)

bashy 05-09-2006 06:49 PM

Ya welcome peeps, tis handy if the member aint posted or ya cant be asked
checking the post to get the IP addy, spose ya can call it a lazy persons hack :)

Boofo 05-09-2006 08:47 PM

You might want to use:

HTML Code:

$admincpdir
instead of

HTML Code:

admincp
for those that have renamed their Admin CP directory in the config.php. ;)

akanevsky 05-09-2006 09:30 PM

Although this MIGHT be handy, it would not be practically useful as many people's IPs change constantly. Therefore, to make this work properly, have it extract either the latest ip used from a post, or generate a list of ips.

wizardan 05-09-2006 10:57 PM

Very useful.

Bandit8007 05-10-2006 12:33 AM

nice one. thank you

bashy 05-10-2006 04:14 AM

Hi Psionic

it does generate a list of IPs used for said member ;)

Quote:

Originally Posted by Psionic Vision
Although this MIGHT be handy, it would not be practically useful as many people's IPs change constantly. Therefore, to make this work properly, have it extract either the latest ip used from a post, or generate a list of ips.


akanevsky 05-10-2006 05:07 PM

Oh.. My bad. Heh.


All times are GMT. The time now is 11:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01814 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete