2 vegarg Dec 16, 2003 16:10

Hey Vegar,
Hack? This is going to go straight into the CVS code! :) I'm one of the evo developers... :)
Those are some good ideas. I'll see if I can't incorporate them. As far as setting it as one of the "disp" settings, I'm not sure how that'd be setup, but I'm sure it wouldn't be that hard.
Oops, sorry, I didn't know. :oops:
The ?disp part should be pretty easy, though, if you're planning on making something like <?php echo $blogstats['totalcmnts']; ?> for displaying it. (You get the point, even if my example is shitty code. :p)Wouldn't that be just adding another case to the disp switch? (take a look at the fplanque2002 skin, for example)
Oh, and since this is the feature request section, I'm going to suggest some more stats items :P
Oh, and another suggestion:
How are things moving along? Just curious...
-Vegar
Slowly right now... I've been working on an eCommerce site for a client, and I have two other coming up that are going to require setting up a CMS, so I'm a bit swamped :)
I've got a basic part of it done, but it's still not enough to release it.
Okay, good to hear you are making progress (if slow). I'm looking forward to getting that code. :)
I made a box for it on my [url=http://funky-m.com/index.php?disp=stats]stats page[/url] called "other facts". I tried to make it count the number of posts/comments and such myself, but I haven't been able to get it to work. In that box, that's where I'd put the statistical information you're working on. :)
-Vegar
Ask and ye shall be given...
I just added the file /b2evocore/_class_blogstats.php to the CVS and updated the _main.php file in the same directory. All it does right now is check to see the number of posts, but it's a start. :) You can download those two files from the [url=http://sourceforge.net/cvs/?group_id=85535]SourceForge.net CVS[/url].
It hasn't been tested much by me, so go ahead and try to break it! Here is how I call it:
Total blog entries:
<?php
$BlogStats = new
BlogStats( 2, // Blog
'', // year/month/(day)
'', // Week
'', // Category(s): 1,2,3
array( ), // Same as above except array
'', // Author
'', // Number of posts to display per page
'', // Start results @
'', // End results @
'', // Search string
'', // Search for sentence or words
'', // Require exact match?
'posts', // Type of display
'', // Start of display (age)
'now' ); // End of display
echo $BlogStats->total_posts;
?>
Of course, all of those variables should change the total # of posts around, so go ahead and change 'em to see what you get.
Let me know if you come across any unexpected results...
maybe u also want to take a look at http://wakka.xiffy.nl/Referrer, it's for nucleus, but it generates a real cool stats-site.
o.O
b2evo has referer stats built in already
How about
Total posts blogged Total referrals from external sites Average posts per day (sort of like an activity indicator) Average comments per day[/list:u] If you made a hack so I could get these values plus the ones you added, I'd sure like to use it for a ?disp=blogstats :) -Vegar