Welcome, Guest. Please Login or Register.
November 17, 2017, 11:16:23 PM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Topic: [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 33179 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 23, 2002, 10:10:52 PM »
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, 06: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 23, 2002, 11:05:13 PM »
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 23, 2002, 11:15:19 PM »
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, 10:20:06 AM »
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, 11:06:10 AM »
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, 05: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 28, 2002, 08:06:34 PM »
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 28, 2002, 09:21:25 PM by eberon » Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster


WWW
Re:[RC1] Who's Online
« Reply #7 on: July 29, 2002, 02: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



Re:[RC1] Who's Online
« Reply #8 on: July 29, 2002, 05: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 29, 2002, 10:26:05 PM »
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 29, 2002, 11:55:56 PM by Gobalopper » Logged
eberon
Noobie
*
Posts: 11


I'm a llama!


Re:[RC1] Who's Online
« Reply #10 on: July 29, 2002, 10:51:33 PM »
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 29, 2002, 11:58:24 PM by eberon » Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster


WWW
Re:[RC1] Who's Online
« Reply #11 on: July 29, 2002, 10:58:14 PM »
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 29, 2002, 11:00:56 PM »
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.

Code: [Select]
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 29, 2002, 11:46:28 PM by Gobalopper » Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster


WWW
Re:[RC1] Who's Online
« Reply #13 on: July 29, 2002, 11:47:30 PM »
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 29, 2002, 11:57:32 PM by Gobalopper » Logged
eberon
Noobie
*
Posts: 11


I'm a llama!


Re:[RC1] Who's Online
« Reply #14 on: July 30, 2002, 12: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.

Code: [Select]
<?
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  |  Topic: [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.0.12 | SMF © 2016, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.095 seconds with 19 queries.