The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
WOL show both host and ip
I have my WOL setting to resolve hosts but would like to add a <br> and then show the IP under the hostname.
This looks like a real small edit to online.php and whosonlinebit template. Something with gethostbyaddr but I'm not familiar enough to do this. Can anyone offer any tips or tell me how? |
#2
|
||||
|
||||
isn't this a stock option?
|
#3
|
|||
|
|||
figured it out Code:
$userinfo["$key"]['host'] = @gethostbyaddr($users['host']); $userinfo["$key"]['ip'] = ($users['host']); <-- add this Code:
<if condition="$show['ip']"> <td class="$ipclass"><div class="smallfont"><strong>Host Name:</strong> $userinfo[host]<br /><strong>IP:</strong> <a href="http://www.whois.sc/$userinfo[ip]" target="_blank">$userinfo[ip]</a><if condition="$show['useragent']"><br /><strong>Browser:</strong> $userinfo[useragent]</if></div></td> </if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|