vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Who's Online "?" Link (https://vborg.vbsupport.ru/showthread.php?t=234858)

Trumpetrhapsody 02-03-2010 03:06 AM

Who's Online "?" Link
 
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/showthrea...ght=who+online

Now to see if I have the ability to port it :(

Code:

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


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


All times are GMT. The time now is 05:05 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.01016 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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