Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.


Post Reply  Post Thread 

[ZB] fake board statistics

Post Bank
Posting Manager
******

Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Download FileShield free from PermissionResearch!
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)
Post: #1

[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

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


04-12-2007 04:03 PM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,177
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #2

RE: [ZB] fake board statistics


Can you change the code so that the fake statistics only visible for guests entering to the forum?


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
12-12-2007 11:43 PM
Find all posts by this user Quote this message in a reply
godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #3

RE: [ZB] fake board statistics


that'd be quite easy to do i guess,
would be as simple as:

PHP Code:
<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
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,177
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #4

RE: [ZB] fake board statistics


That is a genius and quick script creation. Very good. I love to see this change on your MyBB's same script.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
14-12-2007 07:37 PM
Find all posts by this user Quote this message in a reply
godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #5

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 Smile
or even the pm link could do it


15-12-2007 04:08 AM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,177
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #6

RE: [ZB] fake board statistics


godkillah Wrote:
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 Smile
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
Find all posts by this user Quote this message in a reply
godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #7

RE: [ZB] fake board statistics


based on the Wmf html it'd look like

PHP Code:
<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
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,177
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #8

RE: [ZB] fake board statistics


This forum is not matched with the actual HTML involved with the default forum script. This site is a modified version. So it will not work on other forum. Check: http://community.mybboard.net/ to get proper HTML and give this added feature to the plugin published on the community.

Release the added featured script as the higher version.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
16-12-2007 10:15 PM
Find all posts by this user Quote this message in a reply
godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #9

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! Smile
than now i guess its time to release it


16-12-2007 10:25 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [MyBB] fake statistics V2 godkillah 2 196 16-12-2007 10:35 PM
Last Post: godkillah
  MyBB fake members online godkillah 9 365 05-11-2007 06:11 PM
Last Post: Dhanraj
  MyBB Fake statistics godkillah 14 467 27-10-2007 08:58 PM
Last Post: godkillah
  Fake board statistics godkillah 2 182 25-10-2007 02:30 AM
Last Post: godkillah
  Which is the best bulletin board? Cedik 1 201 26-09-2007 08:32 PM
Last Post: ivenms

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 06-01-2009, 04:46 PM


Copyright © 2002-2009 MyBB Group
Powered By MyBB