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-10-2006 05:17 PM

No worries m8...perhaps i should have stated this :o

Snake 05-10-2006 05:23 PM

Nice little feature! ;)

bashy 05-10-2006 05:28 PM

Thank you,
It took a little while to figure out what it was i was after and now its finally
done its been a great help, more so when your trying to keep an eye out for undesireables ;)

Quote:

Originally Posted by Lil Ripsta
Nice little feature! ;)


bashy 05-11-2006 04:48 PM

Is anyone using this in any IE browsers other than IE 7?
If so and its working can you let me know please?

I am aware of an issue in IE7 and will hopefully be fixed, Unless its a major
glitch with IE7, but i wouldnt have thought so!!

SCORPION1 05-12-2006 11:18 PM

yes quick install good handy little hack nice one bashy saves a lot of time surfing threw admin stuff by the way no probs running on ff or ie

Ziki 05-13-2006 12:53 PM

Hmmm....it crashes and displays wrong if you have the template modified a bit.To avoid this find:

PHP Code:

   <div class="smallfont">
   <
b>User ID :</b$userinfo[userid]<br /> 

and add underneath:

PHP Code:

<!-- Bashy's IP Hack Start --!>
&nbsp;<a href="admincp/usertools.php?$session[sessionurl]do=doips&amp;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 --!> 

Done.Also it looks much better :D

bashy 05-13-2006 01:03 PM

Must admit, i didnt have a prob with my memberinfo although i do know someone who did.... I also cannot find
Code:

<div class="smallfont">
  <b>User ID :</b> $userinfo[userid]<br />

in mine, i have tried a few variants of your code and still nothing :(

Do you have a screener to show how the finished looks please :)

peterska2 05-13-2006 03:00 PM

Actually, the only thing you need to do if you use a modified memberinfo is to drop a couple of characters from the replace code.

so instead of using

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>
<!-- Bashy's IP Hack Start --!>
&nbsp;<a href="admincp/usertools.php?$session[sessionurl]do=doips&amp;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>

use

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>
<!-- Bashy's IP Hack Start -->
&nbsp;<a href="admincp/usertools.php?$session[sessionurl]do=doips&amp;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>

I confirm this works correctly in IE and FF.

Bashy, can you update the zip and first post with this snippet instead? Cheers, mate

bashy 05-13-2006 03:07 PM

Done, i didnt replace the code in the zip and 1st post, i added to the original, this ok or did you want the replacement code replacing?

Quote:

Originally Posted by peterska2
Actually, the only thing you need to do if you use a modified memberinfo is to drop a couple of characters from the replace code.

so instead of using

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>
<!-- Bashy's IP Hack Start --!>
&nbsp;<a href="admincp/usertools.php?$session[sessionurl]do=doips&amp;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>

use

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>
<!-- Bashy's IP Hack Start -->
&nbsp;<a href="admincp/usertools.php?$session[sessionurl]do=doips&amp;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>

I confirm this works correctly in IE and FF.

Bashy, can you update the zip and first post with this snippet instead? Cheers, mate


Boofo 05-13-2006 03:48 PM

Quote:

Originally Posted by peterska2
Actually, the only thing you need to do if you use a modified memberinfo is to drop a couple of characters from the replace code.

so instead of using

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>
<!-- Bashy's IP Hack Start --!>
&nbsp;<a href="admincp/usertools.php?$session[sessionurl]do=doips&amp;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>

use

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>
<!-- Bashy's IP Hack Start -->
&nbsp;<a href="admincp/usertools.php?$session[sessionurl]do=doips&amp;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>

I confirm this works correctly in IE and FF.

Bashy, can you update the zip and first post with this snippet instead? Cheers, mate

What's different in those 2 pieces of code, Kerry-Anne? They look identical to me, or am I missing something obvious again? ;)


All times are GMT. The time now is 02:49 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.01645 seconds
  • Memory Usage 1,756KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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