MyBB Community Forums

Full Version: Fake board statistics V2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Smile
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 Smile
sa vedem. Mersi
Funny mod Toungue

@Ciorax: you're romanian too?
Quote: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

But then once again when a guest becomes a member, she/he will then realize what a cheat and fraud you are!!
yap faby Wink) why?Toungue
You realize that since it's JavaScript that an guest with JavaScript turned off will see the true stats? More people have the NoScript plugin enabled in Firefox these days, so you may wish to write a php version of this...
lufbra Wrote:
Quote: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

But then once again when a guest becomes a member, she/he will then realize what a cheat and fraud you are!!
they'll probably just think they saw it wrong

@DrPoodle,
i do, but I'm to lazy to find out how to install mods and stuff for mybb
That's a silly excuse for what is probably one of the most easiest ways of implementing modifications in a forum package. We have lots of documentation on the wiki about this.
DrPoodle Wrote:You realize that since it's JavaScript that an guest with JavaScript turned off will see the true stats?
Actually, more worrying is if someone views the source code... >_>


BTW, I can assure you it's much easier to write a plugin than use Javascript to try and find the elements to modify...
And Javascript syntax is fairly similar to PHP's.