vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbulletin-ip Plotter (https://vborg.vbsupport.ru/showthread.php?t=42340)

NTLDR 08-16-2002 12:37 PM

w00t!! Another Mod :D

This will resolve the IP and display it after the text with the location.

In vbipplot.php find:

PHP Code:

# START HTML 

And add directly before;

PHP Code:

unset($resolved);
unset(
$ipres);
$resolved gethostbyaddr($values["address"]);
if (
$values["address"] == $resolved) {
$ipres="The IP address <b>$values[address]</b> could not be resolved to a hostname.";
} else {
$ipres="The IP address <b>$values[address]</b> resolved to <b>$resolved</b>.";


Next find:
PHP Code:

if(isset($address)) {
print 
"$values[desc]"

And add directly after (and before the } which directly follows):
PHP Code:

print "<br>";
print 
"$ipres"

This will now display the resolved IP address (where it can be resolved of course ;))

DrkFusion 08-16-2002 01:30 PM

Hey, I forgot to mention the firewall part :-/ Sorry guys, It can open in a page within a forum, I really intended to get the mods to use the mod-cp...the mods at my forum are quite...uhh loose, as in they don't know crap bout vbulletin. I was also aiming to make this work, with the fewest modifications.
Quote:

Originally posted by v-net
Updated Info :

In ipconf.inc I had to change
# set $use_firewall to "1" if behind a proxy
$use_firewall="1";
to the correct details

But I am still getting the above error
(minus Could not open socket to caida.org)

Also when you view an IP from within a post, and then select
'Click Here to find the location of this member'
Wouldnt that look better if it opened within a page of forum rather than how it crrently does ?


Umm, that was taken from the original file by Ivan, I renamed many files, and modified little bits of the code, replace that bit with
Code:

include("ipconf.inc");
include("ipplot.inc");

It is located in the locationip directory. I will update the zip.
Quote:

Originally posted by Znaper
In the plotimage.php are the files

Code:

include("plotconf.inc");
include("plot.inc");

included, where are the files.
In the ZIP-Package is none.


bye Znaper


DrkFusion 08-16-2002 01:32 PM

Quote:

Originally posted by NTLDR
w00t!! Another Mod :D

This will resolve the IP and display it after the text with the location.

In vbipplot.php find:

PHP Code:

# START HTML 

And add directly before;

PHP Code:

unset($resolved);
unset(
$ipres);
$resolved gethostbyaddr($values["address"]);
if (
$values["address"] == $resolved) {
$ipres="The IP address <b>$values[address]</b> could not be resolved to a hostname.";
} else {
$ipres="The IP address <b>$values[address]</b> resolved to <b>$resolved</b>.";


Next find:
PHP Code:

if(isset($address)) {
print 
"$values[desc]"

And add directly after (and before the } which directly follows):
PHP Code:

print "<br>";
print 
"$ipres"

This will now display the resolved IP address (where it can be resolved of course ;))

So Ntldr... :tired:<--Tired
hehe j/k
Drk

NTLDR 08-16-2002 02:40 PM

Quote:

Originally posted by DrkFusion

So Ntldr... :tired:<--Tired
hehe j/k
Drk

hehe, I've been totally integrating this into my forums 100%, it looks like a built in vB feature ;)

Dean C 08-16-2002 05:58 PM

Quote:

To Mist:
No, You cannot get full addresses, and credit card numbers with this.
++++ off - i already knew that fool lol ;)

___________

great hack mate... :D

beemer 08-16-2002 06:12 PM

Anyone know the link to the GD app that DRKFusion is referring to in the readme.txt file? I guess Win2K doesn't support this by default.

DrkFusion 08-16-2002 07:11 PM

I emailed you the link ;) Look for a binary version.

Good Luck
Drk

DrkFusion 08-16-2002 07:12 PM

Quote:

Originally posted by Mist


++++ off - i already knew that fool lol ;)

___________

great hack mate... :D

;)
hehe
Thanks

Drk

DrkFusion 08-16-2002 07:13 PM

Quote:

Originally posted by NTLDR


hehe, I've been totally integrating this into my forums 100%, it looks like a built in vB feature ;)

Mind making me a mod, so I may test it at your forums :smoke: :cool:

Boofo 08-16-2002 07:19 PM

Drk, you're more than welcome to install this at my forums. ;)

Quote:

Originally posted by DrkFusion

Mind making me a mod, so I may test it at your forums :smoke: :cool:



All times are GMT. The time now is 11:59 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.01235 seconds
  • Memory Usage 1,761KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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