We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
ZB Fake Statistics; By Godkillah
Topic Started: Feb 3 2010, 11:35 PM (1,565 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Will
ZB Fake Statistics
 
This code has been moved here from our old support forum (as it will soon no longer exist at it's current location).
Please use the report button on this post to notify our staff of any problem with this modification.


Originally posted by: Godkillah
Fake Board Statistics
 
Wrote this code for IF and MyBB aswell,
its basic and using it has risks as members might stop trusting you,
but it also can make ur board look more active
Code:
 
<script>
/*Zb Fake statistics
by Godkillah
phantom-designs.net*/
var posts=503
var members=123
var records=74

a=document.getElementsByTagName("td")
for(i=0;i<a.length;i++){
if(a[i].className=='c_mark' && a[i].parentNode.getElementsByTagName("td")[1].innerHTML.match(/Total Forum Posts:/i)){
o=a[i].parentNode.getElementsByTagName("td")[1]
o.getElementsByTagName("strong")[0].innerHTML=parseInt(o.getElementsByTagName("strong")[0].innerHTML)+parseInt(posts)
o.getElementsByTagName("strong")[1].innerHTML=parseInt(o.getElementsByTagName("strong")[1].innerHTML)+parseInt(members)
o.getElementsByTagName("strong")[3].innerHTML=parseInt(o.getElementsByTagName("strong")[3].innerHTML)+parseInt(records)
break
}}
</script>
find and edit this part:
Code:
 
var posts=503
var members=123
var records=74

posts=How Many Posts get added
members=how many members get added
records=how many members get added to the records

PREVIEW: http://s1.zetaboards.com/Godkillah_Codes/index/

enjoy
Edited by Reid, Feb 7 2010, 01:59 AM.
Offline Profile Quote Post Goto Top
 
racecarrocks
Member
[ * ]
Ohhh, my users SO got a kick out of that....... :P
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply