|
[ZB] fake board statistics
|
Post Bank
Posting Manager
     
Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
|
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.
Signin to Remove this Post
|
|
|
|
godkillah
Senior Member
   
Posts: 261
Group: Registered
Joined: Sep 2007
Status:
Offline
Reputation: 3
Points: 183 (Donate)
|
[ZB] fake board statistics
written for zetaboards
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
<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:
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
|
|
| 04-12-2007 04:03 PM |
|
|
ivenms
Administrator
      
Posts: 2,177
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
|
| 12-12-2007 11:43 PM |
|
|
godkillah
Senior Member
   
Posts: 261
Group: Registered
Joined: Sep 2007
Status:
Offline
Reputation: 3
Points: 183 (Donate)
|
RE: [ZB] fake board statistics
that'd be quite easy to do i guess,
would be as simple as:
<script> /*Zb Fake statistics by Godkillah phantom-designs.net*/ var posts=503 var members=123 var records=74
if(!document.getElementById("top_info").getElementsByTagName("a")[0].match('/profile/')){ 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>
This post was last modified: 14-12-2007 03:07 AM by godkillah.
|
|
| 14-12-2007 03:06 AM |
|
|
ivenms
Administrator
      
Posts: 2,177
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
|
| 14-12-2007 07:37 PM |
|
|
godkillah
Senior Member
   
Posts: 261
Group: Registered
Joined: Sep 2007
Status:
Offline
Reputation: 3
Points: 183 (Donate)
|
RE: [ZB] fake board statistics
for MyBB its always a bit harder as the html seems to be quite different per MyBB board,
but it´d just be a matter of matching the innerHTML of that welcome box login link or register link 
or even the pm link could do it
|
|
| 15-12-2007 04:08 AM |
|
|
ivenms
Administrator
      
Posts: 2,177
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
RE: [ZB] fake board statistics
for MyBB its always a bit harder as the html seems to be quite different per MyBB board,
but it´d just be a matter of matching the innerHTML of that welcome box login link or register link 
or even the pm link could do it
You can differ a logged member from a guest by checking the logging field's existence on the index page. Get the element by ID and find if the user is logged or not. Then change the content.
I hope it will work.
Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
|
|
| 16-12-2007 09:59 PM |
|
|
godkillah
Senior Member
   
Posts: 261
Group: Registered
Joined: Sep 2007
Status:
Offline
Reputation: 3
Points: 183 (Donate)
|
RE: [ZB] fake board statistics
based on the Wmf html it'd look like
<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
GK=false a=document.getElementsByTagName("div") for(i=0;0<a.length;i++){ if(a[i].className=='smalltext' && a[i].innerHTML.match(/(New (.*), Unread (.*), Total (.*))/i)){ GK=true break }} if(GK==true){ 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>
This post was last modified: 16-12-2007 10:07 PM by godkillah.
|
|
| 16-12-2007 10:07 PM |
|
|
ivenms
Administrator
      
Posts: 2,177
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
|
| 16-12-2007 10:15 PM |
|
|
godkillah
Senior Member
   
Posts: 261
Group: Registered
Joined: Sep 2007
Status:
Offline
Reputation: 3
Points: 183 (Donate)
|
RE: [ZB] fake board statistics
that'd be even more easy, matter of grabbing the Panel id and matching the innerHTML for Hello There, Guest! 
than now i guess its time to release it
|
|
| 16-12-2007 10:25 PM |
|
|