![]() |
Works great on 2.2.7, thank you. :)
|
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; |
Working with 2.2.8. Nice addition to my site. :D
|
|
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 |
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? |
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 |
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 |
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. |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|