View Full Version : Who's Online "?" Link
Trumpetrhapsody
02-03-2010, 03:06 AM
I don't know how to describe this well... and this might be a dumb thing to ask for but...
In Who's Online, when you're an admin and you get that https://vborg.vbsupport.ru/external/2010/02/13.gif icon... when you mouseover it shows the link of what the person is looking at (like an attachment). It would be nice if clicking that would take you TO what they're looking at.
Unless you mouseover and write down the link then type it in manually there is no good way to view what another user is viewing.
Digital Jedi
02-03-2010, 03:19 AM
I forget what it's called, but there's a 3.x modification that does just that. It's either a template edit or a product, but shouldn't be too hard to find.
Trumpetrhapsody
02-03-2010, 03:22 AM
Thanks! I'll try to find it, but in my cursory searching before posting here it didn't show up. If I can find it hopefully it could easily be ported for VB4.
You'd think this kind of thing would be a VB default feature, but oh well.
EDIT:
Apparently I didn't look very well: https://vborg.vbsupport.ru/showthread.php?t=231306&highlight=who+online
Now to see if I have the ability to port it :(
<phpcode><![CDATA[$element = addslashes('<img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$userinfo[location]" />');
$replace = addslashes('<a href="$vboptions[bburl]$userinfo[location]" target="_"><img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$userinfo[location]" border="0" /></a>');
$vbulletin->templatecache['whosonlinebit'] = str_replace($element, $replace, $vbulletin->templatecache['whosonlinebit']);
unset($element, $replace);]]></phpcode>
ChopSuey
02-03-2010, 05:18 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=231306" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=231306</a>
??
Trumpetrhapsody
02-03-2010, 11:25 AM
Already posted that link... in the post right above you??
I fixed the syntax... but importing it isn't making the style changes.
<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>
Trumpetrhapsody
03-01-2010, 03:49 PM
Bump... can anyone help out with getting the install script working for VB4?
ChopSuey
03-02-2010, 01:28 AM
The modification would need to be updated to vB4
Trumpetrhapsody
03-02-2010, 02:13 AM
.... I already said I updated and tested the code manually... But that I don't know how to update the auto template script...
ChopSuey
03-02-2010, 03:01 PM
See this https://vborg.vbsupport.ru/showthread.php?t=228078
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.