Help > Forum > Topics & Posts > Preventing topics from going to the first unread post

Preventing topics from going to the first unread post

When entering a topic, your forum will automatically put you right where you stopped reading the last time you were in the topic. It remembers the last post you read so that it can automatically show you the first unread post within the topic.

If you would like to prevent that behavior, you can do so by following the instructions below:

  1. Log in to your Website Toolbox account.
  2. Click the Appearance link.
  3. Select the HTML link from the appearance menu.
  4. Paste the following code into the Forum Head Tag HTML Code text box:
    <script>
      window.addEventListener("load", function(){
          if(jQ('a.thread_title, #topics h4 a').length>0){
             jQ('a.thread_title, #topics h4 > a').each(function() {
                var value = jQ(this).attr('href');
                if(value){
                   value = value.replace(/(\?|&)pid=(\d+)/i,'');
                   jQ(this).attr('href',value);
                } 
             });
          }
       });
    </script>
    
  5. Save your changes.


If you still need help, please contact us.