Online Users Module
Posted by Chris Eaton
|
Re: Online Users Module May 16, 2005 10:16AM |
Registered: 21 years ago Posts: 264 |
Not sure why its not showing. The guest part is showing tho. I registered and noticed it appears you mearly modified the english.php file rather than putting a new language file in there. You might want to check to make sure that you didn't miss one of the lines when you updated the php file. Also check the ./admin.php with your browser to check the mod settings.
http://www.krang.org
http://www.krang.org
|
Re: Online Users Module May 29, 2005 11:35AM |
Registered: 21 years ago Posts: 34 |
Who can I see where the users are on the page?
As this page: [www.feltet.dk]
Who to insert total user?
As this page: [www.feltet.dk]
Who to insert total user?
|
Re: Online Users Module May 29, 2005 12:01PM |
Admin Registered: 24 years ago Posts: 9,240 |
|
Re: Online Users Module May 29, 2005 12:12PM |
Registered: 21 years ago Posts: 34 |
|
Re: Online Users Module June 01, 2005 07:39AM |
Registered: 21 years ago Posts: 34 |
|
Re: Online Users Module June 01, 2005 07:42AM |
Registered: 21 years ago Posts: 34 |
ts77 Wrote:
-------------------------------------------------------
> > Who can I see where the users are on the
> page?
>
> nowhere. thats not tracked, you will have to write
> your own code for that.
>
Someone there can help me to make a script, where the users can see the page other users are looking at.
Like this:
[www.feltet.dk]
Best regards
Jesper
-------------------------------------------------------
> > Who can I see where the users are on the
> page?
>
> nowhere. thats not tracked, you will have to write
> your own code for that.
>
Someone there can help me to make a script, where the users can see the page other users are looking at.
Like this:
[www.feltet.dk]
Best regards
Jesper
|
Re: Online Users Module July 17, 2005 12:34PM |
Registered: 21 years ago Posts: 71 |
|
Re: Online Users Module July 25, 2005 07:57AM |
Registered: 21 years ago Posts: 4 |
I just wanted to say that I cannot open the old .tar.gz archive of this mod which I tried to use first. tar comes up with this error message:
The newer .zip works fine for me.
Edited 1 time(s). Last edit at 07/25/2005 11:15AM by meisterlampe.
$ tar xfz ../../downloads/mod_onlineusers.tar.gz gzip: stdin has more than one entry--rest ignored tar: Read 183 bytes from ../../downloads/mod_onlineusers.tar.gz tar: Child returned status 2 tar: Error exit delayed from previous errors
The newer .zip works fine for me.
Edited 1 time(s). Last edit at 07/25/2005 11:15AM by meisterlampe.
|
Re: Online Users Module August 09, 2005 02:05AM |
Registered: 22 years ago Posts: 99 |
Modification of the mod for use with a custom template.
Basically, it exports the data from $PHORUM["mod_onlineusers"] to $PHORUM["DATA"]["mod_onlineusers"] and adds a flag $PHORUM["mod_onlineusers"]["loaded"] so that a template can see if the module is enabled.
So one can do something like:
The old code calling the stdblock template is leaved there, so the mod will work with no settings change too. To use old way, choose pages where the online users should be shown. To use new way, write your template and call it. You can even mix both.
Some movements are made to accomplish that. Code common for both ways is isolated in the function mod_onlineusers_dang(), and some template-related code is moved to the update-functions.
Also, another addition is there. When a guest logs in and becomes a user, he is now deleted from the guest list.
The modification is based on version 2.3.1.
Grab the file from the next post.
Edited 1 time(s). Last edit at 08/09/2005 02:14AM by kAtremer.
Basically, it exports the data from $PHORUM["mod_onlineusers"] to $PHORUM["DATA"]["mod_onlineusers"] and adds a flag $PHORUM["mod_onlineusers"]["loaded"] so that a template can see if the module is enabled.
So one can do something like:
{IF mod_onlineusers->loaded}
{LOOP mod_onlineusers->data->users}
{IF mod_onlineusers_users_loop_has_already_listed_somebody}, {/IF}
{VAR mod_onlineusers_users_loop_has_already_listed_somebody 1}
{IF mod_onlineusers->data->users->admin}<b>{/IF}
<a href="{mod_onlineusers->data->users->profile_url}">
{mod_onlineusers->data->users->displayname}
{IF mod_onlineusers->show_idle_time} {idle_time}{/IF}
</a>
{IF mod_onlineusers->data->users->admin}</b>{/IF}
{/LOOP mod_onlineusers->data->users}
... etc
{/IF}
The old code calling the stdblock template is leaved there, so the mod will work with no settings change too. To use old way, choose pages where the online users should be shown. To use new way, write your template and call it. You can even mix both.
Some movements are made to accomplish that. Code common for both ways is isolated in the function mod_onlineusers_dang(), and some template-related code is moved to the update-functions.
Also, another addition is there. When a guest logs in and becomes a user, he is now deleted from the guest list.
The modification is based on version 2.3.1.
Grab the file from the next post.
Edited 1 time(s). Last edit at 08/09/2005 02:14AM by kAtremer.
|
Re: Online Users Module August 09, 2005 02:14AM |
Registered: 22 years ago Posts: 99 |
Sorry, only registered users may post in this forum.



