Always show User Agent string in Who's Online v3 and older v4
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. Download No files for download. |
Similar Mods
Miscellaneous Hacks Ban Spiders by User Agent | vBulletin 4.x Add-ons |
Miscellaneous Hacks Ban Spiders by User Agent | vBulletin 3.7 Add-ons |
New Posting Features Append User Agent String to New Threads and Posts | vBulletin 3.7 Add-ons |