![]() |
Always show User Agent string in Who's Online v3 and older v4
1 Attachment(s)
This goes for vB 4.x as well, not valid though for 4.2.0 and up... and it's a simple little deal I use just to make my life a little more convenient.
You want to see User Agent strings in WOL, for lots of reasons but I primarily use it to collect information on bad spiders and bots for adding to ban lists for same. You also want to order what you see in WOL, by most recent hit time. This is easy. In navbar template: NOTE: For v4 the <if> conditional is <vb:if> (And of course it closes out with </vb:if>) You probably want to just search for, "online.php" in the templates but you are looking for this or similar: HTML Code:
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if> HTML Code:
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?ua=1&order=desc&sort=time&pp=40&page=1$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if> You can do this too for the link to WOL in the "What's Going On" section if you use that. This changes nothing for anyone not permissioned to see UA strings - they still won't see them they will get just the regular, same WOL page they always have. Except now the entries will be ordered by most recent to top, of course. And.... That's it. Enjoy. |
Reserved.
|
All times are GMT. The time now is 02:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|