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:
Locked Topic
[ C ] Top 10 Overall Posters Change
Topic Started: Jul 29 2012, 05:02 PM (406 Views)
Deleted User
Deleted User

Board Address: http://thebeeandbarb.com/index/
Board Software: ZetaBoards
Description:

I'd like a code to make the top 10 overall posters change to top 5 overall instead. This will also need to be reflected at the bottom of the site where the link to the list is located.

Thanks!
Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Admin CP → Themes → Board Template (Below the Board)
Code:
 
if ('#members_list_full tbody th:contains(Member Name)') {
$('#member_list_full tbody tr:nth-child(n + 7)').remove();
}

if (location.href.match("/index")) {
$('#stats td.c_foot a:contains(Overall)').text('Top 5 Overall Posters');
}
Offline Profile Goto Top
 
Deleted User
Deleted User

Works fine! Cheers!

Only thing is, the page title and URL still points to top 10 - can this be changed also?
Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

You cannot edit the URL, but to change the page title and the text in the navigation, replace the above code I gave you with the following:
Code:
 
if ('#members_list_full tbody th:contains(Member Name)') {
$('#member_list_full tbody tr:nth-child(n + 7)').remove();
$('#nav span:contains(Ten)').html('Top Five Posters');
$('head title').html('Top Five Posters');
}

if (location.href.match("/index")) {
$('#stats td.c_foot a:contains(Overall)').html('Top 5 Overall Posters');
}
Offline Profile Goto Top
 
Deleted User
Deleted User

Excellent! thanks buddy

EDIT: Just realised, each page now has the title Top Five Posters. Can this be fixed so it's just the one page please?

Cheers!
Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
$('#stats td.c_foot a:contains(Top 10 Overall Posters)').text('Top 5 Overall Posters');

if (location.href.indexOf('/?topten') !== -1) {
$('#nav span, #member_list_full thead th, #member_list_full div.h2center, title').text('Top Five Posters');
$('#member_list_full tbody tr:gt(5)').remove();
}
</script>
Try that instead.
Offline Profile Goto Top
 
Deleted User
Deleted User

Works great! Thanks :)
Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic