PDA

View Full Version : Administrative and Maintenance Tools - Location Click in Who's Online page


vbenhancer
12-26-2009, 10:00 PM
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.

<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>