Browsing this Thread:
1 Anonymous Users
Resetting article number of reads |
||
---|---|---|
Just popping in
Joined:
2005/3/14 13:26 Group:
Registered Users Posts:
8
Level : 1; EXP : 73
HP : 0 / 18 MP : 2 / 1031 |
Is it possible to reset the number of reads displayed next to an article. I know it must be a field in the database but I was wondering if there's an easy way to do it without hacking the database.
I've been creating and reading lots of articles in a beta phase. I'd like to clear the read figures before posting the articles module to the general user base. can I reset the number of reads in Articles for XOOPS O.18?
Posted on: 2005/3/17 9:25
|
|
Transfer |
Re: Resetting article number of reads |
||
---|---|---|
Webmaster
Joined:
2003/11/7 20:56 Group:
Webmasters Registered Users Posts:
137
Level : 10; EXP : 75
HP : 0 / 243 MP : 45 / 14621 |
There isn't any way to reset and/or change the view count from within the articles admin at present.
I have considered adding the count to the edit form, but I know people will "cheat", and well, you know... I will perhaps add some sort or reset function for a future release.
Posted on: 2005/3/17 19:07
|
|
Transfer |
Re: Resetting article number of reads |
||
---|---|---|
Just popping in
Joined:
2005/3/14 13:26 Group:
Registered Users Posts:
8
Level : 1; EXP : 73
HP : 0 / 18 MP : 2 / 1031 |
Thanks for the reply!
Articles for XOOPS is a great module. You can see my implmentation here: http://ajet.net/xoops/modules/articles/ I did need to reset the articles read values so in the end, I used PHPMyAdmin and the SQL query : UPDATE `xoops_articles_main` SET `art_views` = 0; to reset the articles count. I can understand your not wanting to allow users to manually set(or artificially increase) the number of reads. However the ability to reset the number of reads to 0 seems reasonable to me for the webmaster. Alternatively, you could run a user check routine to see if the user is the admin/webmaster before updating the art_views field, excluding the admin so that only regular users visits update the field. In any case, thanks alot for developing such a great article module. It's simple and effective. I can only imagine the work that goes into something like this. Well done. Keep up the good work! regards, David Thomas.
Posted on: 2005/3/20 6:54
|
|
Transfer |
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.