Welcome to Dark eFfectX !

Enter the digital revolution. Design technology, coding & gaming. The curating & exchange of Digital Knowledge while Anime, Manga Art, Music and Technology collide in a Alchemy of Thought and Illusion.

Learn the magic of today from the science of tomorrow. Web site modifications, custom style sheets (CSS) and coding support + more.

Guests, please register or log in to view the entire forum.

Join the forum, it's quick and easy

Welcome to Dark eFfectX !

Enter the digital revolution. Design technology, coding & gaming. The curating & exchange of Digital Knowledge while Anime, Manga Art, Music and Technology collide in a Alchemy of Thought and Illusion.

Learn the magic of today from the science of tomorrow. Web site modifications, custom style sheets (CSS) and coding support + more.

Guests, please register or log in to view the entire forum.
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Code] Simple Money Mod

Go down

[Code] Simple Money Mod Empty [Code] Simple Money Mod

Post by Bad Wolf Sun 27 May 2007, 01:54

Simple Money Mod

- adds 'Money' per post, nothing more
Place in Footers/Wrappers

Code:

<script>
// Money mod
// By Bad Wolf of Dark eFfectX
// https://darkfx.darkbb.com

var sign = "$";
var name = "Money";
var PerPost = "25";
var default_amount = 0

document.write('<script src="https://amoney.js"><\/script>');
</script>


amoney.js:
Code:

if(! default_amount) { var default_amount = 0; var MID=[]
MID["members"]="0" }

td=document.body.getElementsByTagName("TD")
for(i=0;i<td.length;i++) {
 if((td[i].className=="post1"||td[i].className=="post2")&&td[i].innerHTML.match("Posts: ")&&td[i].width!="100%") {

  sPost=td[i].getElementsByTagName("SPAN")[0]
  if(sPost.innerHTML.replace(",","").match(/Posts: (\d+)/)) Posts = parseInt(RegExp.$1)
 
  uname = td[i-2].innerHTML.replace(/<[^>]+>/g,"").replace(/&nbsp;/g,"")
  if(MID[uname] > 0 || MID[uname] < 0){ EXP = (parseInt(MID[uname]) + (Posts * PerPost))+parseInt(default_amount) }
   else{ EXP = (Posts * PerPost)+parseInt(default_amount) }

var midR="Group: " + sPost.innerHTML.split('Group: ')[1]
var topR=sPost.innerHTML.split('Group: ')[0]

if(sPost.innerHTML.match('<!-- PLACEHOLDER -->')) {
NewCode = sPost.innerHTML.replace("<!-- PLACEHOLDER -->", ""+name + ": " + sign + EXP + "<br><!-- PLACEHOLDER -->")
}
else {
NewCode = topR
NewCode +=  midR
NewCode +=  ""+name + ": " + sign + EXP + "<br>"
NewCode +=  "<!-- PLACEHOLDER -->"
NewCode += "<br><br>"
}

sPost.innerHTML = NewCode
}}

_________________
[Code] Simple Money Mod Alcbar13
Bad Wolf
Bad Wolf
Designer GFX
Designer GFX

Female Starseeker

Level : 46
Number of posts : 3398
Location : Satellite V

Rank : 7
Experience : 3021
Registration Date : 2006-12-24

Cprofile
Title: The Digital Alchemist
Luck:
[Code] Simple Money Mod Llc10588/588[Code] Simple Money Mod Empty  (588/588)
Karma:
[Code] Simple Money Mod Klc10530/777[Code] Simple Money Mod Empty  (530/777)

https://darkfx.darkbb.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum