Welcome Guest [Log In] [Register]
Add Reply
I need help!
Topic Started: May 20 2006, 07:42 AM (135 Views)
dark master

On My board?I want to have money but I don't know the code,So Please if you sign up and know the code pm king nintendo and i'll make you an admin.



thank you
Posted Image
Offline Profile Quote Post Goto Top
 
Krushrpants
Member Avatar

The code is this:



<script type="text/javascript">
// Money code
// By Gornakle of InvisionFree.com

sign = ''
name = 'Name of the currency here'
PerPost = 0
default_amount =0

MID=[]
MID["Example Person"]="30"
MID["add other people here"]="Number of amt of currency that person has goes here"
// 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>


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




-------
The things in red are the only things you really need to edit... and it goes under board wrappers and footer on the admin cp ;)
Posted Image
240forum
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Suggestions and Tech Support Board · Next Topic »
Add Reply

Page views since 09/22/04 ^_^

counter Firefox Bookmark and Share

..:: Affiliates ::..