Welcome Guest [Log In] [Register]
Add Reply
Fix the N-point code, get N-points!
Topic Started: May 12 2006, 09:53 PM (326 Views)
Krushrpants
Member Avatar

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 :o

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(/&nbsp;/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 -->
Posted Image
240forum
Offline Profile Quote Post Goto Top
 
Milton P.
Member Avatar

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(/&nbsp;/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>

Posted Image
I love Photo Shop! --- MP.
Brawl: 0087 2105 0715 (PM me)
Offline Profile Quote Post Goto Top
 
Krushrpants
Member Avatar

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(/&nbsp;/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...
Posted Image
240forum
Offline Profile Quote Post Goto Top
 
Milton P.
Member Avatar

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.

Posted Image
I love Photo Shop! --- MP.
Brawl: 0087 2105 0715 (PM me)
Offline Profile Quote Post Goto Top
 
Krushrpants
Member Avatar

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.
Posted Image
240forum
Offline Profile Quote Post Goto Top
 
Milton P.
Member Avatar

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.

Posted Image
I love Photo Shop! --- MP.
Brawl: 0087 2105 0715 (PM me)
Offline Profile Quote Post Goto Top
 
Krushrpants
Member Avatar

Thats what I tried already... maybe I have to add them in all 1 by 1...
Posted Image
240forum
Offline Profile Quote Post Goto Top
 
Milton P.
Member Avatar

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........

Posted Image
I love Photo Shop! --- MP.
Brawl: 0087 2105 0715 (PM me)
Offline Profile Quote Post Goto Top
 
Krushrpants
Member Avatar

I just fixed it... Ill explain later... Im really tired.
Posted Image
240forum
Offline Profile Quote Post Goto Top
 
Milton P.
Member Avatar

k lol im dying to know how u did it.

Posted Image
I love Photo Shop! --- MP.
Brawl: 0087 2105 0715 (PM me)
Offline Profile Quote Post Goto Top
 
Krushrpants
Member Avatar

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
Posted Image
240forum
Offline Profile Quote Post Goto Top
 
Milton P.
Member Avatar

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.

Posted Image
I love Photo Shop! --- MP.
Brawl: 0087 2105 0715 (PM me)
Offline Profile Quote Post Goto Top
 
Krushrpants
Member Avatar

nope ;)
Posted Image
240forum
Offline Profile Quote Post Goto Top
 
DARTH ANDY
Member Avatar

aha! u have to fix it properly though...

if u can get it where i can see it then :o 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.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Fully Featured & Customizable Free Forums
« Previous Topic · Suggestions and Tech Support Board · Next Topic »
Add Reply

Page views since 09/22/04 ^_^

counter Firefox Bookmark and Share

..:: Affiliates ::..