Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2005-06-11 01:46:40

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: basic blog stats plugin

So… at what point do I split a feature request out into its own separate plugin? Does it make sense to have like 10 sub-plugins contained by this one, or should I break a few of these feature requests into their own individual ones?

Offline

#26 2005-06-11 02:18:13

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: basic blog stats plugin

it depends if these separate features could grow or be improved upon on their own, or whether ti’s better to have more functioanlity in one plugin with several variables.

Offline

#27 2005-06-11 18:00:27

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: basic blog stats plugin

In response to the word count request… you’re in luck – it already exists: klp_word_count

Offline

#28 2005-06-11 18:35:58

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: basic blog stats plugin

And in response to the pageviews request, I’ve managed to implelement the feature successfully (as a separate plugin). However, the main problem is storage of the pageview data itself. The “suggested” place to store plugin-related information is in txp_prefs, but that field is varchar(255), which basically means there isn’t a chance it’d be able to store serialized data for over a few dozen articles.

So then we’re back to external data storage in a flat file, which seems a bit kludgy but could be done (opinions?). It could also be done as a separate table, but if you’re going to take that route you might as well develop a full-featured statistics plugin, which I’m not really interested in developing.

I’ve added a few features to this particular package and am planning on re-releasing it under the name ajw_blog_stats (I spoke with Gordon and he’s too busy with studies to continue supporting it). I’ll probably be done testing/tweaking it sometime today or tomorrow.

Offline

#29 2005-06-11 18:44:39

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

Re: basic blog stats plugin

I wish I had something intelligent to input here, or a suggestion to make – data storage choices for this are over my head, I’m afraid.

I just felt the need to throw in a bit of cheerleading on this (hip hip hooray) so you’d know I’m still watching this intently to see what you put together on this. :)

Offline

#30 2005-06-11 18:52:26

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: basic blog stats plugin

thanks for the link andrew:)

andrew, how about releasing the plugins indivudually, but with the option to have them work together in some form? I know Mary did something like that between upm image popper and upm quicktags.

If it’s going to limit how and what features are implemented in order to achieve a certain effect, then it might be best to break it down than have an all in one solution I suppose

Offline

#31 2005-06-12 17:52:48

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: basic blog stats plugin

I’m officially retiring the gbl_post_count part of this plugin and referring people to mdn_count. As for the total comments & top commenter, they’ll get broken out into their own separate plugins (as long as they don’t also already exist elsewhere).

Here’s the first of the two: ajw_top_commenter (replaces gbl_top_comment_writer)

Offline

#32 2005-06-14 01:03:52

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: basic blog stats plugin

… and the second ajw_total_comments (replaces gbl_comment_count)

Last edited by Andrew (2005-06-14 02:05:54)

Offline

#33 2017-03-24 02:50:52

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: basic blog stats plugin

@Andrew, you are generally missed.

For others, fyi: htn_comment_count all seems to be working well in TXP 4.6.2


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

Board footer

Powered by FluxBB