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
Re-Order Joinable Groups
Topic Started: May 27 2012, 09:34 AM (926 Views)
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code Name: Re-Order Joinable Groups

What the code does: Re-orders groups on the Joinable Groups page.

Preview: Before Code - After Code

How to use the code: In the example I re-ordered 6 different groups in alphabetical order. You can add or remove as many moveRow lines as you like.

How to install the code:

Admin CP >> Themes >> Board Template >> Below the Board

Code:
 
<script type="text/javascript">
function moveRow(groupName) {
$('#joinable_groups tbody tr:not(:has(th))').each(function () {
if ($(this).find('td:eq(0)').text() === groupName) {
$(this).appendTo('#joinable_groups tbody');
}
});
}

moveRow('Team A');
moveRow('Team Aqua');
moveRow('Team Fire');
moveRow('Team Light');
moveRow('Team M');
moveRow('Team Z');
</script>


Extra notes: Created as a request.
Online Profile Quote Post Goto Top
 
2wise69
Member Avatar
Member
[ *  * ]
Thanks. I needed this to organize my groups. Much appreciated for this.
Offline Profile Quote Post Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
+1, its useful
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