We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Remove Forum From Active Topics List
Topic Started: Jul 4 2012, 07:02 PM (1,092 Views)
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code Name: Remove Forum From Active Topics List

What the code does: This code will allow you to remove topics from the active topics list from a selected forum. Preview #1, Preview #2

How to use the code: Install as instructed, replace FORUM_NAME with the exact name of the forum you wish to remove from the active topics list. You can repeat that whole line to remove another forum from the results.

How to install the code:

Admin CP >> Themes >> Board Template >> Below the Board
Code:
 
<script type="text/javascript">
function removeTopic(forumName) {
$('#search_results_topics + table.forums tr[class*="row"]').each(function () {
if ($(this).find('td:eq(3)').text() === forumName) $(this).remove();
});
}

removeTopic('FORUM_NAME');
</script>
Edited by Cory, Oct 29 2016, 01:16 AM.
Offline Profile Quote Post Goto Top
 
Chelonian
Member
[ *  *  * ]
Do you have to repeat the whole code per board or just the line with forum name in? Also how do we stop them showing in the trending topics thing you did?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Just the line.

About the trending topics, I replied to that topic.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply