Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • InvisionFree and Zetaboards Support
  • [IF] Awards Mod & Prefixes
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Add Reply
[IF] Awards Mod & Prefixes
Topic Started: Jun 26 2009, 08:28 AM (113 Views)
Roswenth Jun 26 2009, 08:28 AM Post #1


Posts:
6
Group:
Member
Member
#1,648
Joined:
Nov 29, 2008
Coding language
HTML/CSS
Hi, we're trying to get Godkillah's awards mod to work, and for the most part it works fine, but one membergroup has a prefixed icon at the beginning, and the mod refuses to work for that group. The prefix is a star - "AMPERSAND#9733".

The person working with it asked me to post for her since she didn't have an account here, but she said:

Quote:
 
Have tried it as is.
Have tried it with just the username.
Have tried it with the code, and added   to cover the space.

Still no dice.


Any suggestions?

Code:
 
/* Gk awards V2
By Godkillah from phantom-designs.net */
var victim=[];n=0
//victim[n++]=["name", "award", "image"]

//Please try and keep the medals nice and neat - follow the examples already done. Check to see someone hasn't already got a badge for that category, before awarding a new one!

//COMMUNITY
victim[n++]=["Luke", "Luke has been awarded a Gold Devoted Member badge for welcoming sixty members, and starting forty topics!", "http://www.rpg-host.org/rpgd/gold/6.gif"]

//SKINNERS
victim[n++]=["Luke", "Luke has been awarded a Silver Skinner badge, for submitting twelve skins!", "http://www.rpg-host.org/rpgd/silver/1.gif"]
victim[n++]=["December, Esq", "December, Esq has been awarded a Silver Skinner badge, for submitting twelve skins!", "http://www.rpg-host.org/rpgd/silver/1.gif"]
victim[n++]=["★ Roswenth", "Roswenth has been awarded a Bronze Skinner badge, for submitting six skins!", "http://www.rpg-host.org/rpgd/bronze/1.gif"]

//REVIEWERS
victim[n++]=["Tammi", "Tammi has been awarded a Bronze Reviewer badge, for reviewing ten forums!", "http://www.rpg-host.org/rpgd/bronze/2.gif"]

//CODERS
victim[n++]=["★ Roswenth", "Roswenth has been awarded a Bronze Coder badge, for submitting five coding documentations!", "http://www.rpg-host.org/rpgd/bronze/3.gif"]

//WRITERS

//RESOURCES

//GRAPHICS

//DOCUMENTATIONS

//SUPPORTERS
victim[n++]=["December, Esq", "December, Esq has been awarded a Bronze Supporter badge, for reviewing six sites and helping in the Help Me! forum!", "http://www.rpg-host.org/rpgd/bronze/8.gif"]


//CHALLENGES
victim[n++]=["December, Esq", "Has been awarded the Writer's Medal, for winning a writing challenge!", "http://www.rpg-host.org/rpgd/gold/9.gif"]


if(location.href.match(/showtopic=/i)){a=document.getElementsByTagName("span");for(i=0;i<a.length;i++){if(a[i].innerHTML.match(/Joined:(.*)/i)){teh=RegExp.$1;name=a[i].parentNode.parentNode.parentNode.getElementsByTagName("a")[0].innerHTML.toLowerCase();
//regexp by ken
while(name.match(/>(?!<)(.+?)<\//i)){name=RegExp.$1;}
//regexp by ken
awards="";for(blah in victim){if(victim[blah][0].toLowerCase()==name){awards+="<a href='javascript:void(0)' onclick='alert(\""+victim[blah][1]+"\")'><img src='"+victim[blah][2]+"'></a>";}}if(awards){awards="<b>Awards</b><div id='row1'>"+awards+"</div>";}else{awards="Awards: None yet";}a[i].innerHTML+="<br>"+awards;}}}if(location.href.match(/showuser=/i)){name=document.getElementById("profilename").innerHTML.toLowerCase();awards="";for(blah in victim){if(victim[blah][0].toLowerCase()==name){awards+="<a href='javascript:void(0)' onclick='alert(\""+victim[blah][1]+"\")'><img src='"+victim[blah][2]+"'></a>";}}if(awards==""){awards="<i>No Information</i>";}
//Add section to profile by slayer766
a=document.getElementsByTagName("TABLE");for (i=0;i<a.length;i++){if(a[i].align == "center" && a[i].cellPadding == 0 && a[i].cellSpacing == 2 && a[i].width == "100%"){b = '<table cellspacing="1" cellpadding="6" width="100%">';b += '<tr><td align="center" colspan="2" class="maintitle">Recognition</td></tr><tr><td class="row3" width="30%" valign="top"><b>Recognition</b></td><td align="left" width="70%" class="row1"><i>'+awards+'</i></td></tr></table>';a[i].insertRow(-1);a[i].rows[2].insertCell(-1);a[i].rows[2].cells[0].innerHTML = b;a[i].rows[2].cells[0].vAlign= "top";a[i].rows[2].cells[0].className= "plainborder";}}
//Add section to profile by slayer766
}
Offline Profile Quote Post Goto Top
 
ElliKat Jul 1 2009, 07:02 AM Post #2


Posts:
1
Group:
Member
Member
#3,275
Joined:
Jul 1, 2009
Coding language
HTML/CSS
Is there any solution to this problem? Have tried everything I can think of, but absolutely nothing! Very frustrating, and a shame if it won't work at all - cause it's an amazing code. :'(
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · InvisionFree and Zetaboards Support · Next Topic »
Add Reply

Track Topic · E-mail Topic Time: 5:20 PM Sep 3
Hosted for free by ZetaBoards