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 ] Group color legend help
Topic Started: Apr 30 2012, 02:11 AM (385 Views)
O Dub-ZNR
Member
[ * ]


Board address: http://w11.zetaboards.com/eclipsersps/index/

Board software: Zetaboards.

Description:



So I've tried searching on how to change this but no one has particularly what I'm looking on changing, What I'd like to do is go from this...

Posted Image


To something along the lines of this...

(I'm mainly just looking on adding the icons to the front of the group as shown in the example below)


Posted Image



I tried just simply adding html code for the icons but it made the legend vanish from my board.. :annoyed:
Edited by O Dub-ZNR, Apr 30 2012, 02:32 AM.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
In the ACP if you edit a group you can also add in a prefix and suffix (as you found) but they don't support HTML, they support BBCode :facepalm: it should work then.
Offline Profile Goto Top
 
O Dub-ZNR
Member
[ * ]
The code I have for my legend is in HTML and also, I do know what your talking about but that doesn't change the appearance in the legend :ermm:
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
O Dub
Apr 30 2012, 02:11 AM
this
You didn't mention you were using a mod, nor that you wanted it editing, nor placed the code of the mod that you wanted editing.

We can't edit a code without the authors permission.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type='text/javascript'>
//Advanced Member Legend by Quozzo
legend = [
[" ","Jrel"],
["Dedicated Members: ","Valdir"],
["Forum Staff: ","Quozzo","Typhus","Gia"]
];
member_text = ""; // Member description text
legend_prepend = "<strong>"; // HTML before group description
legend_append = "</strong>"; // HTML after group description

if(/index/.test(location.href)){
$('#stats_members').hide().before("<td id='legend'></td>");
for(i=0;i<legend.length;i++){
for(j=1;j<legend[i].length;j++){
$('#stats_members a').each(function(){
if($(this).filter('a:contains('+legend[i][j]+')').length){
if(!$('#legend:has("#legend'+i+'")').length){
$('#legend').prepend("<div id='legend"+i+"'>"+legend_prepend+legend[i][0]+legend_append+" </div>");};
$(this).appendTo('#legend'+i);
};
});
};
};
if($('#stats_members:has("a")').length){
$('#legend').append("<div>"+legend_prepend+member_text+legend_append+" </div>");
};
$('#stats_members a').appendTo('#legend div:last');
$('#legend div').find('a:not(:last)').after(", ");
$('#legend div:not(:last)').append("<br /><br />");
};
</script>
It looks like they're using your code, Quozzo.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
Now that i can edit. But the easiest way to get group icons in the legend (and across the board) is by adding an image in the groups prefix using BBCode. It will also display the image even if JS is turned off.
Offline Profile Goto Top
 
O Dub-ZNR
Member
[ * ]
Quozzo
May 2 2012, 02:51 AM
Now that i can edit. But the easiest way to get group icons in the legend (and across the board) is by adding an image in the groups prefix using BBCode. It will also display the image even if JS is turned off.
Oh I see, Well how could I go about doing that? :arr:
I have finally figured it out!
Spoiler: click to toggle
Edited by O Dub-ZNR, May 2 2012, 05:23 PM.
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
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