PDA

View Full Version : Show Thread Enhancements - Who Is Replying?


MarkFL
05-01-2015, 09:00 PM
This simple add-on will show who is replying to a thread when you view the "Thread Information" block to see who is browsing a thread. On a site where help is given to users, this can potentially save time for those who might decide to post help, only to discover they have been beaten to the punch by someone else.

Updates:

Version 1.1:


Added setting to set which usergroups can view who is replying.


Version 1.2:


Minimized the number of queries involved.
Now shows who is editing a post as well.


Version 1.3:


Text added to active users now phrased.


Installation:

In AdminCP go to Plugins & Products ► Manage Products ► Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

You MUST set your settings to enable the mod.
Each setting has an explanation of its use.

Support for this product can be found here:


MHB - Who Is Replying? (http://mathhelpboards.com/vbulletin-products-61/who-replying-22028.html)
TAZ - Who Is Replying? (https://theadminzone.com/threads/who-is-replying.145206/)

Manoel J?nior
05-03-2015, 01:54 PM
Thanks! Install...

bosanci28
05-03-2015, 08:58 PM
Thanks for this mod!

Now how do i enable the "tread information" tab? like you have in the second picture?

Thanks.

MarkFL
05-03-2015, 09:11 PM
Thanks for this mod!

Now how do i enable the "tread information" tab? like you have in the second picture?

Thanks.

This can be enabled by following:

AdminCP ► Thread Display Options (showthread) ► Show Users Browsing Threads

And setting this to one of the following options:

Yes, Alphabetical to all visitors - This option will show an alphabetized list of users to guests and members.
Yes, Random to all visitors - This option will show a random order list of users to guests and members.
Yes, Alphabetical to members only - This option will show an alphabetized list of users to members only.
Yes, Random to members only - This option will show a random order list of users to members only.

bosanci28
05-03-2015, 09:19 PM
Thanks! Go it.

Now, how it will show replying next to the user name?

Is this like instant when someone starts typing ? Does it work in quick reply or advance reply only?

I don't see it to show on my forum... when someone is replying.

Thanks,

MarkFL
05-03-2015, 11:43 PM
Sorry, it's not a dynamic display...when you enter a thread, if someone is composing a reply at that moment using the advanced editor (that is, they have loaded the 'newreply' script), then you will see that they are replying. It works much like the "Who's Online" page with regards to obtaining a user's location, but it does not auto update.

bosanci28
05-04-2015, 12:54 AM
I see,
Anyway, i try with few id's to test it out and i never got that "replying" to show.

Thanks.

MarkFL
05-04-2015, 02:40 AM
I see,
Anyway, i try with few id's to test it out and i never got that "replying" to show.

Thanks.

Did you enable the product?

bosanci28
05-04-2015, 10:56 AM
Yes, i did.

I am using vb 4.2.2 PL4

Thanks,

MarkFL
05-04-2015, 01:06 PM
Can you describe to me the steps you are taking to test the product?

hoangserip
05-04-2015, 03:48 PM
Thanks ! Install :)

bosanci28
05-04-2015, 11:58 PM
Can you describe to me the steps you are taking to test the product?
Hello,

I do a new tread with a regular user , then i go and i try to post from within the advanced side with a admin account user id, so when i start typing few words , i go in the regular user side and refresh the page to see if it say typing ... that's how i do it. I even try from different ip's to make sure maybe if you do it from same ip will not say replying! but still don't see that "replying" next to the user id...interesting.

Thanks.

bosanci28
05-05-2015, 12:11 AM
Hmm, this is weird ! not sure if this suppose to work like this!

So i create a new tread as regular user and then i reply with other user id, then if i reply with the user id that i have created the new tread i see "replying" by this id that i have created the tread, but the other user id's don't see the "replying" ...Hmmm.

MarkFL
05-05-2015, 12:26 AM
Users who are already browsing the thread will not see a user as replying unless that refresh the page or navigate away from the thread and then back.

You will only see a user who is replying if they are replying at the time you load the page...the display does not dynamically change...just as it does not change when a user leaves a thread...you will still see that user as browsing the thread until you reload the page.

bosanci28
05-05-2015, 12:32 AM
Ok, Got it! Thank you for your support.

MarkFL
05-05-2015, 12:37 AM
Ok, Got it! Thank you for your support.

This simple add-on is only meant to be a supplement to the "Thread Information" block and does not change the behavior of the block, that is, it does not make the block dynamic...it is still a static display. :D

friendlymela
08-03-2015, 03:17 AM
I can already watch it through "Who's Online" ..

MarkFL
08-03-2015, 03:26 AM
I can already watch it through "Who's Online" ..

True...but this was a request from one of my global moderators to see who, if anyone, is replying to a thread before he decides to take the time to post mathematics help, which obviously takes more time and effort than posting a reply on non-help forums. This allows our math helpers to quickly see that someone is already "on the job" on the spot without having to visit another page :)

friendlymela
08-03-2015, 04:27 AM
True...but this was a request from one of my global moderators to see who, if anyone, is replying to a thread before he decides to take the time to post mathematics help, which obviously takes more time and effort than posting a reply on non-help forums. This allows our math helpers to quickly see that someone is already "on the job" on the spot without having to visit another page :)

Hmm i will try it thanks

blah100
02-08-2016, 01:44 AM
@MarkFL, any idea how to make only viewable to certain usergroups? I would like this to be seen by staff members only.

MarkFL
02-08-2016, 01:56 AM
@MarkFL, any idea how to make only viewable to certain usergroups? I would like this to be seen by staff members only.

I will add a setting to allow restricting to chosen usergroups. :)

MarkFL
02-09-2016, 07:17 PM
Update - Version 1.1:


Added setting to set which usergroups can view who is replying.

john7911
10-14-2016, 10:17 AM
Thanks for this mod :)

MarkFL
03-09-2017, 07:26 PM
Update - Version 1.2:


Minimized the number of queries involved.
Now shows who is editing a post as well.

Alan_SP
03-17-2017, 06:03 PM
I checked code, this part:

if (strpos($location['location'],'newreply') !== false)
{
$activity = 'Replying';
}
elseif (strpos($location['location'],'editpost') !== false)
{
$activity = 'Editing Post';

Can this be made into translatable phrases, my forum isn't in English. At the moment I hardcoded it in my language, but I would prefer it translatable.

MarkFL
03-17-2017, 06:16 PM
I checked code, this part:

if (strpos($location['location'],'newreply') !== false)
{
$activity = 'Replying';
}
elseif (strpos($location['location'],'editpost') !== false)
{
$activity = 'Editing Post';

Can this be made into translatable phrases, my forum isn't in English. At the moment I hardcoded it in my language, but I would prefer it translatable.

Sorry about that oversight...

Update - Version 1.3:


Text added to active users now phrased.

Alan_SP
03-17-2017, 06:19 PM
Also, there are two problems:

1) When I select usergroups and save, afterwards I don't see which usergroups I saved. It would be much better if we have some feedback for which usergroups mod is selected.

I see it works, but this kind of feedback is very useful in my opinion.

2) Mod only reacts if advanced editor is used, either for replying or editing post. Is it possible that mod reacts also to quick reply? I know this probably depends on vB, but on my forum people usually use quick reply for posting and editing.

EDIT: you're great man. Fast as a lightning. :up:

EDIT2: Now that I installed v1.3, I see usergroups selected. Don't know what happend. Now it is fine.

MarkFL
03-17-2017, 06:26 PM
Also, there are two problems:

1) When I select usergroups and save, afterwards I don't see which usergroups I saved. It would be much better if we have some feedback for which usergroups mod is selected.

I see it works, but this kind of feedback is very useful in my opinion.

This is what I see, which tells me which usergroups are selected:

https://vborg.vbsupport.ru/attachment.php?attachmentid=156022&stc=1&d=1489778467

2) Mod only reacts if advanced editor is used, either for replying or editing post. Is it possible that mod reacts also to quick reply? I know this probably depends on vB, but on my forum people usually use quick reply for posting and editing.

Yes, this won't work to let you know who happens to be typing something into the quick editor...the user has to be located on the "newreply" or "editpost" scripts. When using the quick editor, a user's location does not reflect this. :)

Alan_SP
03-17-2017, 06:45 PM
Yes, for some reason I didn't see selected usergroups, but now I see them, after I updated to v1.3, as I mentioned in edit2 in my previous post (you were writing your post at the time).