vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Location Click in Who's Online page (https://vborg.vbsupport.ru/showthread.php?t=231306)

vbenhancer 12-26-2009 10:00 PM

Location Click in Who's Online page
 
1 Attachment(s)
you know that icon in the Who's Online page:

... now it is clickable, so you can visit the page the user is viewing.

This is perfect when you see that a user have a error message and you can not figure for the sake of it what is the thread/page he is reading only by the url... because by default, the only thing you can do is hovering the icon and you can see the url, threadid, or forumid, etc... but no content... so, no idea of what it is!

Simply install... this is a minimalist product that will change the icon to a clickable link, which will open a new browser window to the member's location so you can visit it too...

teach1st 12-27-2009 02:52 PM

Installed! Works as advertised and it performs a function I've always wished was included in VB. Thanks!

ctrlbrk 01-02-2010 12:49 AM

Nicely done as usual.

Mike

mradlin 01-02-2010 05:30 AM

Installed. Works great!

Datok 01-02-2010 06:30 AM

Thank you... Installed

Merjawy 01-02-2010 06:59 AM

very nice mod... I've always thought that should've been default option

Thanks

Trumpetrhapsody 02-03-2010 03:30 AM

Any chance this could be ported for VB4? :D

I've gotten the syntax working when manually editing the templates... but I have no idea how to update the auto template stuff.

Code:

<phpcode><![CDATA[$element = addslashes('<img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" />');

$replace =  addslashes('<a href="{vb:raw userinfo.location}" target="_"><img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" border="0" /></a>');

$vbulletin->templatecache['whosonlinebit'] = str_replace($element, $replace, $vbulletin->templatecache['whosonlinebit']);
unset($element, $replace);]]></phpcode>



All times are GMT. The time now is 11:59 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.01160 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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