vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Removing Unknown Location in WOL (https://vborg.vbsupport.ru/showthread.php?t=73159)

T3MEDIA 12-21-2004 11:03 AM

Removing Unknown Location in WOL
 
Is there a way to only show what vb is aware of in Who's online?

I dont care if a user is in a area that is Unknown and really prefer it not be there.

ANY ideas what so ever on this?

THANKS!

Natch 12-21-2004 11:05 AM

You do know that it's only shown to Admin's with the approriate permissions: you can change your own admin Permissions to not permit yourself to see it...

T3MEDIA 12-21-2004 11:08 AM

no... I mean (thanks for the fast reply btw) I want everyone to see it. that isnt a issue. I want the UNKNOWN locations not to show up. If a user is in a unknown location just keep where they were last.

See what happens is a user might be in chat. then goto a page I made that is unknown... I rather it simply keep where they were last. and ignore unknown locations.

Paul M 12-21-2004 02:22 PM

You could add the location to your WOL, or alter the "Unknown" message.

T3MEDIA 12-21-2004 03:04 PM

Quote:

Originally Posted by Paul M
You could add the location to your WOL, or alter the "Unknown" message.

ok... lets do that. How would you add the location to WOL?

ericgtr 12-21-2004 03:27 PM

Quote:

Originally Posted by T3MEDIA
ok... lets do that. How would you add the location to WOL?

Here you go.. https://vborg.vbsupport.ru/showthread.php?t=60019

T3MEDIA 12-21-2004 04:05 PM

Quote:

Originally Posted by ericgtr

That wasnt funny.

I need a way for it to work with WHO'S online. That shows users online on anypage. two differnt things.

MeTaL_oRgY 12-21-2004 04:11 PM

hmmm... open online.php and search:
Code:

      // Let's show the admin the location but put something false up for everyone else..
      if ($bbuserinfo[usergroupid] == 6) {
        $userinfo[location] = htmlspecialchars(stripslashes(replacesession($userinfo[location])));
        $userinfo[where] = "<b>Unknown Location:</b> <a href=\"$userinfo[location]\">$userinfo[location]</a>";
      } else {
        // We were unable to parse the location
        $userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      }
  }

I'm not the better person for this, but I'm sure that must be modified. Have you tried removing this line:
Code:

        $userinfo[where] = "<b>Unknown Location:</b> <a href=\"$userinfo[location]\">$userinfo[location]</a>";

T3MEDIA 12-21-2004 04:16 PM

ya think its a hack then... darn I was hoping I could template it out some how...
the two unknow locations are the same.... they never change...
/forums/pull.php?do=footer this is my footer... its like the bottom menu. would be nice if it said using members menu
/forums/vbindex.php? (sometimes the ? sint there) is my main page. would be nice if it could say main page.

This code removal... that is the ticket just to remove unknown locations period?

I would use that if I have no alternative.

MeTaL_oRgY 12-21-2004 04:28 PM

yeah, it would remove the unknown locations for sure.. I've been trying to do this and can't find a solution.. not that I'm such a huge hacker.. but I'm learning.. lol... you should wait for someone capable of doing this... that's the only advice I can give you.. sorry I couldn't be of more help.


All times are GMT. The time now is 09:29 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.01287 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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