2011-04-17, 03:31 AM
Is there any ability to show the useragent of a visitor in the who's online section? I see the coding there and have already changed it a bit to show like this:
I just added another link so I could do a more extensive lookup on IP addresses. I would also like to display the useragent there. I went into the database and found the table called "sessions". It has a column for IP, I looked over and saw one or useragent. I tried putting the code like this:
But that wouldn't work, it doesn't display the visitor's useragent. Is there any way to do this straight from who's online WITHOUT a plugin?
-ZuFu
Quote:<br /><span class="smalltext">{$lang->ip} {$user['ip']} <a href="modcp.php?action=ipsearch&ipaddress={$user['ip']}&search_users=1">{$lang->lookup}</a> | <a href="http://network-tools.com/default.asp?prog=express&host={$user['ip']}">[Network Tools Lookup]</a></span>
I just added another link so I could do a more extensive lookup on IP addresses. I would also like to display the useragent there. I went into the database and found the table called "sessions". It has a column for IP, I looked over and saw one or useragent. I tried putting the code like this:
Quote:<br /><span class="smalltext">{$lang->ip} {$user['ip']} {$user['useragent']} <a href="modcp.php?action=ipsearch&ipaddress={$user['ip']}&search_users=1">{$lang->lookup}</a> | <a href="http://network-tools.com/default.asp?prog=express&host={$user['ip']}">[Network Tools Lookup]</a></span>
But that wouldn't work, it doesn't display the visitor's useragent. Is there any way to do this straight from who's online WITHOUT a plugin?
-ZuFu