MyBB Community Forums

Full Version: Fake board statistics
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Written in javascript

this raises the number of the Total members, total threads, total posts and most members online ever in the board statistics at the bottem of the index

add to footer
Quote:
<script>
/*MyBB Fake statistics
by godkillah from
phantom-designs.net & webmasters-forums.com*/
var mostOnline=9000
var postAdd=500
var threadAdd=500
var memberAdd=500

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>

find this part:

var mostOnline=9000
var postAdd=500
var threadAdd=500
var memberAdd=500

i don't think it needs to much explained,
the most members online ever raises with 9000, total posts raises with 500. total threads raises with 500 and total members raises with 500

Enjoy
... =/
lol alot of arbian users was asked me about that, but I didn't encourage it Big Grin
This script is very simple to install and good for new forums.. Smile

Just check the mod with your forum. Am sure that you love it..
I don't know who wants to be on a "fake" board with "fake" statistics. Toungue
This is only for fun.. Play with your members.. Toungue

Also helps to attract members for small forums.
I could see this being useful during an April Fools Day prank. Maybe make it so it *looks* like the forum has hardly any members, making people think that only their account and some others still exists, until they check the list.
Won't necessarily work for small forums. But yeah, best for pranks Toungue
thanks for comments ^^
LOL funny but weird to have fake stats though Toungue
Pages: 1 2 3 4