Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Who's Online
This discussion has been closed.
Comments
had to delete it and the entry in the appg/extensions.php file.
line 56:
if (in_array($Context->SelfUrl, array("account.php", "categories.php", "comments.php", "index.php", "post.php", "search.php", "settings.php"))
yup, the new version gave me the same error as lament.
The new version (1.0.2) is up. Same place, etc.
The extension works by updating/querying the DateLastActive field in the LUM_User table. Without logging in, there's not really an easy way to track a person--guests don't (and can't) have an entry in LUM_User.
The most logical way to track a guest (that I can think of off the top of my head) would be to create a new table specifically for tracking guests, and that just seems silly to me.
But if anyone's got any other ideas or suggestions for tracking guests, I'd love to hear it. I'm not unwilling to try it.
clicky (scroll down to Show Users Online)
then it's just handled with a CURL:
<?php $curl_handle = curl_init(); // Where should we get the data? curl_setopt ($curl_handle, CURLOPT_URL, 'http://www.mysite.com/extern.php?action=online'); // This says not to dump it directly to the output stream, but instead // have it return as a string. curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 2); // the following is optional, but you should consider setting it // anyway. It prevents your page from hanging if the remote site is // down. curl_setopt ($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); // Now, YOU make the call. $buffer = curl_exec($curl_handle); // And tell it to shut down (when your done. You can always make more // calls if you want.) curl_close($curl_handle); // This is where i’d probably do some extra checks on what i just got. // Paranoia pays dividends. print $buffer; ?>
see it in action here (bottom left)..
As for the version number, it looks like I forgot to change the version number in the file. Whoops.
I took an in-depth look at the CURL stuff last night. It looks like punbb uses a table specifically for the who's online list. It's hard to say, exactly, since I don't have a database schema and I only have a vague understanding on how how everything is called.
Back to the drawing board, I suppose.
specificly
s:7:"Phantom";i:0;
if that string isn't found in the users setting row, the extension doesn't act and simply hides the user entirely until they actually go into their prefs and toggle phantom on then off. Best work around for this is triggering the extension upon sign-in to look to see if the user has the entry, either set to on or off, and if it doesn't exist, create it for them.