Forum Code

For your website woes and whees

Forum Code

Postby XEROCiDE » Fri Jul 29, 2011 11:59 pm

So, I've been working on finishing an Invisionfree forum for my friends and I at this website, CafeMom where we're members at to chat and whatnot.

I've been trying to find the code to add currency and to donate currency to each other so we can make sell eachother cute mommy graphics and whatnot, but the code they used to have has just vanished... Anyone know where I can get it, because I've searched all of invisionfree's support forums and google, and found nothing but dead ends.
Image
Image
Image
want a blinkie? want a voodoo dollie? click above!
DArt l AvB
Image
User avatar
XEROCiDE
Supporting Role
Supporting Role
 
Posts: 106
Joined: Thu Jul 21, 2011 11:28 pm
Diamonds on hand: 790.00
Location: PA, USA
Dolling Style: Pixel
Avatar Base: TheHWord

Re: Forum Code

Postby Becky-RanRan » Thu Sep 01, 2011 9:47 am

Looking at my forum (Which i am hoping to bring back soon :P) This code was in the Footer of the Board Wrappers in the Admin CP

I hope this works for you ^^

Code: Select all
<script language="javascript" type="text/javascript">
<!--//Improved Money Hack - by Markup
moneyName="Money"
moneySign="£"
postMoney=10
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[i].elements.length;n++)
if(form[i].elements[n].name=="UserName")
{
UserName=form[i].elements["UserName"]
PassWord=form[i].elements["PassWord"]
form[i].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[i].className=="row3"&&td[i].innerHTML.match("Total Cumulative Posts"))
{
posts=parseInt(td[i+1].getElementsByTagName("B")[0].innerHTML.replace(/,/g,""))
nRow=td[i].parentNode.parentNode.parentNode.insertRow(td[i].parentNode.rowIndex+2)
nCell=nRow.insertCell(0)
nCell.className="row3"
nCell.align="left"
nCell.innerHTML="<b>"+moneyName+"</b>"
nCell=nRow.insertCell(1)
nCell.className="row1"
nCell.vAlign="top"
nCell.innerHTML="<b>"+moneySign+posts*postMoney+"</b>"
isAdmin?nCell.innerHTML+="&nbsp;<a href='javascript:adjust(false)'><img src=http://webpost.net/ma/markup/minus.GIF alt=Minus></a>&nbsp;<a href='javascript:adjust(true)'><img src=http://webpost.net/ma/markup/plus.GIF alt=Plus></a>":false
break
}
}
span=document.getElementsByTagName("SPAN")
for(i=0;i<span.length;i++)
if(span[i].className=="postdetails"&&span[i].innerHTML.match("Posts: "))
{
posts=parseInt(span[i].innerHTML.match(/Posts: (-*[\d,]+)/)[1].replace(/,/g,""))
nCont="<P>"+moneyName+": "+moneySign+posts*postMoney
if(isAdmin)
{
tr=span[i].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 src=http://webpost.net/ma/markup/minus.GIF alt=Minus></a>&nbsp;<a href='javascript:adjust(true,"+memNo+","+posts+")'><img src=http://webpost.net/ma/markup/plus.GIF alt=Plus></a>"
}
span[i].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()
}
//-->
</script>
User avatar
Becky-RanRan
Celebrity
Celebrity
 
Posts: 373
Joined: Fri Jul 18, 2008 9:38 am
Diamonds on hand: 132.00
Location: England
Dolling Style: Pixel
Avatar Base: TheHWord
Formerly: becky-jane-xo


Return to Screen Writer's Lounge

Who is online

Users browsing this forum: No registered users and 1 guest

cron