Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum   wpForo Support Forum

How to modify Live Update "Update comment list every" from 10 seconds to something different.  

  RSS

bgreenlee1
(@bgreenlee1)
Active Member
Joined: 3 years ago
Posts: 10
12/12/2017 2:33 am  

Hi I'm wondering in which file when I change from Comments > wpdiscus > settings the live update drop down menu to ten seconds from say 30 seconds this is stored. I recently installed wpdiscuz and it is working great except the 10 second lag for comment list updates is too slow. I would like to know where I can go modify this to maybe 1 second and just see how much it affects my server performance. Thanks in advance!


Quote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3245
12/12/2017 3:23 am  

Hi bgreenlee1,

You can change it in /wpdiscuz/options/options-layouts/settings-live-update.php file, line 48.


ReplyQuote
bgreenlee1
(@bgreenlee1)
Active Member
Joined: 3 years ago
Posts: 10
12/12/2017 8:14 pm  

Hi Tom,

Thanks for the info. One more question. Instead of modifying it to check every second would there be a way to just have the list updated when a new comment is posted?

 


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3245
13/12/2017 1:54 am  

There is no way to detect a new comment without checking it per x seconds.


ReplyQuote
bgreenlee1
(@bgreenlee1)
Active Member
Joined: 3 years ago
Posts: 10
13/12/2017 2:24 am  

Ok. Is there at least a way I can hide the status bar you see at the top of the page each time it checks for a new comment?


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3245
13/12/2017 1:43 pm  

Could you please leave your website URL? The status bar should not be there on each request. It seems you got some conflict.


ReplyQuote
bgreenlee1
(@bgreenlee1)
Active Member
Joined: 3 years ago
Posts: 10
13/12/2017 7:50 pm  

Tom,

I currently have it set up to require a user to login to reach a comment page. The url is fantroll.com and go to login page once there. Use credentials below to login:

username: Test_account

password: Testing1

Once successfully logged in you will see new top menu option of Main Chat. Click on it and then you will be taken to the chat page. You will see in the top right of the page a status bar every time it updates the comment list.

 

 


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3245
14/12/2017 8:35 pm  

We just released wpDiscuz 4.1.4 version. Please update, delete all caches and do Ctrl+F5 on front-end. It should fix the issue you have.


ReplyQuote
bgreenlee1
(@bgreenlee1)
Active Member
Joined: 3 years ago
Posts: 10
15/12/2017 1:46 am  

I did that but still see a dot going across at the top. It doesn't look like the previous status bar but there is still something there moving each time it updates.


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3245
15/12/2017 10:59 pm  

Ok, we found the problem. Please wait for the next version, it comes with fixed loading bar. We're releasing next version very soon.


ReplyQuote
bgreenlee1
(@bgreenlee1)
Active Member
Joined: 3 years ago
Posts: 10
19/12/2017 1:32 am  

Thanks Tom! One other question I have. When a user posts a comment I see the loading bar at the top like when it updates the comment list. However it sometimes takes 3 to 5 seconds for the comment to post to the page. Is this an issue on my hosting or could you tell me which php files handle the comment system? I also was hoping to hide the notify follow up comments option as well and figured if i knew which file(s) manage the comment box I could do that there. 


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3245
20/12/2017 8:34 pm  

Hi bgreenlee1

When a user posts a comment I see the loading bar at the top like when it updates the comment list. However it sometimes takes 3 to 5 seconds for the comment to post to the page. Is this an issue on my hosting or could you tell me which php files handle the comment system?

This depends on dozens of factors. Hosting Service, Browser, MySQL Server, Inet Speed... wpDiscuz is relative the fastest comment system, all AJAX requests handles by WordPress. Besides of the factors mentioned above this maybe WP overloaded problem. You may have many plugins installed. All plugins are loaded in WordPress AJAX request process. So it also affects the speed.

I also was hoping to hide the notify follow up comments option as well and figured if i knew which file(s) manage the comment box I could do that there.

Please never edit wpDiscuz files, only template files are allowed to copy and change in WordPress theme directory. You can manage Subscription options in Dashboard > Comments > Settings > Subscriptions admin page:

wpDiscuz Manage Subscription Options

ReplyQuote
bgreenlee1
(@bgreenlee1)
Active Member
Joined: 3 years ago
Posts: 10
03/01/2018 8:38 pm  

Is there any technical documentation you can provide me of how wpdiscuz runs on top of wordpress native comments? Like which file handles the comment form? What file is the comment time stamp in? Information like this.


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3245
04/01/2018 1:17 am  

I'm sorry but there is no any technical documentation. wpDiscuz just use <?php comments_template() ?>template functions and hooks in this function and replace the native comment functions with wpDiscuz functions.

The comment form is handled by custom comment form functions, you can manage those in Dashboard > Comments > Forms admin page,

The comment list can be customized using wpDiscuz comments walker file. More info here: http://wpdiscuz.com/docs/wpdiscuz-documentation/custom-template-and-style/


ReplyQuote
bgreenlee1
(@bgreenlee1)
Active Member
Joined: 3 years ago
Posts: 10
05/01/2018 12:55 am  

Thanks for the response. One last question I have. The timestamp on a comment doesn't auto update. You have to refresh the page for it to update. I have the edit comment setting set to be able to edit it after 15 minutes of it being posted. Is there a way that when the live update checks for new comments it can also update the time stamp of the comment? If not the live update then another way to get the the time stamp to auto update without refreshing the page?


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3245
05/01/2018 2:14 pm  

I'm sorry but we have no solution for live date updating. The Live Update feature is designed to display new comments without refresh but it's not control all dates and update those.


ReplyQuote
Share: