|
Post by Uchiha Susuke on Mar 24, 2005 23:35:00 GMT -8
Hey, in honor for V4 (or 5, which is it?) i made this code (well, sorta for something else, but i like it) and thought it'd be a great addition to Hatake
it's give's extra stats to the info center, such as Todays hits Total hits Most users online ever Unique hits
anyways, the placement is under the users right now, but if you want i can put it in it's own table, or something of that sort... anyways, here yah go, footers ^_^
<script> //Page Stats //Coded by NCGI (Uchiha Sasuke) Specifically for the Hatake Forums //Not alloud on any other forum iTD = document.getElementsByTagName("td"); if (location.href.match(/com(\/(index.cgi(\?(action=(log(in2|out)|markallboardsread)))?)?)?(\??(#.*)?)?$/gim)) { for (a=0;a<iTD.length;a++) { if (iTD[a].align=="left" && iTD[a].getElementsByTagName("font")[0] && iTD[a].getElementsByTagName("font")[0].innerHTML.match(/^(\d+) Guests/gim)) { var totAm = iTD[a].getElementsByTagName("a").length; }} iScrpt = document.createElement("script"); iScrpt.setAttribute("src","http://www.deathbladedojo.com/scripts/hatakeStats.php?tot="+totAm); document.body.appendChild(iScrpt);} </script>
|
|
100%
|
Post by Aaron on Mar 25, 2005 17:22:58 GMT -8
Cool script!
Suggestions:
- Make font size 10px. - Change "Most users online: #" to:
Most users ever online was 404, on DATE (March 1, 2005 format)
If possible.
- Move most users online right after "0 guests, 0 members"
I'll try to make more after those have been changed.
Nice work =]
|
|
|
Post by Uchiha Susuke on Mar 26, 2005 12:56:11 GMT -8
alrighto' i'll try doing that as soon as i can (today i have some things to do, but tonight i should be able to work on it)
|
|
|
Post by Uchiha Susuke on Mar 28, 2005 13:50:51 GMT -8
there yah go, that should do it for yah
|
|
100%
|
Post by Aaron on Mar 28, 2005 16:59:34 GMT -8
Awesome!
One last suggestion. Do you think you could remove the hits information =P It kind of looks out of place and useless lol.
Great work!
|
|
|
Post by Uchiha Susuke on Mar 28, 2005 18:56:33 GMT -8
er...are...you sure? lol, that basically took out 3/4'ths of the special features of it how about put em' in a clickable pop up?
|
|
100%
|
Post by Aaron on Mar 29, 2005 14:29:29 GMT -8
lol.
A pop up is actually a good idea.
How about a link after the "most ever online .. blah blah.. blah" stuff. Like:
0 guests, 0 members, "most ever online stuff" - [<a href="asdfasdfsadf">Most Stats</a>]
If you can do that ^ that'd be great!
I know that Today's hits is working good, but what about total and unique.. they seem to be counting wrong.
|
|
|
Post by CrAzY_J on Apr 1, 2005 7:17:48 GMT -8
Uchiha Sasuke making something for hatake.....geez, this makes me want to make something for you guys too
|
|
|
Post by ShadowyOne on Apr 1, 2005 17:01:35 GMT -8
Good job, US.
|
|
|
Post by Uchiha Susuke on Apr 2, 2005 21:11:51 GMT -8
lol. A pop up is actually a good idea. How about a link after the "most ever online .. blah blah.. blah" stuff. Like: 0 guests, 0 members, "most ever online stuff" - [<a href="asdfasdfsadf">Most Stats</a>]If you can do that ^ that'd be great! I know that Today's hits is working good, but what about total and unique.. they seem to be counting wrong. total is working (it's the total amount of hits you've gotten ever sense you've installed the info center stats) and the unique hits are probably going weird becuase i'm testing the code on my test board, and the previous URL is not the hatake one every page load
|
|