FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Total users online
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Total users online [message #12097 is a reply to message #12034] Mon, 28 July 2003 17:08 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Here is a patch that after it is applied makes the forum display the total logged in users in () brackets.
Index: src/logedin.inc.t
===================================================================
RCS file: /forum21/install/forum_data/src/logedin.inc.t,v
retrieving revision 1.19
diff -u -r1.19 logedin.inc.t
--- src/logedin.inc.t   14 May 2003 06:14:08 -0000      1.19
+++ src/logedin.inc.t   28 Jul 2003 17:27:49 -0000
@@ -64,6 +64,7 @@
                } else {
                        $logedin = '';
                }
+               $ttl_users = $st_obj->online_users_reg + $st_obj->online_users_hidden + $st_obj->online_users_anon;
                $logedin = '{TEMPLATE: logedin}';
        }
        if ($FORUM_INFO == 'Y') {
Index: thm/default/i18n/english/msg
===================================================================
RCS file: /forum21/install/forum_data/thm/default/i18n/english/msg,v
retrieving revision 1.76
diff -u -r1.76 msg
--- thm/default/i18n/english/msg        24 Jul 2003 22:47:38 -0000      1.76
+++ thm/default/i18n/english/msg        28 Jul 2003 17:27:49 -0000
@@ -141,7 +141,7 @@
 size:                          Size:
 started_on:                    Started On
 status:                                Status:
-status_line:                   There are <b>{VAR: st_obj->online_users_reg}</b> members(s), <b>{VAR: st_obj->online_users_hidden}</b> invisible members and <b>{VAR: st_obj->online_users_anon}</b> guest(s) visiting this board.
+status_line:                   There are ({VAR: ttl_users}) <b>{VAR: st_obj->online_users_reg}</b> members(s), <b>{VAR: st_obj->online_users_hidden}</b> invisible members and <b>{VAR: st_obj->online_users_anon}</b> guest(s) visiting this board.
 sticky:                                sticky:
 stop_ignoring:                 stop ignoring this user
 sub_to_thread:                 Subscribe to topic



FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CSS patch
Next Topic: Make Fudforum enforce good passwords using cracklib
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 23:50:12 GMT 2024

Total time taken to generate the page: 0.04841 seconds