vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   ipInfo -- Extra user IP information (https://vborg.vbsupport.ru/showthread.php?t=96834)

Zachariah 09-29-2005 12:21 PM

Quote:

Originally Posted by Yorixz
Thanks a lot, very usefull to have some more info than the basic things vB gives. (Confirmed to work 100% with vB3.5 Gold - hardly different from vB 3.5 RC3 anyway ;))

Thanks for the test I was installing Gold as I type :D


[high]* Zachariah heart is raceing[/high]

WNxWakko 09-29-2005 11:37 PM

I found a major problem on this mod. When you click the IP on an unregistered user who posted in a forum it takes minutes to load and the reason is, after its done loading it generates what seems to be hundreds of IP's under the All IP's for this user. Im assuming it pulls all ips for the name unregistered user.

Can you modify this so it wont pull any additional IP's for unregistered posts?

havefun 09-29-2005 11:47 PM

nice job. works fine under gold :) THX!

Zachariah 09-30-2005 12:00 AM

Quote:

Originally Posted by WNxWakko
I found a major problem on this mod. When you click the IP on an unregistered user who posted in a forum it takes minutes to load and the reason is, after its done loading it generates what seems to be hundreds of IP's under the All IP's for this user. Im assuming it pulls all ips for the name unregistered user.

Can you modify this so it wont pull any additional IP's for unregistered posts?

OK ill add an <if> statment - if guest no link just show IP that should work.

WNxWakko 09-30-2005 12:03 AM

Thanks, just let me know when you have it updated. I think it pulled over 1000-2000 IP's on it. I have a big board, so it probably went back like 2 years worth of IP lol

Avalon111 09-30-2005 02:31 PM

great hack!!!

i had to change _SERVER['REMOTE_ADDR'] to $_SERVER['HTTP_X_REMOTECLIENT_IP']. because my host uses a loadbalancer.

before i changed that all users had the same ip (from the host). now all users appear in the Users sharing the same IP Address. because the old wrong ip is still in the database.

is it possible to clear all stored ip adresses?

Kihon Kata 09-30-2005 02:33 PM

Quote:

Originally Posted by Avalon111
is it possible to clear all stored ip adresses?

Yes I would need this also

Zachariah 09-30-2005 02:46 PM

Quote:

Originally Posted by WNxWakko
Thanks, just let me know when you have it updated. I think it pulled over 1000-2000 IP's on it. I have a big board, so it probably went back like 2 years worth of IP lol


Template: postbit_ip:

== REPLACE WITH: ================================================== =======
Code:

<if condition="$show['ip']">
        $vbphrase[ip]: $post[ip]
<else />
<if condition="$post['userid'] > 0">
<a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<else />
<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
</if>
</if>

I updated the 1st post

Avalon111, TonysDesigns - I'll look @ it.

Kihon Kata 09-30-2005 02:52 PM

Quote:

Originally Posted by Zachariah
Template: postbit_ip:

== REPLACE WITH: ================================================== =======
Code:

<if condition="$show['ip']">
        $vbphrase[ip]: $post[ip]
<else />
<if condition="$post['userid'] > 0">
<a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<else />
<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
</if>
</if>

I updated the 1st post

Avalon111, TonysDesigns - I'll look @ it.

Thanks

Zachariah 09-30-2005 03:00 PM

Quote:

Originally Posted by Avalon111
great hack!!!

i had to change _SERVER['REMOTE_ADDR'] to $_SERVER['HTTP_X_REMOTECLIENT_IP']. because my host uses a loadbalancer.

before i changed that all users had the same ip (from the host). now all users appear in the Users sharing the same IP Address. because the old wrong ip is still in the database.

is it possible to clear all stored ip adresses?

So basicly every user's post ip must be reset. This hack looks @ the IP recorded on each post. If all your posts have the same IP then we could Null the posts that are currently on you forum to "enpty or blank" value and all the new posts will be ok.

Code:

UPDATE `post` SET `ipaddress` = '' WHERE `ipaddress` ='xxx.xxx.xxx.xxx';
xxx.xxx.xxx.xxx fill in the IP you want to remove.


All times are GMT. The time now is 12:18 PM.

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.02727 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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