See if/when other editors are logged in

Talk about new features for CMSMS and modules.
Post Reply
10010110

See if/when other editors are logged in

Post by 10010110 »

*sigh* My boss is always coming with the most advanced requests…

I don’t think this exists yet so I’m gonna propose the implementation of a function to see if other editors are currently logged in into the admin panel (other than the admin log). Something like here in the forum where you see who else is browsing the forum.

I figure that shouldn’t be too hard since it’s already implemented here.

Thanks for your attention and this great CMS. I’ve been endorsing it in other web development forums already.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: See if/when other editors are logged in

Post by tsw »

its not as easy as it sounds :)

what if user just closes the browser, we dont get any event on him logging out so he will be a "ghost" for some time limit or until we see him again...
10010110

Re: See if/when other editors are logged in

Post by 10010110 »

Hmm, right, I see…
And what about a timeout script that, if there is no activity (page hits?) for a certain amount of time, will just set the user status to “inactive” or “idle” (without logging him out)? That way you would see someone logged in but can be sure that you won’t get in conflict…

I figure there might be problems if someone is just typing text in the text area of the page editor, i.e. that there won’t be any real activity that a script can track but I guess setting the timeout to like 5 minutes by default might be alright as probably nobody is editing content for such a long time without checking it in between.

Or maybe there’s some AJAX to check for that?

I know it’s easier said than done but these are my thoughts. What do you think?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: See if/when other editors are logged in

Post by calguy1000 »

the code for marking the user as 'active/inactive' is not hard.  It could be done.  The problem is, that you'll need to modify quite a number of files to monitor the activity properly (pretty much anything in the admin folder would have to be touched).

Displaying the logged in users, should be done somewhere convenient.

If you're going to tackle this, you may want to try it with the 1.1 svn code, and then submit a patch so that others can use it, or potentially we could use it in the core.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: See if/when other editors are logged in

Post by tsw »

it could be in the header or in the bookmarks flyout, that way there is no need to touch every template. (maybe)
Post Reply

Return to “Feature ideas”