Version: 2.25, by Paul M
Developer Last Online: Nov 2023
Category: Administrative and Maintenance Tools -
Version: 3.6.x
Rating:
Released: 07-01-2006
Last Update: 11-24-2006
Installs: 633
DB Changes Uses Plugins Auto-Templates
Code Changes Translations
No support by the author.
This modification is no longer available or supported.
This hack makes the forum always use the members real ip when a proxy is detected, meaning that all existing ip functions should continue to work, basically ignoring the proxy server (other than recording it's presence).
i.e.
* The real ip (or host) is displayed in the who's online page.
* The real and proxy server ip's are accesible for each post, the button is red for members using a proxy server.
* The real ip is searchable in the admin/mod cp (but not the proxy ip).
* The real ip can be banned by admins.
etc etc ......
Note: Obviously this hack relies on the proxy server passing the correct http variables to allow detection.
If a proxy is detected, then a red ip icon is displayed instead of the standard one. This mod will also detect if the ipinfo hack is installed and adjust itself to call the ipinfo code.
History:
v2.20 : Updated for vb 3.6. IP Info detection added. v2.21 : Dependancies updated for 3.6.0 Gold. v2.22 : Updated for Version Checking. v2.23 : Fixed bug causing wrong ip in WOL display. v2.24 : Rewritten slightly to fix a minor issue with spiders. v2.25 : Updated for changes in vB 3.6.4.
Remember that this modification involves changes to the class_core.php file - if you upgrade your vbulletin, you must reapply those changes.
Please do not post asking why this does not work with some proxy servers, the answer is already in the notes above, and also in Post #160.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I double checked the edits to class_core.php. Got a error the first time.
So i redid it again and got the same error
Code:
Parse error: syntax error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxx/public_html/forum/includes/class_core.php on line 2126
I really want to install this....Can I get some help please?
I would say you are making an error in step 1 by removing an extra curly bracket at the bottom of the function.
The change is in step 3 of the file edits to class_core.php - to fix your copy you will need to find the "define session constants" comment and replace the two lines below it (that define SESSION_IDHASH & SESSION_HOST) with the new ones in the instructions (or re-edit a fresh, unaltered, class_core.php as per steps 1/2/3).
doing the code changes to the class_core.php file .. ( step 3 )
MY existing code
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->ipaddress))); // this should *never* change during a session
The new code from the read me
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->ipaddress))); // this should *never* change during a session
Try downloading the zip again? I just compared the new readme to the old readme, the code is different.
Weird - is your step 3 different ??
Step 3.
In class_core.php ;
Find ;
// define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->alt_ip))); // this should *never* change during a session
Replace with ;
// Paul M - define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->ipaddress))); // this should *never* change during a session