|
Fix the N-point code, get N-points!
|
|
Topic Started: May 12 2006, 09:53 PM (326 Views)
|
Krushrpants
|
May 12 2006, 09:53 PM
Post #1
|
|
- Posts:
- 7,463
- Group:
- Admin
- Member
- #34
- Joined:
- June 2, 2005
|
Well... as you have probably noticed... the N-point code hasnt been working for quite a while now O_o And we dont know how to fix it. It all started when we decided to put the members in alphabetical order to make it easier... but since we did that, it isnt working, and we cannot find anything wrong with the code that would make it not work. If you can find out what is wrong with it and fix it... you will get like 25 n-points... we're desperate
- Code:
-
<script type="text/javascript"> // Money code // By Gornakle of InvisionFree.com
sign = '' name = 'N-Points' PerPost = 0 default_amount =0
MID=[] MID["Bastinian"]="70" MID["BOOSTA"]="0" MID["Chao Luver"]="159" MID["chuggaboo"]="55" MID["Coolman75"]="30" MID["CrimsonEXE"]="50" MID["DARTH ANDY"]="6" MID["Devil Dude"]="40" MID["DrakeSP"]="30" MID["drizztmainsword"]="40" MID["DS_MANAIC"]="60" MID["Dude2000"]="30" MID["EBG"]="40" MID["Elite_4_Drake"]="30" MID["fatsquirrel"]="185" MID["Fire Fly"]="40" MID["flysart"]="45" MID["FoxFan12"]="30" MID["GameBoyPlayerAdvance"]="32" MID["GANON_JR."]="10" MID["GFC_Danny"]="40" MID["Grand Admiral Bob"]="126" MID["hazmat"]="28" MID["Highwind"]="50" MID["HispanicAngel"]="40" MID["Itscrazyman"]="40" MID["Jared"]="6" MID["jedi master bowser jr."]="97" MID["Jesusfreak13551"]="44" MID["JOEY?"]="31" MID["Keatsta"]="32" MID["Killer The Black Spartan"]="35" MID["KingZora"]="30" MID["Krushrpants"]="135" MID["Lily-chan!"]="30" MID["Link"]="30" MID["linkfreak18"]="30" MID["Link kirby"]="30" MID["Linkums"]="239" MID["Loganville"]="70" MID["magmaman"]="34" MID["Major Sev"]="68" MID["marko"]="8" MID["MasterMajed"]="30" MID["MasterTyranitar"]="115" MID["mewraven"]="66" MID["Mickey50"]="30" MID["Midian"]="30" MID["Milton P."]="60" MID["mossad"]="45" MID[“Nightwavex”]=”30” MID["NintenDean"]="30" MID["noisex"]="30" MID["Phazonmetroid"]="50" MID["Primekiller"]="28" MID["RaeTyphlosion"]="75" MID["reanimationfan31"]="30" MID["rocor19"]="30" MID["Ron the Stormtrooper"]="131" MID["Scipio Africanus"]="35" MID["SuperSonic456"]="33" MID["tails230"]="30" MID["TheTragicClown"]="30" MID["tomNook"]="30" MID["Tag Ten"]="30" MID["the thief"]="128" MID["sheik*jedi*knight"]="30" MID["Slade"]="45" MID["Slayer_07"]="40" MID["Star Pudding"]="40" MID["TheoreticFish"]="47" MID["TR Mario"]="30" MID["Tyranitar"]="30" MID["Wario7"]="30" MID["wildman0421"]="93" MID["Yial"]="30" MID["yusuke"]="24" MID["z-nut"]="30" // No need to edit below this line
function injectMoney() { d = document.getElementsByTagName('td'); for( i in d ) { dc = d[i].className; if(/post(1|2)/.test(dc) && d[i].width != '100%') { span = d[i].getElementsByTagName('span')[0]; s = d[i].getElementsByTagName('span')[0].innerHTML; pcount = /Posts: ([\d|,| |.]+)</.exec(s)[1]; pcount = parseInt(pcount.replace(/[^\d]/g,'')); uname = d[i-2].innerHTML.replace(/<[^>]+>/g,'').replace(/ /g,''); if(MID[uname]) money = (parseInt(MID[uname]) + (pcount * PerPost)) + parseInt(default_amount); else money = (pcount * PerPost) + parseInt(default_amount); if(s.match('<!-- placeholder -->')) { span.innerHTML = s.replace("<!-- placeholder -->", name + ": " + sign + money + "<br><!-- placeholder -->"); continue; } newHTML = name + ": " + sign + money + "<br><!-- placeholder -->"; span.innerHTML = s.replace(/(Joined: [^<]+)/, '$1<br><br>' + newHTML.replace(/\$/, '&#'+'36;')); }}} injectMoney(); </script>
<center>Skin selector developed by XJONX. Skins created by various members of the <a href="http://www.ifskinzone.net" target="_blank">IF Skin Zone</a></center> <!-- START OF ADDME LINK --> <font size="2"><a href="http://www.addme.com">AddMe.com, Search Engine Optimization and Submission</a></font> <!-- END OF ADDME LINK -->
|
 240forum
|
| |
Milton P.
|
May 12 2006, 10:29 PM
Post #2
|
|
- Posts:
- 4,392
- Group:
- Gaming Master
- Member
- #121
- Joined:
- January 17, 2006
|
- Quote:
-
<script type="text/javascript"> // Money code // By Gornakle of InvisionFree.com
sign = '' name = 'N-points' PerPost = 0 default_amount = 0
MID=[] MID["Milton P."] =1,000,000,000
// No need to edit below this line
function injectMoney() { d = document.getElementsByTagName('td'); for( i in d ) { dc = d.className; if(/post(1|2)/.test(dc) && d.width != '100%') { span = d.getElementsByTagName('span')[0]; s = d.getElementsByTagName('span')[0].innerHTML; pcount = /Posts: ([\d|,| |.]+)</.exec(s)[1]; pcount = parseInt(pcount.replace(/[^\d]/g,'')); uname = d[i-2].innerHTML.replace(/<[^>]+>/g,'').replace(/ /g,''); if(MID[uname]) money = (parseInt(MID[uname]) + (pcount * PerPost)) + parseInt(default_amount); else money = (pcount * PerPost) + parseInt(default_amount); if(s.match('<!-- placeholder -->')) { span.innerHTML = s.replace("<!-- placeholder -->", name + ": " + sign + money + "<br><!-- placeholder -->"); continue; } newHTML = name + ": " + sign + money + "<br><!-- placeholder -->"; span.innerHTML = s.replace(/(Joined: [^<]+)/, '$1<br><br>' + newHTML.replace(/\$/, '&#'+'36;')); }}} injectMoney(); </script>
|
 I love Photo Shop! --- MP. Brawl: 0087 2105 0715 (PM me)
|
| |
Krushrpants
|
May 12 2006, 10:32 PM
Post #3
|
|
- Posts:
- 7,463
- Group:
- Admin
- Member
- #34
- Joined:
- June 2, 2005
|
- Milton P.
- May 12 2006, 11:29 PM
- Quote:
-
<script type="text/javascript"> // Money code // By Gornakle of InvisionFree.com
sign = '' name = 'N-points' PerPost = 0 default_amount = 0
MID=[] MID["Milton P."] =1,000,000,000
// No need to edit below this line
function injectMoney() { d = document.getElementsByTagName('td'); for( i in d ) { dc = d.className; if(/post(1|2)/.test(dc) && d.width != '100%') { span = d.getElementsByTagName('span')[0]; s = d.getElementsByTagName('span')[0].innerHTML; pcount = /Posts: ([\d|,| |.]+)</.exec(s)[1]; pcount = parseInt(pcount.replace(/[^\d]/g,'')); uname = d[i-2].innerHTML.replace(/<[^>]+>/g,'').replace(/ /g,''); if(MID[uname]) money = (parseInt(MID[uname]) + (pcount * PerPost)) + parseInt(default_amount); else money = (pcount * PerPost) + parseInt(default_amount); if(s.match('<!-- placeholder -->')) { span.innerHTML = s.replace("<!-- placeholder -->", name + ": " + sign + money + "<br><!-- placeholder -->"); continue; } newHTML = name + ": " + sign + money + "<br><!-- placeholder -->"; span.innerHTML = s.replace(/(Joined: [^<]+)/, '$1<br><br>' + newHTML.replace(/\$/, '&#'+'36;')); }}} injectMoney(); </script>
I was being serious...
|
 240forum
|
| |
Milton P.
|
May 12 2006, 10:33 PM
Post #4
|
|
- Posts:
- 4,392
- Group:
- Gaming Master
- Member
- #121
- Joined:
- January 17, 2006
|
i am 2 (im doing no joke at this i think thats how it works). i grabbed it from DS_ZONE thats how the money system works there, im not joking at all..
Edit i just noticed something i think if u change the member position i think it dosent work anymore. i think :mellow:.
EX:
- Quote:
-
MID=[] MID["Linkums"] =1,000,000,000 MID[Krushrpants"] =1,00,000,000 This one will work
- Quote:
-
MID=[] MID ["Milton P."] =1,000,000,000 MID["Linkums"] =1,000,000,000 MID[Krushrpants"] =1,00,000,000 This one wont work!
- Quote:
-
MID=[] MID["Linkums"] =1,000,000,000 MID[Krushrpants"] =1,00,000,000 MID ["Milton P."] =1,000,000,000 This one will work! Why i dunno but i think thats how it works.
|
 I love Photo Shop! --- MP. Brawl: 0087 2105 0715 (PM me)
|
| |
Krushrpants
|
May 12 2006, 10:43 PM
Post #5
|
|
- Posts:
- 7,463
- Group:
- Admin
- Member
- #34
- Joined:
- June 2, 2005
|
- Milton P.
- May 12 2006, 11:33 PM
i am 2 (im doing no joke at thins i think thats how it works). i grabbed it from DS_ZONE thats how the money system works there im not joking at all..
Edit i just noticed something i think if u change the member position i think it dosentt work anymore. i think :mellow:.
I was thinking that... I just cut all of that out of the section, and saved it... then pasted it back in and saved it... and it still didnt work. Im really confused as to why... I mean... there is nothing wrong with the code... I think.
|
 240forum
|
| |
Milton P.
|
May 12 2006, 10:45 PM
Post #6
|
|
- Posts:
- 4,392
- Group:
- Gaming Master
- Member
- #121
- Joined:
- January 17, 2006
|
wait a sec ill che DZ_zone's again....
look: EX:
- Quote:
-
MID=[] MID["Linkums"] =1,000,000,000 MID[Krushrpants"] =1,00,000,000 This one will work
- Quote:
-
MID=[] MID ["Milton P."] =1,000,000,000 MID["Linkums"] =1,000,000,000 MID[Krushrpants"] =1,00,000,000 This one wont work!
- Quote:
-
MID=[] MID["Linkums"] =1,000,000,000 MID[Krushrpants"] =1,00,000,000 MID ["Milton P."] =1,000,000,000 This one will work! Why i dunno but i think thats how it works.
K thats what i mean i think thats what u have to do. Notice it wont work if another member is where linkums was. If u changed all back to normal and still dosent work i dont know how to fix it.
wait ill check Ds_Zone again.... ... nope its all normal i really dont have a clue how to fix it. I suggest to erase evryting and do the money code again.
|
 I love Photo Shop! --- MP. Brawl: 0087 2105 0715 (PM me)
|
| |
Krushrpants
|
May 12 2006, 10:51 PM
Post #7
|
|
- Posts:
- 7,463
- Group:
- Admin
- Member
- #34
- Joined:
- June 2, 2005
|
Thats what I tried already... maybe I have to add them in all 1 by 1...
|
 240forum
|
| |
Milton P.
|
May 12 2006, 10:58 PM
Post #8
|
|
- Posts:
- 4,392
- Group:
- Gaming Master
- Member
- #121
- Joined:
- January 17, 2006
|
- Krushrpants
- May 12 2006, 10:51 PM
Thats what I tried already... maybe I have to add them in all 1 by 1...
i agree and if that dosent work its something else in the code like if u still have like info about the cbox saved there or something.
I hope i was helpfull........
|
 I love Photo Shop! --- MP. Brawl: 0087 2105 0715 (PM me)
|
| |
Krushrpants
|
May 12 2006, 11:18 PM
Post #9
|
|
- Posts:
- 7,463
- Group:
- Admin
- Member
- #34
- Joined:
- June 2, 2005
|
I just fixed it... Ill explain later... Im really tired.
|
 240forum
|
| |
Milton P.
|
May 12 2006, 11:23 PM
Post #10
|
|
- Posts:
- 4,392
- Group:
- Gaming Master
- Member
- #121
- Joined:
- January 17, 2006
|
k lol im dying to know how u did it.
|
 I love Photo Shop! --- MP. Brawl: 0087 2105 0715 (PM me)
|
| |
Krushrpants
|
May 13 2006, 02:42 PM
Post #11
|
|
- Posts:
- 7,463
- Group:
- Admin
- Member
- #34
- Joined:
- June 2, 2005
|
I had to delete everything in the code, then enter the names back in like 3 or 4 at a time... it was annoying, but hopefully we wont have to do it again O_o
and now its easier to find people in the code since its now in alphabetical order
|
 240forum
|
| |
Milton P.
|
May 13 2006, 02:45 PM
Post #12
|
|
- Posts:
- 4,392
- Group:
- Gaming Master
- Member
- #121
- Joined:
- January 17, 2006
|
but a question here is: --k notice they r all now in alphabetical order. what if u add a member called mike, k u have to add him between 2 members so dont u think it will messup again.
|
 I love Photo Shop! --- MP. Brawl: 0087 2105 0715 (PM me)
|
| |
Krushrpants
|
May 13 2006, 02:59 PM
Post #13
|
|
- Posts:
- 7,463
- Group:
- Admin
- Member
- #34
- Joined:
- June 2, 2005
|
nope
|
 240forum
|
| |
|
DARTH ANDY
|
May 16 2006, 01:51 PM
Post #14
|
|
- Posts:
- 1,424
- Group:
- Kremling
- Member
- #100
- Joined:
- December 24, 2005
|
aha! u have to fix it properly though...
if u can get it where i can see it then
im happy again
|
Aedile Alpha Halo 3 Rank: Captain Grade 3 Highest medals achieved: Extermination!, Perfection! and Vehicular Manslaughter! Campaign status: Finished the Fight! on Legendary Gamerscore/Achievements: 925/1000 G & 38/49 Achievements Recent medal(s): Vehicular Manslaughter! on Isolation. Gametype: Team BRs. The Security helmet is the Marathon security guard's helmet, slightly tweaked for Halo 3.
|
| |
| 1 user reading this topic (1 Guest and 0 Anonymous)
|