vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Who Is Replying? (https://vborg.vbsupport.ru/showthread.php?t=318515)

MarkFL 05-01-2015 09:00 PM

Who Is Replying?
 
1 Attachment(s)
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:

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

Quote:

Originally Posted by bosanci28 (Post 2544784)
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

1 Attachment(s)
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

Quote:

Originally Posted by bosanci28 (Post 2544797)
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

1 Attachment(s)
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

Quote:

Originally Posted by MarkFL (Post 2544830)
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

Quote:

Originally Posted by bosanci28 (Post 2544909)
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

Quote:

Originally Posted by friendlymela (Post 2551996)
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

Quote:

Originally Posted by MarkFL (Post 2551998)
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

Quote:

Originally Posted by blah100 (Post 2564425)
@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:

PHP Code:

    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

Quote:

Originally Posted by Alan_SP (Post 2584002)
I checked code, this part:

PHP Code:

    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

1 Attachment(s)
Quote:

Originally Posted by Alan_SP (Post 2584004)
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/attachmen...1&d=1489778467

Quote:

Originally Posted by Alan_SP (Post 2584004)
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).


All times are GMT. The time now is 07:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01198 seconds
  • Memory Usage 1,810KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete