RADBMX.CO.UK

Forum => Q&A, Ideas & Feedback => Topic started by: Darkshadow on February 04, 2006, 02:43 PM

Title: Money
Post by: Darkshadow on February 04, 2006, 02:43 PM
tricky

there is a code for forum money which u get every time u post

here
Quote
<script language="javascript" type="text/javascript">
<!--//Improved Money Hack - by Markup
moneyName="Dosh"
moneySign="$"
postMoney=50
document.write("<span id=login></span>")
if(document.getElementById("userlinks").innerHTML.match("admin.php")&&document.cookie.match("user="))
isAdmin=true
else isAdmin=false
home="http://"+location.hostname+location.pathname
c=0
form=document.forms
for(i=0;i<form.length;i++)
for(n=0;n<form.elements.length;n++)
if(form.elements[n].name=="UserName")
{
UserName=form.elements["UserName"]
PassWord=form.elements["PassWord"]
form.onsubmit=function(){document.cookie="user="+escape(UserName.value)+"; expires="+new Date("01/01/2010").toGMTString();document.cookie="pass="+escape(PassWord.value)+"; expires="+new Date("01/01/2010").toGMTString()}
break
break
}
if(location.href.match("showuser"))
{
memNo=location.href.match(/showuser=(\d+)/)[1]
td=document.getElementsByTagName("TD")
for(i=0;i<td.length;i++)
if(td.className=="row3"&&td.innerHTML.match("Total Cumulative Posts"))
{
posts=parseInt(td[i+1].getElementsByTagName("B")[0].innerHTML.replace(/,/g,""))
nRow=td.parentNode.parentNode.parentNode.insertRow(td.parentNode.rowIndex+2)
nCell=nRow.insertCell(0)
nCell.className="row3"
nCell.align="left"
nCell.innerHTML=""+moneyName+""
nCell=nRow.insertCell(1)
nCell.className="row1"
nCell.vAlign="top"
nCell.innerHTML=""+moneySign+posts*postMoney+""
isAdmin?nCell.innerHTML+="&nbsp;<a href='javascript:adjust(false)'>[img width= height= alt=Minus]http://webpost.net/ma/markup/minus.GIF[/img][/url]&nbsp;<a href='javascript:adjust(true)'>[img width= height= alt=Plus]http://webpost.net/ma/markup/plus.GIF[/img][/url]":false
break
}
}
span=document.getElementsByTagName("SPAN")
for(i=0;i<span.length;i++)
if(span.className=="postdetails"&&span.innerHTML.match("Posts: "))
{
posts=parseInt(span.innerHTML.match(/Posts: (-*[\d,]+)/)[1].replace(/,/g,""))
nCont="<P>"+moneyName+": "+moneySign+posts*postMoney
if(isAdmin)
{
tr=span.parentNode.parentNode
memNo=tr.parentNode.parentNode.rows[tr.rowIndex-1].cells[0].innerHTML.match(/showuser=(\d+)/)[1]
nCont+="&nbsp;<a href='javascript:adjust(false,"+memNo+","+posts+")'>[img width= height= alt=Minus]http://webpost.net/ma/markup/minus.GIF[/img][/url]&nbsp;<a href='javascript:adjust(true,"+memNo+","+posts+")'>[img width= height= alt=Plus]http://webpost.net/ma/markup/plus.GIF[/img][/url]"
}
span.innerHTML+=nCont
}
function adjust(mode,no,pMon)
{
if(no&&pMon)
{
memNo=no
posts=pMon
}
change=mode?prompt("Amount to add:",postMoney):prompt("Amount to remove:",postMoney)
if(!mode)
change="-"+change
change=parseInt(change)
change=posts+Math.ceil(change/postMoney)
if(!isNaN(change))
{
loading()
document.getElementById("login").innerHTML="<iframe name=adminCP src="+home+"?act=UserCP style=display:none></iframe>"
}
}
function loading()
{
message="Connecting to Admin CP...Please Wait..."
c++
status=message.substr(0,c)
if(c==message.length)
c=0
setTimeout("loading()",100)
}
if(self!=top&&location.href==home+"?act=UserCP")
{
document.write("<form action="+location.href.substr(0,location.href.lastIndexOf("/"))+"/admin.php method=post name=theAdminForm><input type=hidden name=adsess><input type=hidden name=login value=yes><input type=hidden name=username value="+unescape(document.cookie.match(/user=([^;]*)/)[1])+"><input type=hidden name=password value="+unescape(document.cookie.match(/pass=([^;]*)/)[1])+">")
parent.wait(1)
document.forms['theAdminForm'].submit()
}
function wait(rep)
{
ACP=document.frames['adminCP']
if(rep==1)
{
if(!ACP.location.href.match("admin.php"))
setTimeout("wait(1)",10)
else
{
ACP.location+="&act=mem&code=doform&MEMBER_ID="+memNo
wait(2)
}
}
if(rep==2)
{
if(!ACP.document.forms['theAdminForm'])
setTimeout("wait(2)",10)
else
{
ACP.document.forms['theAdminForm'].elements['posts'].value=change
ACP.document.forms['theAdminForm'].submit()
wait(3)
}
}
if(rep==3)
if(ACP.location.href.match("code=doform&MEMBER_ID="+memNo))
setTimeout("wait(3)",10)
else
location.reload()
}
//-->
Title: Re: Money
Post by: billstup on February 04, 2006, 06:59 PM
Looks a piss of piss that does  :idiot2:
Title: Re: Money
Post by: danny silverstreak on February 04, 2006, 07:01 PM
OH THAT OLD CHESNUT :LolLolLolLol: :wtf:
Title: Re: Money
Post by: oberonspacefruit on February 04, 2006, 08:55 PM
izaak wot the fook are you talkin about...where has all that come from?
Title: Re: Money
Post by: Beckyboo on February 04, 2006, 11:08 PM
i get that...i think its direct transfer to your account mr fruitdom!
Title: Re: Money
Post by: Darkshadow on February 05, 2006, 06:11 PM
its the money system on my site
Title: Re: Money
Post by: jimwise68 on February 05, 2006, 07:10 PM
The coding is wrong on line 126, it should be a ] and not a )

 :buck2:
Title: Re: Money
Post by: TrickyDicky on February 08, 2006, 10:22 PM
There is a 'money' system available for our forum, think they call it a shop.  Can't really see the point myself.
Title: Re: Money
Post by: dordymush on February 08, 2006, 10:26 PM
what is all that lot ?.
Title: Re: Money
Post by: theRuler on February 08, 2006, 11:06 PM
good idea
Title: Re: Money
Post by: TrickyDicky on February 08, 2006, 11:15 PM
I've just downloaded the SMF shop mod - looks like quite a laugh actually - you can buy stuff with credits you earn through posts, such as inreasing your post count, stealing other people's credits, boosting your karma etc etc.  Will have a play on our test forum and see if the Admins fancy it.
Title: Re: Money
Post by: dordymush on March 21, 2006, 12:36 PM
Quote
boosting your karma

lol it worked well on here did'nt it  ;D.
Title: Re: Money
Post by: theRuler on March 21, 2006, 12:46 PM
get the money thing on

money money money moooney

mo o o o o o ney
Title: Re: Money
Post by: Beckyboo on March 22, 2006, 04:08 PM
The 'test' forum sounds good. whats it like? do you test how good your avators look and stuff? 

I liked the old forum that you could go back to and sit in the dark in
SimplePortal 2.3.5 © 2008-2012, SimplePortal