Help > Forum > Users > Changing the default members list page

Changing the default members list page

When viewing the members list, the Top Posters page is shown by default. If you'd like to show the other pages (i.e: Most Reputed, New or All) by default, please follow the instructions below.

  1. Log in to your Website Toolbox account.
  2. Click the Integrate link in the main menu.
  3. Click the HTML link.
  4. Insert the following code into the Forum Head Tag HTML Code textbox:

    <script>
    window.addEventListener("DOMContentLoaded", function(){		
            if(jQ('#members_list_show').length) {
                var memberpageURL = '/register/members';
                var openList = 'Page Name';
                if(openList == 'Most Reputed') {
                    memberpageURL = '/register/members?sort=reputation&reverse=true&period=month';
                } else if(openList == 'New') {
                    memberpageURL = '/register/members?sort=joindate&reverse=true';
                } else if(openList == 'All') {
                    memberpageURL = '/register/members?sort=user&from=allmembers';
                }
                jQ('#members_list_show a').attr({'href':memberpageURL});
            }		
    	});
    </script>
    
  5. Replace the text Page Name in the above code with the page name (i.e: Most Reputed, New or All) that you want to set by default.
  6. Save the changes.
  7. Reload the forum and visit the Members tab under the forum navigation menu bar to see the change.


If you still need help, please contact us.