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
  • Pages:
  • 1
  • 2
[ C ] Member Legend
Topic Started: Jul 18 2011, 09:43 AM (1,073 Views)
Skrew
Member
[ *  * ]
Board Address: http://pfb-rs.co.uk/index/
Board Software: ZetaBoards
Description: It disappears whenever there isn't any members online.
Posted Image

As opposed to this:
Posted Image

Anyway i could make it stay even when no one is online? thanks in advance.
Offline Profile Goto Top
 
Replies:
wilders
Member
[ *  * ]
Below the board ;

<script type='text/javascript'>
/* <![CDATA[ */
// Made by Ward Muylaert
// Rank name - Rank colour - Rank ID
var stats_legend_ranks = [
[ "test", "red", "32952" ]
, [ "test1", "yellow", "32955" ]
, [ "test2", "black", "32955" ]
];
var stats_legend = $("#stats_legend");
if (stats_legend.length > 0) {
var stats_legend_baseurl = "http://yourforum.com/members/?search_type=start&name=&sort=name&order=a&group=";
var stats_legend_endarray = new Array();
for (var i = 0; i < stats_legend_ranks.length; i++) {
stats_legend_endarray = '<a href="' + stats_legend_baseurl + stats_legend_ranks[2] + '"><span style="color: ' + stats_legend_ranks[1] + ';">' + stats_legend_ranks[0] + '</span></a>';
}
stats_legend.html(stats_legend_endarray.join(" · "));
}
// ]]>
</script>


You mean this ?
Edited by wilders, Jul 19 2011, 06:13 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
$("#stats tr:eq(1)").after("<tr><td id='stats_legend' colspan='2'></td></tr>");
$("tr:has(#stats_legend)").insertAfter("tr:has(#stats_members)");
$("#stats td.c_mark:eq(0)").attr("rowspan", "2");

function addLegend(color, weight, group) {
$("#stats_legend").append("<span style='color: " + color + "; font-weight: " + weight + "; padding: 0 5px'>" + group + "</span>");
}

addLegend("#CC0088", "700", "Leader");
addLegend("#57E964", "700", "Pk Leader");
addLegend("#FFDD77", "700", "Mentor");
addLegend("#0174DF", "700", "Oldschool");
addLegend("#FF00FF", "700", "Member");
addLegend("#80A0FF", "700", "Trial");
addLegend("#000", "700", "Retired");
addLegend("#FE0", "700", "Special Guest");
addLegend("#00FFFF", "700", "Forum User");
addLegend("#FDEEF4", "700", "Forum Member");

$("#stats_legend span:not(:last)").after("|");
</script>
Try that instead.
Offline Profile Goto Top
 
Skrew
Member
[ *  * ]
Thanks, perfect.
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
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
  • Pages:
  • 1
  • 2