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

Home » FUDforum Development » Plugins and Code Hacks » A question about FUD API
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: A question about FUD API [message #20721 is a reply to message #20554] Tue, 26 October 2004 14:30 Go to previous messageGo to previous message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma:
Senior Member
Give this a try:

<?php
include('forum/GLOBALS.php');
include(
'forum/scripts/fudapi.inc.php');

$online_users = fud_fetch_online_users();

/* Works just fine when only one user logged in. */
print('<pre>'); print_r($online_users); print('</pre>');

/* Works just fine when only one user logged in.
   Returns an invalid argument when >1.
foreach ( $online_users as $key => $val ) {
        print($key . '[' . $val . ']<br>');
}*/

/* Interesting results when >1 user logged in. */
print('Serialized: '. serialize($online_users));
?>
[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
Previous Topic: another proposal: use DB to store post messages
Next Topic: the login procedure
Goto Forum:
  

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

Current Time: Wed Nov 27 04:01:32 GMT 2024

Total time taken to generate the page: 0.07045 seconds