View Full Version : Resolve Ip Switch
untold4you
07-15-2005, 10:00 PM
This hack for vBulletin 3.0.7 will add an extra drop down list to the ?Who's Online Page?,
where you can easily select to resolve the users ip's or not.
Vbulletin Version: 3.0.7
Name: Resolve Ip Switch
Version: 1.0
Date: 16-07-2005
DB Changes: N/A
Upload Files: N/A
File Modifications: 1
Phrases To Add: 1
Templates To Edit: 1
Time To Install: 5-10 Minutes
Screenshot:
http://www.powerplant.be/ppimages/resolveipswitchhack.gif
yoyoyoyo
07-16-2005, 07:08 PM
Starting with a fresh copy of online.php I tried the edits a few times and still get the same error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mysite/public_html/forum/online.php on line 442line 442 is:$frmjmpsel['wol'] = ' selected="selected" class="fjsel"';
Here is the code that is listed above and below that area $metarefresh .= "\n</script>\n";
}
else
{
/* [START] [Resolve Ip Switch Hack] [ID:5] */
$metarefresh = "<meta http-equiv=\"refresh\" content=\"$vboptions[WOLrefresh]; url=online.php?$session[sessionurl]order=$sortorder&sort=$sortfield&pp=$perpage&page= $pagenumber" . iif($who, "&who=$who") . iif($showua, '&ua=1') . iif($showlsv, '&rslv=1') . "\" /> ";
/* [END] [Resolve Ip Switch Hack] [ID:5] */";
}
}
$frmjmpsel['wol'] = ' selected="selected" class="fjsel"';
construct_forum_jump();
/* [START] [Resolve Ip Switch Hack] [ID:6] */
$pagenav = construct_page_nav($totalonline, "online.php?$session[sessionurl]sort=$sortfield&order=$sortorder&pp=$perpage" . iif($who, "&who=$who") . iif($showua, '&ua=1') . iif($showlsv, '&rslv=1'));
/* [END] [Resolve Ip Switch Hack] [ID:6] */
$numbervisible += $numberinvisible;
Then I uploaded a virgin copy of online.php, and went to that page on my site, and I am able to resolve IP's etc., so the edits in the online.php are needless, as far as I can see since the hack works fine without them, which means it is a template mod.
untold4you
07-16-2005, 07:27 PM
/* [END] [Resolve Ip Switch Hack] [ID:5] */";
Remove the stuff in green and your on your way!
so the edits in the online.php are needless, as far as I can see since the hack works fine without them, which means it is a template mod.
No they are not, because the page is refreshing itself and when you order your online list by location or username, the setting of the switch is not saved .
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.