vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - IpInfo -- Extra user IP information (https://vborg.vbsupport.ru/showthread.php?t=117966)

Stifmeister2 10-11-2007 06:53 PM

Great! :)

johnrizz 10-13-2007 01:08 AM

Great work,, I like this... Installed

Gigavol 10-13-2007 01:10 AM

I don't see anything. No Control panel options, no extra IP info.

Fresh vB 3.6.8 install
- copied .php file
- uploaded xml via Control Panel as instructed
nada

Do we need to change the username in the xml? What am I missing?

Thanks in advance for advice!!

Scamorz 10-13-2007 09:59 AM

Quote:

Originally Posted by Gigavol (Post 1358644)
I don't see anything. No Control panel options, no extra IP info.

Fresh vB 3.6.8 install
- copied .php file
- uploaded xml via Control Panel as instructed
nada

Do we need to change the username in the xml? What am I missing?

Thanks in advance for advice!!

I quote...i don't see anything and i have 3.6.8 version.

yoyoyoyo 10-13-2007 10:59 AM

works perfectly - thanks!

to those of you who don't know where to look for the info provided by this hack - just click on the IP icon in the postbit and you will be taken to a page that displays the IP info

Makc666 10-15-2007 03:14 PM

Quote:

Changelog:
==========
1.4
- Works if "Log IP Addresses" set to "Display publicly"
The correct phrase must be:
- Works if "Log IP Addresses" set to "Display publicly" or "Display, but require administrator or moderator"

Quote:

Changelog:
==========
1.4
- Added options to limit useage by usergroups.
This one doesn't work with Custom Usergroups.

To fix this one.

Change code:
Code:

// Is user allowed to view ips?
if (!can_moderate($threadinfo['forumid'], 'canviewips') OR !is_member_of($vbulletin->userinfo, explode(',',$vbulletin->options['ipinfo_groups'])))
{
        print_no_permission();
}

To this one:
Code:

// Is user allowed to view ips?
if ( is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options[ipinfo_groups])) )
{
        // do nothing
}
else if ( !can_moderate($threadinfo['forumid'], 'canviewips') )
{
        print_no_permission();
}
else
{
        // do nothing
}

Why? Because this one is a right construction. The original one from 1.4 doesn't work with "IP Info Access".

=========================================

And in product-ipinfo.xml I advice to change.

This one (1):
Code:

<td class="tcat" width="100%"><phrase 1="$postinfo[username]">$vbphrase[xs_ip_address_for_this_post]</phrase></td>
Must be changed to this one (1):
Code:

<td class="tcat" width="100%"><phrase 1="$postinfo[username]" 2="$postinfo[userid]" 3="$postinfo[postid]">$vbphrase[xs_ip_address_for_this_post]</phrase></td>
This one (2):
Code:

<phrase name="xs_ip_address_for_this_post" date="1191513680" username="Zachariah" version="1.2"><![CDATA[{1}'s IP Address for this post]]></phrase>
Must be changed to this one (2):
Code:

<phrase name="xs_ip_address_for_this_post" date="1191513680" username="Zachariah" version="1.2"><![CDATA[<a href="member.php?u={2}">{1}</a>'s IP Address for post <a href="showthread.php?p={3}#post{3}">#{3}</a>]]></phrase>
This will make post's user name clickable and add clicable post's number on "User IP Information" page.

=========================================

This one (3):
Code:

<setting varname="ipinfo_groups" displayorder="260">
                <datatype>free</datatype>
                <defaultvalue>5,6,7</defaultvalue>
        </setting>

Must be changed to this one (3):
Code:

<setting varname="ipinfo_groups" displayorder="260">
                <datatype>free</datatype>
                <defaultvalue><![CDATA[5,6,7]]></defaultvalue>
        </setting>

=========================================

This one (4):
Code:

        <url>https://vborg.vbsupport.ru/showthread.php?t=117966</url>
Must be changed to this one (4):
Code:

        <url><![CDATA[https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=ipinfo]]></url>
=========================================

And if Zachariah will add pid for this mod then:

This one (5):
Code:

        <versioncheckurl />
Must be changed to this one (5):
Code:

        <versioncheckurl><![CDATA[https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=ipinfo]]></versioncheckurl>
=========================================

I will contact Zachariah for all this one to be in official release.

Code:

1.5
- Fixed limit by usergroups
- Changed the template so on "User IP Information" page you see clickable post's number (url to post)
- Changed the template so on "User IP Information" post's username is clickable now (url to user's profile)
- Some other minor changes


Stifmeister2 10-15-2007 06:42 PM

Quote:

Originally Posted by Makc666 (Post 1360806)
The correct phrase must be:
- Works if "Log IP Addresses" set to "Display publicly" or "Display, but require administrator or moderator"


This one doesn't work with Custom Usergroups.

To fix this one.

Change code:
Code:

// Is user allowed to view ips?
if (!can_moderate($threadinfo['forumid'], 'canviewips') OR !is_member_of($vbulletin->userinfo, explode(',',$vbulletin->options['ipinfo_groups'])))
{
        print_no_permission();
}

To this one:
Code:

// Is user allowed to view ips?
if ( is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options[ipinfo_groups])) )
{
        // do nothing
}
else if ( !can_moderate($threadinfo['forumid'], 'canviewips') )
{
        print_no_permission();
}
else
{
        // do nothing
}

Why? Because this one is a right construction. The original one from 1.4 doesn't work with "IP Info Access".

=========================================

And in product-ipinfo.xml I advice to change.

This one (1):
Code:

<td class="tcat" width="100%"><phrase 1="$postinfo[username]">$vbphrase[xs_ip_address_for_this_post]</phrase></td>
Must be changed to this one (1):
Code:

<td class="tcat" width="100%"><phrase 1="$postinfo[username]" 2="$postinfo[userid]" 3="$postinfo[postid]">$vbphrase[xs_ip_address_for_this_post]</phrase></td>
This one (2):
Code:

<phrase name="xs_ip_address_for_this_post" date="1191513680" username="Zachariah" version="1.2"><![CDATA[{1}'s IP Address for this post]]></phrase>
Must be changed to this one (2):
Code:

<phrase name="xs_ip_address_for_this_post" date="1191513680" username="Zachariah" version="1.2"><![CDATA[<a href="member.php?u={2}">{1}</a>'s IP Address for post <a href="showthread.php?p={3}#post{3}">#{3}</a>]]></phrase>
This will make post's user name clickable and add clicable post's number on "User IP Information" page.

=========================================

This one (3):
Code:

<setting varname="ipinfo_groups" displayorder="260">
                <datatype>free</datatype>
                <defaultvalue>5,6,7</defaultvalue>
        </setting>

Must be changed to this one (3):
Code:

<setting varname="ipinfo_groups" displayorder="260">
                <datatype>free</datatype>
                <defaultvalue><![CDATA[5,6,7]]></defaultvalue>
        </setting>

=========================================

This one (4):
Code:

        <url>https://vborg.vbsupport.ru/showthread.php?t=117966</url>
Must be changed to this one (4):
Code:

        <url><![CDATA[https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=ipinfo]]></url>
=========================================

And if Zachariah will add pid for this mod then:

This one (5):
Code:

        <versioncheckurl />
Must be changed to this one (5):
Code:

        <versioncheckurl><![CDATA[https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=ipinfo]]></versioncheckurl>
=========================================

I will contact Zachariah for all this one to be in official release.

Code:

1.5
- Fixed limit by usergroups
- Changed the template so on "User IP Information" page you see clickable post's number (url to post)
- Changed the template so on "User IP Information" post's username is clickable now (url to user's profile)
- Some other minor changes


Wow... :o

Zachariah 10-20-2007 09:35 PM

Changelog:
==========
1.5
- Fixed limit by usergroups
- Changed the template so on "User IP Information" page you see clickable post's number (url to post)
- Changed the template so on "User IP Information" post's username is clickable now (url to user's profile)
- Some other minor changes
- Thanks to Makc666 :)

Replace PHP file and import product.

SuperTaz 10-20-2007 09:48 PM

Excellent. Thank you. :D

Stifmeister2 10-20-2007 09:58 PM

Thx dude. :)


All times are GMT. The time now is 10:58 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.01362 seconds
  • Memory Usage 1,778KB
  • 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
  • (26)bbcode_code_printable
  • (4)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