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)
-   -   Add Who's Online locations from Admin CP (https://vborg.vbsupport.ru/showthread.php?t=32849)

FleaBag 09-03-2002 01:32 PM

Works great on 2.2.7, thank you. :)

chad777 09-08-2002 03:44 AM

When I goto view who's online after adding about 6 locations.
I get this error

Fatal error: Call to a member function on a non-object in /home/snarfpro/public_html/forums/online.php on line 128

Any Ideas ?

Actually I have found out exactly when it does this.

If a member is viewing a profile anyone else trying to see "who's Online" gets that error any idea what could be wrong here is

lines 126-134 of online.php

case 'getinfo':
$userid = explode('userid=', $userinfo[location]);
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));

if ($user[username]) {
$userinfo[where] = "Viewing Profile of <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";
} else {
$userinfo[where] = "Viewing Profile of a Forum Member";
}
break;

FleaBag 10-29-2002 09:57 PM

Working with 2.2.8. Nice addition to my site. :D

Chris M 10-29-2002 10:03 PM

Gamer - https://vborg.vbsupport.ru/showthrea...&postid=316171

Satan

DrkFusion 10-29-2002 10:11 PM

Of corse, please do not post that same message over again, because we all know most hacks work with 2.2.x perfectly

It really gets annoying.
Thank
-Arunan

Littlebit 10-29-2002 10:41 PM

Anyone who can help,
If I have a file called: index.php that is not in my forums directory, what would I use for the filename ?
the file uses global.php, but how will it work correctly with files in different folders with the same name?

NTLDR 10-29-2002 10:46 PM

Simple answer, you can't :(

Any files called index.php are given the same location on the WOL, as with all the other pages. To get around this I've created a redirect page which is index.php and the real page that is the "index" if you see what I mean.

Alternativly you could add this line into a .htaccess file:

Code:

DirectoryIndex index2.php index.php index.html index.htm
Then it will use index2.php if it exists before it tries index.php

Littlebit 10-30-2002 01:40 AM

NTLDR, thanks for answering. :)
I don't think I fully understand what you mean. Well, I've never had to add a redirect. I'll give it try...thank you

NTLDR 10-30-2002 12:18 PM

I'll try and explain more clearly :)

Limitation of this hack:

It will only check for the file name, eg abc.php, if you have abc.php?a=bc they will count for the same, whereas if you edit online.php you can give them different locations.

Posible Limitation of vB, as it stands you can only have one file with the same name recogised, with hacking you should be able to get it to recognise paths as well.

SpeedStreet 11-05-2002 02:06 AM

I've read this thread cover to cover, and do not have a definintive answer as to whether or not this will work with session hashes.

I am using shoutbox, which returns a sessionhash in it's URL. I have tried all the various tips and tricks in this thread, to no avail.

Should I just give up and forget this?


All times are GMT. The time now is 11:58 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.01196 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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