Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-06-15 17:55:48
- the_new_guy
- Member
- Registered: 2005-01-13
- Posts: 18
Is there a plugin that says how many times an article has been viewed?
I can’t find one, is there one around? Thanks, it would be wonderful.
Offline
#2 2005-06-15 18:14:24
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: Is there a plugin that says how many times an article has been viewed?
I’ve made one, ajw_pageviews, that is currently in an unreleased state of limbo. Problem being, it needs a place to store the pageview values. The only space available is the table in mysql for preferences (txp_prefs) and it’s max storage capacity is too small to handle all the pageview values for anything bigger than a small website. So either ajw_pageviews needs to write to a hard file (ew), create a new table entirely (ugh), or txp_prefs needs to change (doubtful).
So the answer to your question is yes, but no.
Offline
#3 2005-06-15 18:15:47
- the_new_guy
- Member
- Registered: 2005-01-13
- Posts: 18
Re: Is there a plugin that says how many times an article has been viewed?
> Andrew wrote:
> I’ve made one, ajw_pageviews, that is currently in an unreleased state of limbo. Problem being, it needs a place to store the pageview values. The only space available is the table in mysql for preferences (txp_prefs) and it’s max storage capacity is too small to handle all the pageview values for anything bigger than a small website. So either ajw_pageviews needs to write to a hard file (ew), create a new table entirely (ugh), or txp_prefs needs to change (doubtful).
So the answer to your question is yes, but no.
Thanks Andrew for the information.
Offline
#4 2005-06-15 18:19:27
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: Is there a plugin that says how many times an article has been viewed?
I’ll keep ya posted on any change
Offline
#5 2005-06-15 19:11:23
- igner
- Plugin Author
- Registered: 2004-06-03
- Posts: 337
Re: Is there a plugin that says how many times an article has been viewed?
@Andrew – what’s so ugly about creating a new table? Since the mysql user that TXP uses has to have create rights, it shouldn’t be too tough to include a conditional to test for the existence of the table and create it programmatically if it doesn’t exist.
I can’t imagine the create table statement or the existence checks would add much overhead to the file…or is adding tables to the TXP database frowned upon in plugin creation?
And then my dog ate my badger, and the love was lost.
Offline
#6 2005-06-15 19:31:13
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: Is there a plugin that says how many times an article has been viewed?
I’m not really sure actually; I guess it’s more that the jury is still out on the issue of where to store plugin info. There have been a couple discussions lately, but I’d rather there be a native textpattern solution to data storage of something like this.
Offline
Re: Is there a plugin that says how many times an article has been viewed?
creating a new table would be a last resort I think – i don’t want to add anymore to what’s already there if it can be helped. hopefully a solution can be found as this will be a very nice stat plugin
Offline
Re: Is there a plugin that says how many times an article has been viewed?
There is a plugin, I wrote one, but you need to create a table to store the information: Request Count. It’s not that hard to set up.
Offline
#9 2005-06-16 16:40:46
- the_new_guy
- Member
- Registered: 2005-01-13
- Posts: 18
Re: Is there a plugin that says how many times an article has been viewed?
> ramanan wrote:
> There is a plugin, I wrote one, but you need to create a table to store the information: Request Count. It’s not that hard to set up.
Thanks, I’ll try and set it up. Appreciate the information.
Offline