Welcome, Guest. Please Login or Register.
November 28, 2024, 10:45:49 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags « previous next »
Pages: [1] 2 3 ... 15 Reply Ignore Print
Author Topic: [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags  (Read 69841 times)
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
[Done 1.5.x] Who's Online w/ Hidden Users w/ Flags
« on: July 24, 2002, 03:10:52 AM »
Reply with quote

This mod allows you to see what people are doing on the fourm and restrict who can view it.
The Hidden Users addon allows people to hide their online status to everyone but the admin.
The Flags mod adds the country flag of each user based on their IP address.

http://www.dune2k.com/yabbse/Who.zip
« Last Edit: August 02, 2003, 11:30:28 PM by Gobalopper » Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[RC1] Who's Online
« Reply #1 on: July 24, 2002, 04:05:13 AM »
Reply with quote

Nice! I have not had a chance to try this yet but your demo is awsome. Good Job!
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:[RC1] Who's Online
« Reply #2 on: July 24, 2002, 04:15:19 AM »
Reply with quote

Looks good!   8)
Logged

This guy uses objects like women man!
junomat
Jr. Member
**
Posts: 74


I'm a llama!

WWW
Re:[RC1] Who's Online
« Reply #3 on: July 24, 2002, 03:20:06 PM »
Reply with quote

are you going to make a package for this?

thanks,
mat
Logged

silence is so accurate
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[RC1] Who's Online
« Reply #4 on: July 24, 2002, 04:06:10 PM »
Reply with quote

Probably not until the final release.
Logged
eberon
Noobie
*
Posts: 11


I'm a llama!

Re:[RC1] Who's Online
« Reply #5 on: July 28, 2002, 10:56:48 PM »
Reply with quote

Superb looking work! I have been looking for this for a very, very long time. I am very happy to see that someone finally decided to code this extension!

And btw, Dune ROCKS. I cannot wait to join/view your forums when I get home :)
Logged
eberon
Noobie
*
Posts: 11


I'm a llama!

Re:[RC1] Who's Online
« Reply #6 on: July 29, 2002, 01:06:34 AM »
Reply with quote

Hmm. I seem to be having a bit of trouble getting the mod working well. Much to my dismay, the forums only seem to report that everyone is viewing the main index no matter how many people are online. I'm baffled! Can you offer any assistance? If you need to see my board I'll provide a link.

And as I've just noticed, the links aren't proper either. They all point back to the action=who link. :\
« Last Edit: July 29, 2002, 02:21:25 AM by eberon » Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[RC1] Who's Online
« Reply #7 on: July 29, 2002, 07:57:01 AM »
Reply with quote

Sure post the site here or IM me. It could be I just missed something in the instructions.
Logged
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[RC1] Who's Online
« Reply #8 on: July 29, 2002, 10:48:29 AM »
Reply with quote

I have the same problem - for some reason it was only recording the first 2 numbers of people's IPs too, so the database instructions you gave weren't correct.

I'll wait till you fix it :)
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[RC1] Who's Online
« Reply #9 on: July 30, 2002, 03:26:05 AM »
Reply with quote

Ok check out the Who.php I am using at the moment on my board. This adds a fourth column that only admins can see. It shows the action it is parsing to display the info for that user. So once you are using it let me know what that column says. That should help find the error.
« Last Edit: July 30, 2002, 04:55:56 AM by Gobalopper » Logged
eberon
Noobie
*
Posts: 11


I'm a llama!

Re:[RC1] Who's Online
« Reply #10 on: July 30, 2002, 03:51:33 AM »
Reply with quote

Okay, once again, same problem, and action info field is blank.

Huzzah, fixed. Thanks to the master for his awesome php skills  ;D
« Last Edit: July 30, 2002, 04:58:24 AM by eberon » Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[RC1] Who's Online
« Reply #11 on: July 30, 2002, 03:58:14 AM »
Reply with quote

Yep for some reason it isn't writing back to the database. I have a test board setup now that is a fresh install so I'm going to see if I can find out why thats happening.
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[RC1] Who's Online
« Reply #12 on: July 30, 2002, 04:00:56 AM »
Reply with quote

Turns out IIS servers don't like REQUEST_URI so I've modified it slightly. Just use this new WriteLog() function from Subs.php.

function WriteLog (){
  global $REMOTE_ADDR,$PHP_SELF,$HTTP_SERVER_VARS,$username,$db_prefix;
  $logTime = time();
  $identity = $username;
  if($username == 'Guest') { $identity = $REMOTE_ADDR; }
  $url = parse_url($PHP_SELF."?".$HTTP_SERVER_VARS["QUERY_STRING"]);
  $request = mysql_query ("DELETE FROM {$db_prefix}log_online WHERE (logTime < ".($logTime - 900)." || identity='$identity')");
  $request = mysql_query ("INSERT INTO {$db_prefix}log_online (identity,logTime,url,ip) VALUES ('$identity',$logTime,'$url[query]','$REMOTE_ADDR')");
}
« Last Edit: July 30, 2002, 04:46:28 AM by Gobalopper » Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[RC1] Who's Online
« Reply #13 on: July 30, 2002, 04:47:30 AM »
Reply with quote

Thanks eberon for helping find the fix, you can see it a couple posts above this. The zip file has also been updated with the fix.
« Last Edit: July 30, 2002, 04:57:32 AM by Gobalopper » Logged
eberon
Noobie
*
Posts: 11


I'm a llama!

Re:[RC1] Who's Online
« Reply #14 on: July 30, 2002, 05:26:18 AM »
Reply with quote

No guarantees this will work, but for people using this mod who want to insert an autorefresh, add this to your template somewhere within the HEAD tags.

<?
global $action;
if ($action == "who") {
print "<meta http-equiv=\"refresh\" content=\"(replace with number of seconds to update);url=$scripturl?action=who\">";
}
?>
Logged
Pages: [1] 2 3 ... 15 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.x] Who's Online w/ Hidden Users w/ Flags « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.040 seconds with 20 queries.