View previous topic :: View next topic |
Author |
Message |
Kiin
Joined: 10 Jun 2003 Posts: 21
|
Posted: Fri Feb 06, 2004 5:29 am Post subject: b2 Mini Stats |
|
|
This was an idea inspired by the b2stats hack. For the simpler folk who simply want to output the total number of posts and/or comments.
It's not really a hack, as much as a small add-on script.
You can see the script in action at http://euphonism.net ~
Look for wherer it says (#) Posts :: (#) Comments.
That's all it does. It's simple, but useful and fun xD
To download the zip, right click and select "Save As...":
http://clowsecrets.com/b2ministats/b2ministats.zip _________________ -Kiin |
|
Back to top |
|
 |
Mellissa
Joined: 17 Nov 2002 Posts: 29 Location: Malaysia
|
Posted: Fri Feb 06, 2004 9:40 am Post subject: |
|
|
Ahh thank you so much, I've been wanting this  |
|
Back to top |
|
 |
Ambiguous7286
Joined: 06 Feb 2004 Posts: 3
|
Posted: Fri Feb 06, 2004 10:19 am Post subject: |
|
|
Ah very cool, that's a useful mini stat thing. It took me awhile to completely fix my b2stats.php page, it's a pain to customize but the ministat seems pretty easy  |
|
Back to top |
|
 |
PDdotORG
Joined: 16 Jan 2004 Posts: 6 Location: Camp Pendleton, CA
|
Posted: Sat Feb 07, 2004 3:33 am Post subject: |
|
|
Great hack!! Thanks! It's exactly what I needed. b2stats was just giving me problems left and right. |
|
Back to top |
|
 |
Kathryn618
Joined: 03 Sep 2003 Posts: 6 Location: South Carolina
|
Posted: Sun Feb 08, 2004 4:14 am Post subject: great hack |
|
|
Works nicely  |
|
Back to top |
|
 |
Kiin
Joined: 10 Jun 2003 Posts: 21
|
Posted: Tue Feb 10, 2004 2:49 am Post subject: |
|
|
Yay, I'm happy with the feedback. I was afraid that no one would use it. Also, it's good that it's working for everyone. I had an odd suspicion there would be a million problems. For some reason I thought the Read Me file was hard to understand. If it was, please tell me and I'l re-write it. _________________ -Kiin |
|
Back to top |
|
 |
Kathryn618
Joined: 03 Sep 2003 Posts: 6 Location: South Carolina
|
Posted: Sun Feb 15, 2004 1:16 am Post subject: |
|
|
Kinn,
The Read Me was easy to understand. At least for me. No need to rewrite it  |
|
Back to top |
|
 |
flowerglen
Joined: 27 May 2003 Posts: 24
|
Posted: Thu Mar 04, 2004 5:58 pm Post subject: |
|
|
it says im unable to download it cause the file isnt there. point me in the right direction! |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 765 Location: Oslo, Norway
|
Posted: Fri Mar 05, 2004 11:48 am Post subject: Re: b2 Mini Stats |
|
|
All I got was: Code: |
Warning: main(/home/kiin/public_html/./b2-include/b2template.functions.php): failed to open stream: Input/output error in /home/kiin/public_html/blog.header.php on line 11
Fatal error: main(): Failed opening required '/home/kiin/public_html/./b2-include/b2template.functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kiin/public_html/blog.header.php on line 11 |
_________________ VOTE for Female of the Year 2004 NOW! |
|
Back to top |
|
 |
flowerglen
Joined: 27 May 2003 Posts: 24
|
Posted: Fri Mar 05, 2004 11:37 pm Post subject: |
|
|
when i go to unzip it, it says no files to extract. |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 765 Location: Oslo, Norway
|
Posted: Mon Mar 08, 2004 10:03 am Post subject: |
|
|
Ehh..
If you take a look at http://www.Sigg3.net you'll see (beneath the last post (on the byline there): post number 244 by... which is the in-system command known as <?php the_ID() ?>.
On your top right, below the sign "QUICKIES" you'll see your own, b2ministats, script - and you'll probably notice that this counter says that the number of posts is 232, which is wrong. Now, I really want to use that script, but if it is wrong - why should I?
Great script allthogether, though. Thanks for all help:) _________________ VOTE for Female of the Year 2004 NOW! |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 765 Location: Oslo, Norway
|
Posted: Wed Mar 10, 2004 11:51 am Post subject: |
|
|
This is really embarassing. My latest post is 244, something the reader might notice, then - the reader continous to notice - my big (b2ministat enhanced) box on my top-right saying: 233 posts, 148 comments. This leaves me to not trust the b2ministats script on account of posts, but why - oh why - make a count-post script that doesn't count correctly?
http://www.sigg3.net
Now, I am bitchy, but no bitch, so don't just f**k me.
Thanks for all help:) _________________ VOTE for Female of the Year 2004 NOW! |
|
Back to top |
|
 |
edreams
Joined: 16 Mar 2004 Posts: 4 Location: AZ, USA
|
Posted: Tue Mar 16, 2004 10:44 pm Post subject: |
|
|
ok, I have a question with this, it may be a really dumb question but anyhow...
I just started b2 yesterday, I used this hack, but then had to delete a post...
it says 1 post (which it should), but then it says 2 comments (when I have none now)... how can I get the comments to 0???
Thanks! |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 765 Location: Oslo, Norway
|
|
Back to top |
|
 |
PDdotORG
Joined: 16 Jan 2004 Posts: 6 Location: Camp Pendleton, CA
|
Posted: Wed Mar 17, 2004 10:53 pm Post subject: |
|
|
I have noticed that the hack includes all entries, deleted or not. I don't have a problem with it, but for those who's post counts are incorrect... that may be why. |
|
Back to top |
|
 |
|