vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Show Who's Profile User is Viewing in Who's Online (https://vborg.vbsupport.ru/showthread.php?t=32136)

apfeifer 11-04-2001 10:00 PM

Hack: Show Who's Profile User is Viewing in Who's Online
Version of vB: 2.2.0, although may work on earlier versions but not tested
Current Version: 1.0.0
Description: This hack shows you which user's profile an online user is viewing in Who's Online.


Enjoy!

afterlab 11-05-2001 12:08 AM

Great job on the hack, it's a nice small hack that really gives attention to detail. I like that. + it worked on my 2.0.3 :)

2 thumbs up! https://vborg.vbsupport.ru/external/2011/01/19.gif https://vborg.vbsupport.ru/external/2011/01/19.gif

hehe

|DarkManX| 11-05-2001 12:16 AM

didn't work for me for some reason.....

just says viewing forum profile of

then nothing........

apfeifer 11-05-2001 12:22 AM

Working on it now...

apfeifer 11-05-2001 12:26 AM

Try replacing the $userinfo[where] = ""; line with this:


PHP Code:

      if (!$username[username]) {
        
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      } else {
        
$userinfo[where] = "Viewing Profile of <a href='member.php?s=$session[sessionhash]&action=getinfo&userid=$userid[3]'>$username[username]</a>";
      } 


Not sure about this seeing I have no where to test it, but give it a shot.

:cool:

|DarkManX| 11-05-2001 12:29 AM

Quote:

Originally posted by apfeifer
Try replacing the $userinfo[where] = ""; line with this:


PHP Code:

      if (!$username[username]) {
        
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      } else {
        
$userinfo[where] = "Viewing Profile of <a href='member.php?s=$session[sessionhash]&action=getinfo&userid=$userid[3]'>$username[username]</a>";
      } 


Not sure about this seeing I have no where to test it, but give it a shot.

:cool:



i'm a lil confused on what you mean....what text to i replace exactly??

apfeifer 11-05-2001 12:31 AM

Replace:

PHP Code:

      $userinfo[where] = "Viewing Profile of <a href='member.php?s=$session[sessionhash]&action=getinfo&userid=$userid[3]'>$username[username]</a>"

With:

PHP Code:

      if (!$username[username]) {
        
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      } else {
        
$userinfo[where] = "Viewing Profile of <a href='member.php?s=$session[sessionhash]&action=getinfo&userid=$userid[3]'>$username[username]</a>";
      } 


apfeifer 11-05-2001 12:32 AM

Updated the instructions.

:cool:

|DarkManX| 11-05-2001 12:32 AM

giving it a go right now.....

|DarkManX| 11-05-2001 12:35 AM

it work'd, thanks so much for the hard work and quick response, you rock apfeifer :)


All times are GMT. The time now is 03:34 PM.

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.01046 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete