Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-30 15:54:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Users Page

I’m just wondering if it would be possible, and if so, desirable to display whether a user is currently logged in?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#2 2009-08-31 06:26:42

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Users Page

Might be interesting on the admin side, I can’t think of a reason for displaying that kind of info on the public site in most cases.

Offline

#3 2009-08-31 09:30:46

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Users Page

Purely on the admin side. In fact specifically on the Users page which is why I mentioned it. I just think there are times when it is useful to know that someone else is logged in and may possibly be editing the same item.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2009-08-31 10:47:02

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Users Page

thebombsite wrote:

I just think there are times when it is useful to know that someone else is logged in and may possibly be editing the same item.

Excellent idea, Stuart! The user name could serve as a mailto/message link to contact the respective user.

May I suggest expanding this feature to include more tabs, if possible? This year I had a cooperation on a site where I also needed it on forms, pages, and styles.

Edit: Ah, I think I understand you better: you want the users page to be an indicator for logged users, right? Whereas I thought to have a list of logged users on all the mentioned tabs.

Last edited by uli (2009-08-31 11:01:47)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2009-08-31 11:18:13

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Users Page

Well one step at a time here I think Uli. If the Users page could indicate a user being logged in first perhaps just highlighting the user name or user row, then maybe spread out from there if it’s possible, but I can see the benefits of knowing that another user is on the Style page or the Write page or wherever.

Last edited by thebombsite (2009-08-31 11:19:49)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2009-08-31 11:27:00

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: Users Page

thebombsite wrote:

I’m just wondering if it would be possible [..] to display whether a user is currently logged in?

Yes, with a grain of salt. A plugin could easily track the current user, collect all of them in a database table and remove these entries either based on a timeout elapsing after the user’s last action or the logout event (the blur caused by the timeout being the grain of salt).

Offline

#7 2009-08-31 12:25:23

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Users Page

OK. Thanks for that info Robert. I take it that you would not consider this for the base code maybe due to the grain of salt?

So a plug-in. Where’s Bloke and Jukka when you need them? ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#8 2009-08-31 13:16:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,441
Website GitHub

Re: Users Page

thebombsite wrote:

So a plug-in.

I was going to suggest a plugin as well. I was thinking of building this kind of thing into smd_bio since it’s doing all kinds of Admin->Users tab stuff anyway, but maybe a separate plugin is better?

Where’s Bloke and Jukka when you need them? ;)

Bloke: drowning in code… must… take… time to… breathe…


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#9 2009-08-31 13:58:42

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Users Page

Hi.

A few comments and ideas:

  • I’ve noticed yesterday that Textpattern doesn’t save an article if it have been edited/ by user B while I was also editing it, although the warning message (after hitting “Save”) wasn’t very noticeable. I mean, I hit “Save” and thought the article was saved, but as I didn’t see the changes applied, I then noticied the tiny warning/notification message at top.
  • mailto:me@example.com links, are their still widely used? I find them out of date and rather annoying, as most of the time they just open the default mail application (well, yes, that’s what they’re supposed to to, hehe). I would suggest just to unlink it
  • can’t find theEric’s thread for a simple messaging system plugin (not released yet, as ransomed amount wasn’t reached), but it may be the basis for creating some internal notification system of events on the Admin. side. Also, related to the mailto “issue” above: it could be converted just on a link to the mail composer provided by plugin.
  • a chat and/or notification system alla Facebook would be very cool.

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#10 2009-08-31 14:39:43

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Users Page

Bloke wrote:

I was going to suggest a plugin as well. I was thinking of building this kind of thing into smd_bio since it’s doing all kinds of Admin->Users tab stuff anyway, but maybe a separate plugin is better?

A separate plug-in? Well it all depends on how big the bio plug-in is. Your plug-ins tend to be “where’s the zipped version?” size Stef. ;)

If it is already large I would prefer something separate but then I’m no plug-in developer despite what it says over on the left there, so who am I to pick and choose?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#11 2009-08-31 15:11:04

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,441
Website GitHub

Re: Users Page

thebombsite wrote:

it all depends on how big the bio plug-in is. Your plug-ins tend to be “where’s the zipped version?” size Stef. ;)

lol, you know me so well :-)

smd_bio is currently (just) less than 1000 lines, which is pretty short. For me.

I’ll see if it fits in nicely there. If it does all well and good, but if it requires a truckload more code or it has very little commonality I’ll probably separate it out.

fwiw, maniqui’s suggestions are off-the-chart and would probably be better served by TheEric’s new plugin — when the ransom is met — or some other plugin. Dunno yet. Will need scoping out.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#12 2009-08-31 15:27:28

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Users Page

Could it be as simple as what this forum displays?

Online (Guests: 59, Users: 7): Bloke, hcgtv, Hennie, jsoo, jstubbs, kees-b, kus

Offline

#13 2009-08-31 15:39:57

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Users Page

Well let’s see what Stef comes up with. For me I really just need to know if someone else is in there messing in which case I might expect the odd occasion where I save something but it isn’t actually saved because the other person has the same file open. This may simply be a case of highlighting the appropriate user row on the Users page. Whether it could be extended to what Uli was suggesting so that, for example, you get notified on the Write page that someone else is there, or on the Style page or wherever is up to what Stef can do. Going any further than that is moving into theEric’s territory and is way more than I’m requiring.

Even with just the basic first option, if I know someone else is logged in I can either take my chances being forewarned or I can email them and tell them to bugger off!

Last edited by thebombsite (2009-08-31 15:41:31)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#14 2009-11-18 06:42:10

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Users Page

Stuart

Sorry to be so tardy chiming in. I just saw this thread.

There was a plugin sometime back called nok_edit_alarm that might accomplish your goal. I’ve no idea if it still works, or how far it was developed. (I grabbed a copy, but don’t think I tried it.)

I don’t think it is still available elsewhere, so just in case, here it is.

From the plugin’s help:

This is beta, there’s no helping this plugin. Go to Extension > Edit Alarmer to install the database table. Note – there’s no remove yet. If you wan’t uninstall the table, you have to do it manually. When you got the plugin installed and table created, go editing your articles. This plugin keeps a (rather poor) log who opened which article last. If it finds the article edited was just opened, it will popup a notification with jQuery.

# Name: nok_edit_alarm v0.1a (compressed)
# Type: Admin/Client side plugin
# Notifies if someone just started editing the same article.
# Author: Anssi Nokelainen
# URL: 
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

H4sIAAAAAAAAA8VXf28bNxL9Wwb8HSaMDrsCZNmKLDdZyQJyaXIIUKQ91EULNIVA7VLS2qvl
HsmVLKT57veG+0OSk6AH3AEnwJaWHJJvhm/ezMpoOIw+2eg6ErncKDGx0ZB/64e5SlI3l5k0
Gx69iYQs3Vobb4Kn17m1KX3QDyqTaa5yP37VWM1Lk/IIBvjru0hslbGp9mY44GowlH7FMBKJ
srFJC1fPjl9G4oN26TJVltIlWb1ROld0X1pH1knjVEIMLs1X5NaKLIAThtM4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nnfwNtJ4/AdQ8AAA==

fwiw
Mike

Offline

#15 2010-11-17 13:03:27

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Users Page

nok_edit_alarm seems broken at first sight, but you can reanimate it with a tad SQL taken from the plugin’s innards:

create table if not exists nok_edit_alarmer (aid int NOT NULL,time int NOT NULL,author varchar(64) NOT NULL default '');

You apparently don’t need the extension tab then.

Thanks, Mike!


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB