SMF For Free Support Forum

SMF For Free Support => Code Requests => Topic started by: 4markie on May 02, 2009, 02:19:13 pm



Title: [Request] RuneScape Crowns V2 (Read for more info)
Post by: 4markie on May 02, 2009, 02:19:13 pm
This should be very simple to make, so don't worry. ;)

Well the purpose of the RuneScape crowns code is to add a crown next to the admin's name indicating that they are a staff member right?

When you upgrade a member to a mod or admin, the crown will not be added automaticly, you must edit your headers and footers to add a crown next to their name (at least with the code I have).

Creating a new version of the code will help prevent such fuss, having to edit your headers and footers every time you upgrade a member to an admin.

I would really appreciate a new version of this code that only makes a certain member group have a crown, not a version that adds a crown depending on name.

Here is the code I am currently using:
Code:
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["4markie","4markie","FFFF49","<img src='http://i272.photobucket.com/albums/jj168/Roboticopperatingbuddy/crown_gold.gif' />"];
vfour[vfour.length] = ["UnknownToaster","UnknownToaster","FFFF49","<img src='http://i272.photobucket.com/albums/jj168/Roboticopperatingbuddy/crown_gold.gif' />"];
vfour[vfour.length] = ["Code Slasher","Code Slasher","FFFF49","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif' />"];


for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>

Your time would be greatly appreciated, even if this is not possible to make
-Marc
http://mars.smfforfree.com/


Title: Re: [Request] RuneScape Crowns V2 (Read for more info)
Post by: Agent Moose on May 03, 2009, 09:12:14 pm
Your code has been completed!

Click here to get your code! (http://www.smfsupport.com/support/smf_for_free_codes_and_support/code_membergroup_image-t26655.0.html)


Title: Re: [Request] RuneScape Crowns V2 (Read for more info)
Post by: 4markie on May 06, 2009, 06:22:54 pm
Your code has been completed!

Click here to get your code! (http://www.smfsupport.com/support/smf_for_free_codes_and_support/code_membergroup_image-t26655.0.html)

OMG THANK YOU AGENT MOOSE YOU ROCK!!!!!!!!!!  ;D


Title: Re: [Request] RuneScape Crowns V2 (Read for more info)
Post by: DaRkNeS on June 25, 2009, 01:45:24 pm
id use codes like that but im too lazy to type all that shit in :-\


Title: Re: [Request] RuneScape Crowns V2 (Read for more info)
Post by: 4markie on July 28, 2009, 12:32:40 pm
id use codes like that but im too lazy to type all that shit in :-\

You just copy and paste it ;)