Author |
Topic |
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 20 February 2011 : 07:26:07
|
Is there a mod available that shows which users are reading a topic?
I've seen it on some php forums such as:
quote: 2 User(s) are reading this topic 2 members, 0 guests, 0 anonymous users webbo,Carefree
I've searched but can't find one |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 20 February 2011 : 11:14:09
|
Not currently a part of Active Users, but that'd be where to start. |
|
|
kyodai
New Member
Azerbaijan
74 Posts |
Posted - 20 February 2011 : 11:36:51
|
Hmmm, i thought about it and the most reasonable way to make it would probably be storing each view with the member ID, a timestamp and the topicID in a seperate table. Then do a simple timestamp based query like in my "Most viewed of the past 7 days" thingies. However i think it would produce quite a bit of additional DB traffic and space. YOu'd need to purge the list by timestamp at least once a day for a very active forum unless you plan spending much space on that table. |
Edited by - kyodai on 20 February 2011 11:37:17 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 20 February 2011 : 18:43:45
|
Way too much burden that way. I don't know if I'd even implement it, even if limited to a single call when you start reading a topic. I can see a single call upon entering a forum and displaying which members were in there, but nothing further. |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 21 February 2011 : 10:57:09
|
There is a MOD out there, but it's been ages since I last stumbled across it.
If you were planning on reverse-engineering the MOD, instead of storing the data in the database, you might want to look at using something like application variables or some other similar option (can't think of exactly what, still a little fuzzy after last week's bout with the flu). |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 04 March 2011 : 16:02:11
|
If you still want it at topic level, here's what you do:
Prerequisite: install active users mod
"topic.asp"
|
|
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 04 March 2011 : 18:00:34
|
Excellent Craig
I bet you can't get it to show the 'Guests' count as well reading the topic |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 04 March 2011 : 18:06:40
|
lol - How much? Replace the inserted lines above with these:
|
Edited by - Carefree on 04 March 2011 18:21:56 |
|
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 04 March 2011 : 18:08:58
|
$20 to Snitz if you can match IP Boards ....
xyz User(s) are reading this topic x members, y guests, z anonymous users
|
Edited by - Webbo on 04 March 2011 18:09:27 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 04 March 2011 : 18:52:00
|
quote: Originally posted by Webbo
$20 to Snitz if you can match IP Boards ....
xyz User(s) are reading this topic x members, y guests, z anonymous users
Did you want the quantity of members or their names?
Here's with user names:
Here's with just numbers:
|
Edited by - Carefree on 04 March 2011 19:38:54 |
|
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 05 March 2011 : 02:38:37
|
That's just showing off
Donation made:
Paypal You just made a payment of$20.00 Paid to richard(a)forum.snitz.com Transaction ID for this payment is: 6J247917K3235731P.
Keep up the good work |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 05 March 2011 : 12:00:29
|
Thanks for the support, Webbo. Glad I could help. |
|
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 05 March 2011 : 18:33:53
|
It's a pleasure working with you Craig
Here's my play on the above (with user names)
Find the 4th instance of: if maxpages > 1 then and above it add the following:
_____________________________________________________________________
_____________________________________________________________________
This will format the wording correctly based upon the counts and present it in a table below the options at the bottom of the topic.
Only one thing left to do to get perfection - a link to the member's profile if the member name is listed..... - Added, Thanks Carefree |
Edited by - Webbo on 06 March 2011 03:30:04 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 05 March 2011 : 22:12:33
|
Here's one with profile links. I think having it report 0 for anon & guests looks ok. Better that than membername, (and nothing after).
|
|
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 06 March 2011 : 03:35:58
|
Profile links works well
I've amended my code above. Personally I prefer it without displaying 0 anon and 0 guests but there's two options of the same theme to chose from
Do you want to package it and add it to SnitzBitz Craig ?
|
|
|
Topic |
|