2007-12-16, 12:28 PM
not to different from V1 but stops you from being a liar to your members,
it will now only lie to guests because the code won't work for members
add to footer
it will now only lie to guests because the code won't work for members
add to footer
<script>
/*MyBB Fake statistics V2
by godkillah from
phantom-designs.net & webmasters-forums.com*/
var mostOnline=9000
var postAdd=500
var threadAdd=500
var memberAdd=500
if(document.getElementById("panel").innerHTML.match(/Hello There, Guest/i)){
a=document.getElementsByTagName("span")
for(i=0;i<a.length;i++){
if(a[i].className=='smalltext' && a[i].innerHTML.match(/Our members have made a total of (.*) posts in (.*) threads/i)){
posts=parseInt(RegExp.$1.split(",").join(""))+postAdd
threads=parseInt(RegExp.$2.split(",").join(""))+threadAdd
a[i].innerHTML=a[i].innerHTML.split("Our members have made a total of "+RegExp.$1+" posts in "+RegExp.$2+" threads").join("Our members have made a total of "+posts+" posts in "+threads+" threads")
if(a[i].innerHTML.match(/We currently have (.*) members registered/i)){
members=parseInt(RegExp.$1.split(",").join(""))+memberAdd
a[i].innerHTML=a[i].innerHTML.split("We currently have "+RegExp.$1+" members registered").join("We currently have "+members+" members registered")
if(a[i].innerHTML.match(/The most users online at one time was (.*) on/i)){
online=parseInt(RegExp.$1.split(",").join(""))+mostOnline
a[i].innerHTML=a[i].innerHTML.split("The most users online at one time was "+RegExp.$1+" on").join("The most users online at one time was "+online+" on")
}}}}}
</script>
enjoy