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
Active groups member legend; By godkillah
Topic Started: Jan 23 2010, 01:00 AM (396 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: godkillah
Active groups member legend
 
well this is some sort of automated member legend,
you dont have to add in colors and groupnames,
they get all information they need from tags around the name of members of the group

go to manage usergroups and add in the prefix something like <span gname='Admin' style='color:red'>
and in the suffix something like </span>

this will add Admin (red text) to the member legend when theres an admin online

WARNING: the gname='groupname' must be in the first tag around the name of the groups members in order to work!

PREVIEW: http://img250.imageshack.us/img250/6983/ac...erlegenddy6.png

footers
 
<script>
/* Active Groups Legend (public version),
By Godkillah of:
z3.invisionfree.com/UG_Net & phantom-designs.net */
var groups=[];a=document.getElementsByTagName("td");
for(i=0;i<a.length;i++){if(a.innerHTML.match(/Show detailed list by:/i) && a.className=="row4" && a.width=='95%'){
aa=a.getElementsByTagName("div")[0].getElementsByTagName("a");
for(ii=0;ii<aa.length;ii++){if(aa[ii].firstChild.getAttribute("gname")!=null){
groups[aa[ii].firstChild.getAttribute("gname")]=aa[ii].innerHTML;name=aa[ii].innerHTML;
while(name.match(/>(?!<)(.+?)<\//i)){name=RegExp.$1;}
groups[aa[ii].firstChild.getAttribute("gname")]=groups[aa[ii].firstChild.getAttribute("gname")].split(name)[0]+aa[ii].firstChild.getAttribute("gname")+groups[aa[ii].firstChild.getAttribute("gname")].split(name)[1]
}}a.innerHTML=a.innerHTML.replace("Show detailed list by:","Active groups Legend: <span id='TehLegend' onclick='location.href=\"http://z3.invisionfree.com/UG_Net/index.php?act=idx\"'>[ None ]</span><hr>Show detailed list by:");t=0;
for(blah in groups){if(t==0){document.getElementById("TehLegend").innerHTML="";t++;}
document.getElementById("TehLegend").innerHTML+="["+groups[blah]+"] ";}}}
</script>


it whas originally made as a custom code for the board of a friend of me, (z3.invisionfree.com/UG_Net/index.php)
as i liked it pretty much we came up with the idea to make this public version of it,
they're pretty much the same though :)

enjoy
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply