Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Refresh page

2 Posts
2 Users
0 Reactions
2,401 Views
 uber
(@uber)
New Member
Joined: 9 years ago
Posts: 1
Topic starter  

Hi,

I'd like my page to automatically reload everytime a user posts a new comment or reply. Trying the implement the following code in javascript:

document.location.reload(true);

However i'm unsure where this line should be placed and whether it's the correct implementation.

Thank you!


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4233
 

Hope you familiar with jQuery. you should add reloaded function in wpdiscuz.min.js file. It's currently minimized, you should extend and find this function:

H(document).delegate(".wc_comm_submit","click",function(){
      ....
      
      V(am).done(function(at) {

            ...... your code should be after last comment submitter functions...

      }
      ....
}

   
ReplyQuote
Share:
Scroll to top