Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-09 20:11:09

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

[request] users online

Is anyone willing to create a plugin like the wordpress plugin created by Naatan.com? It would be neat to show the user names when they are online.


<txp:Ruhh />

Offline

#2 2008-04-09 23:28:25

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: [request] users online

You can try the <txp:ign_usr_online /> tag from the ign_password_protect plugin. I think you can do what you want with that.


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#3 2008-04-10 00:01:42

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [request] users online

I guess that tag is for only registered users such as the publisher. I would want a tag that is for commentators.


<txp:Ruhh />

Offline

#4 2008-04-10 05:31:39

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: [request] users online

If you uses something like <txp:php>echo pcs('name');</txp:php> the commentator’s name will be shown on the screen but it would be visible only to the ‘owner’ of the comment.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2008-04-10 05:44:49

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [request] users online

Hm, that would be useful for some kind of welcome back message. Although, how would I go about putting an if and else conditionals on that so if a visitor haven’t commented, the message would say Welcome back, Guest!…?

And of course still not something I am looking for as mentioned in my first post here.

Last edited by Ruhh (2008-04-10 05:53:53)


<txp:Ruhh />

Offline

#6 2008-04-10 08:03:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: [request] users online

Ruhh wrote:

It would be neat to show the user names when they are online… ign_usr_online… I guess that tag is for only registered users such as the publisher. I would want a tag that is for commentators.

Have I missed something here? Surely in order to be “online” you have to be “logged in” somewhere? I.e. you have to have an account in the back-end.

Or do you mean you want to list anyone viewing a page on your site who has commented previously? In which case, how would you know who it is? Their IP address is unreliable and you can’t rely on the state of the ‘remember me’ cookie (and, as colak pointed out, it’s only visible to that user anyway, since that’s how cookies are intended).

I’m struggling to understand what you want. Please enlighten me :-) It seems Nataan.com’s plugin splits users into categories including a group called ‘commentators’. I’m not sure TXP has that concept, but I could be wrong.

Last edited by Bloke (2008-04-10 08:04:38)


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

Txp Builders – finely-crafted code, design and Txp

Offline

#7 2008-04-10 09:02:30

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: [request] users online

Ruhh,

My suggestion is to forget that idea unless you expect 1000s of visitors. Even with the txp forum which has well over 10000 members what I see how is “Online (Guests: 50, Users: 6):blah blah”. A normal site would have one or max 2 whereas a reasonably successful one would have about 5 visiting it at the same time.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2008-04-10 10:24:42

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [request] users online

Depends on the time window you use for counting visiting users. If you count the unique IPnrs in the logfiles for the last 24 hours, you’ll get a higher number. Unless you go the cookie route, it’s an estimation anyway. Some visitors leave the website after a few seconds, some read a single page for over an hour.

Offline

#9 2008-04-10 16:44:41

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [request] users online

Bloke,

Ok, what I want:
The public can see the commentators that are online. Including the number of non-commentators. Just like the plugin created by Naatan that is used for Wordpress. I guess by using the ign plugin, the commentators have to be registered which I would not want that.


<txp:Ruhh />

Offline

Board footer

Powered by FluxBB