vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Always show User Agent string in Who's Online v4.2.0 and up (https://vborg.vbsupport.ru/showthread.php?t=306009)

Max Taxable 12-17-2013 11:00 PM

Always show User Agent string in Who's Online v4.2.0 and up
 
1 Attachment(s)
This is just 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 the Navigation Manager, just change the Target URL from:
HTML Code:

online.php{session.sessionurl_q}
To:
HTML Code:

online.php?ua=1&order=desc&sort=time&pp=40&page=1{session.sessionurl_q}
Now when you click on "Who's Online," you get the full picture without having to mess with settings in WOL.

This changes nothing for anyone not permissioned to see IP addresses - they still won't see them or the UA 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.

qpurser 12-18-2013 11:35 AM

Thank you.
Works perfect.

Just when the UA is very long it exceeds the forum width.
Not really a big deal.

ozzy47 12-18-2013 11:42 AM

Yeah that way happen, but the general mass can't see that info anyway. :)

Max Taxable 12-18-2013 04:33 PM

Quote:

Originally Posted by qpurser (Post 2469231)
Thank you.
Works perfect.

Just when the UA is very long it exceeds the forum width.
Not really a big deal.

Glad you like.


All times are GMT. The time now is 10:00 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.01122 seconds
  • Memory Usage 1,715KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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