vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Always show User Agent string in Who's Online v3 and older v4 (https://vborg.vbsupport.ru/showthread.php?t=306008)

Max Taxable 12-17-2013 11:00 PM

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>
And make it:

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>
Now when you click on "Who's Online" in navbar dropdown, you get the full picture without having to mess with settings in WOL.

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.

Max Taxable 12-18-2013 04:35 PM

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
  • Page Generation 0.01004 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete