Welcome Guest [Log In] [Register]

Welcome to Big Boards. Big Boards at one time offered the Zathyus network our long famous Resource Archives, our extensive search indexes, and our info-packed resource forums. Eventually, these were made redundant by upgrades to the documentations and expanded search features added to the ZetaBoards software, and this forum then lost relevancy and subsequently became inactive.

Our team then embarked on a new project called Planet Nexus, where a bold new experiment in forum promotion is taking place. We call it nexworking. NexusTree offers social networking pages for forums in a fully automated format. Your NexusTree page is created instantly when your join the nexus. Find out more by visiting Planet Nexus, and become part of the nexworking revolution.

Posted Image Posted Image
If you're already a member please log in to your account for additional access:

Username:   Password:
Closed Topic
Coding Challenge #22 - Best Statistics Code
Topic Started: Jul 23 2008, 08:37 PM (319 Views)
Archive
Member Avatar
Technical Adviser

Welcome to the BB code challenge!

The code challenge runs for one week and requires your submissions to comply with a stated theme and to be JS, HTML, or PHP codes only, but may be for either IF or ZB. The themes are specific. In some challenges, it will be obvious who is the winner, in others, a run-off poll will be posted in which BB members will pick the best code from the top three. In those cases, staff will choose the three submissions that best fulfill the theme to be voted on in the poll.

The winner will have a crown emblem displayed as an image prefix on their username and can claim the title of BB's coding king until the winner for the next coding challenge is chosen.

The current challenge is to create the best statistics code. The "statistics" code will, of course, have to relate to statistics in some way; whether it be a hit counter, a detailed statistics page, a modification to the board statistics, etc.

The challenge will close at 11:59pm Wednesday, August 1 forum time (CST or -6 GMT).

Please use the posting template. Entries must include a preview to be considered. If you have already written a code that complies with the the stated theme, you may enter it. You may also post as many entries as you like during the challenge.

May the best coder take the crown!

Code:
 
[B]Name[/B]:
[B]Description[/B]:
[B]Copyright[/B]:
[B]Browser compatibility[/B]:
[B]Known Bugs[/B]:
[B]Preview/Screen shot[/B]:
[B]Installation[/B]:
Offline
Profile
Goto Top
 
godkillah
Member Avatar
Cool IF Coder
[ *  *  * ]
Name: Fake board statistics
Description:this code simply makes the statistics higher, like you got 400 members, this code will make it appear at 600 members (it won't replace it so the number will still increase)
the same with the total boards members in the board statistics
Copyright: pd&me
Browser compatibility should work in all:
Known Bugs: none
Preview/Screen shot: http://z4.invisionfree.com/Embracing_Darkness/index.php
Installation:
footers
 
<script>
/* Fake board statistics
by godkillah from phantom-designs.net */
AddPosts=500
AddMembers=500

a=document.getElementsByTagName("b");o=0
for(i=0;i<a.length;i++){
if(a.parentNode.innerHTML.match(/Our members have made a total of/i)){
a.innerHTML=parseInt(a.innerHTML.split(".").join("").split(",").join(""))+parseInt(AddPosts)
AddPosts=AddMembers
o++;if(o==2){
break
}}}
</script>
*** 250 MB of disk space
*** 100 GB of data transfer
*** PHP and MySQL support with no restrictions
*** cPanel control panel
*** Absolutely no advertising!

Join us now: http://www.000webhost.com
Offline
Profile
Goto Top
 
Posted Imageslayer766
Member Avatar
Can I haz a Gord?

Name: Category Count
Description: Counts all of your categories that your board has and places it along with your board stats.
Copyright: TheCodingZone, slayer766
Known Bugs: None
Browser compatibility: All Browsers
Preview/screen shot: http://z7.invisionfree.com/Slayers_Domain/index.php?act=idx
Installation: Board Wrappers > Footer:

Code:
 
<script type="text/javascript" src="http://i1.ifrm.com/11838/143/upload/p2628304.ibf"></script>
Mike is my coding brother.

Posted Image
Offline
Profile
Goto Top
 
Chireru
BB Delta
[ *  *  *  * ]
ok...would a mod that requires the Board Statistics work???

as, I don't really know any mod that I could make before the end date, that could possibly beat GK's or Slayer's, lol...

but, I might have a chance with my Online/Offline Members script...

or, better yet, would a script that CAN effect the board statistics, with a variable set, but also does other stuff, work???

Edit: ok, I started off making a simple code, that was to work pretty much exactly like Slayer's, except, I was going to infuse it into my IF Package Script...

Slayer, you know what I'm talking about...

use to be called IF Settings...

lol...

well, anyways, I am still working on that script...

BUT...

I got into the grove of it, and, I came up with this...

lol...

Name: cStats (yeah, didn't feel like thinking up of a good name...lol...)
Description: Adds some extra Board Statistics...
Copyright: Me...
Browser compatibility: FF3 is known...
Known Bugs: None...works perfectly for me...
Preview/Screen shot: http://z11.invisionfree.com/CHIRERU/index.php
Installation: Footers
Code:
 

<script>
/**************************
cStats
by Chireru
of TheCodingZone
**************************/

var clock = true;

var forums = true;

var categories = true;

var topics = true;

document.write('<scr'+'ipt src="http://chireru.hyperphp.com/codes/cStats.txt"></scr'+'ipt>');

</script>


here is a rundown of what each thing does...set one to false to cancel that specific function...

clock == adds a forum clock

forums == calculates your total number of displaying forums

categories == calculates your total number of displaying categories

topics == calculates your total number of displaying topics

ok...now then, each of those will be in the Board Statistics area, as shown in the PREVIEW...

enjoy...

:)

Note: want to fancy it up a bit???
just take those true things, and change them to anything of your liking...
this can be useful to make this script not boring to look at in your ACP Board Wrappers Footers Box...
lol...
just make sure not to put a false in its place, as that will cancel out that part of the code...
Posted Image
Offline
Profile
Goto Top
 
Posted ImageMike
Member Avatar
Official BB Coda

Name:
Members Online Today

Description:
One of the most requested codes for InvisionFree is finally here! What it does is logs who has been on your board during that day, and lists it on the index in a box below your board stats. Clicking a name will also redirect you to their profile.

The only downside to this code is it requires you to sacrifice your calendar to store the user data. If you don't use your calendar anyways, you've got nothing to lose :)

Copyright:
Mwr247

Browser compatibility:
Internet Explorer, FireFox, Mozilla, Opera, Safari, and Netscape.

Known Bugs:
Unfortunately, I've learned that this code is quite picky for seemingly no reason at all. Some boards it'll work great on, while others it just decides not to. I've never been able to work out why this is, so if it doesn't work for you, sorry, but there's nothing I can do :(

Preview/Screen shot:
RandomScriptPreviews
You'll have to create an account to see it add names and such.

Installation:
First, go to your admin control panel and find the page for "Date & Time Formats". The top option should be "Native Server Time Zone". Look at the drop down box to the right and find out what timezone number your board is set to. For example, if it says "GMT", your timezone is "0". If it says "GMT - 1", your timezone is "-1". If it says "GMT + 1", your timezone is "1", and so on. You'll need this number to set the code up properly. By default, the example is set to "-5", which is U.S. Eastern Standard Time.

Now, add the following to your board wrapper footers:
Quote:
 
<script>
// Members Online Today (By Mwr247)
// Copyright MUST stay intact please!
// http://bigboardsresources.com/

// Set Default Time Zone
var timezone = -5

</script><script name="M.O.T." src="http://i4.ifrm.com/12221/196/pip/mot.gif"></script>
Remember to change the number in red to the timezone your board is set to.

Now, go to the "Calendar/Birthday" in the Admin CP. Change "Show birthdays on the main calendar view?" to no, "Show forthcoming events?" to yes, and "Show forthcoming events from today to [x] days ahead" to 2 days.

Finally, edit all your member groups and make sure they can create calendar events. Otherwise it won't allow them to log anything.

And that's it, your code is now configured. Yes, it is a bit complicated with the whole timezone thing, but it's needed to keep it acurate.
Posted Image
Cory: "Mwr is right." - HelenaZF: "Mike is right"
^ All will realize soon enough ;)]
Offline
Profile
Goto Top
 
Archive
Member Avatar
Technical Adviser

The challenge has ended.

Please vote for your choice here: http://bigboardsresources.com/index.php?showtopic=4615
Offline
Profile
Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Challenge Archive · Next Topic »
Closed Topic