boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

b2 Mini Stats
Goto page 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
Kiin



Joined: 10 Jun 2003
Posts: 21

PostPosted: Fri Feb 06, 2004 5:29 am    Post subject: b2 Mini Stats Reply with quote

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
View user's profile Send private message
Mellissa



Joined: 17 Nov 2002
Posts: 29
Location: Malaysia

PostPosted: Fri Feb 06, 2004 9:40 am    Post subject: Reply with quote

Ahh thank you so much, I've been wanting this Razz
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Ambiguous7286



Joined: 06 Feb 2004
Posts: 3

PostPosted: Fri Feb 06, 2004 10:19 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message AIM Address
PDdotORG



Joined: 16 Jan 2004
Posts: 6
Location: Camp Pendleton, CA

PostPosted: Sat Feb 07, 2004 3:33 am    Post subject: Reply with quote

Great hack!! Thanks! It's exactly what I needed. b2stats was just giving me problems left and right.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Kathryn618



Joined: 03 Sep 2003
Posts: 6
Location: South Carolina

PostPosted: Sun Feb 08, 2004 4:14 am    Post subject: great hack Reply with quote

Works nicely Smile
Back to top
View user's profile Send private message
Kiin



Joined: 10 Jun 2003
Posts: 21

PostPosted: Tue Feb 10, 2004 2:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Kathryn618



Joined: 03 Sep 2003
Posts: 6
Location: South Carolina

PostPosted: Sun Feb 15, 2004 1:16 am    Post subject: Reply with quote

Kinn,
The Read Me was easy to understand. At least for me. No need to rewrite it Smile
Back to top
View user's profile Send private message
flowerglen



Joined: 27 May 2003
Posts: 24

PostPosted: Thu Mar 04, 2004 5:58 pm    Post subject: Reply with quote

it says im unable to download it cause the file isnt there. point me in the right direction!
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 613
Location: Oslo, Norway

PostPosted: Fri Mar 05, 2004 11:48 am    Post subject: Re: b2 Mini Stats Reply with quote

Kiin wrote:

You can see the script in action at http://euphonism.net ~


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

_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
flowerglen



Joined: 27 May 2003
Posts: 24

PostPosted: Fri Mar 05, 2004 11:37 pm    Post subject: Reply with quote

when i go to unzip it, it says no files to extract.
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 613
Location: Oslo, Norway

PostPosted: Mon Mar 08, 2004 10:03 am    Post subject: Reply with quote

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:)
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Sigg3



Joined: 03 Jul 2003
Posts: 613
Location: Oslo, Norway

PostPosted: Wed Mar 10, 2004 11:51 am    Post subject: Reply with quote

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. Very Happy
Thanks for all help:)
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
edreams



Joined: 16 Mar 2004
Posts: 4
Location: AZ, USA

PostPosted: Tue Mar 16, 2004 10:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 613
Location: Oslo, Norway

PostPosted: Wed Mar 17, 2004 11:46 am    Post subject: Reply with quote

I kept the comments-count (pretty hidden now) but deleted the post count.. sorry!
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PDdotORG



Joined: 16 Jan 2004
Posts: 6
Location: Camp Pendleton, CA

PostPosted: Wed Mar 17, 2004 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group