Joomla Bible Study

...components for the glory of God
Welcome, Guest
Please Login or Register.    Lost Password?

How to Reset Study Hit Counter to Zero?
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: How to Reset Study Hit Counter to Zero?
#1900
How to Reset Study Hit Counter to Zero? 5 Months, 1 Week ago  
I have not yet found a way to reset the study hit counters to zero. Now that I am 95% satisfied with my installation it's time to make it available to registered users on my site, but I would like to measure their use from this date - not my numerous tests during development. What have I missed?
Gerald Kiffiak
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1901
Re: How to Reset Study Hit Counter to Zero? 5 Months, 1 Week ago  
If you have access to phpmyadmin, you could use sql:
Code:

UPDATE `jst_bsms_studies` SET hits = 0 


(the jst prefix for table name might be different for you..)

Could temporarily install the joomMyAdmin component if you don't have access to phpmyadmin easily..
extensions.joomla.org/extensions/hosting...base-management/3284

But you must uninstall it straight away afterwards cos it would be a security issue otherwise.
Richard Hunt
Moderator
Posts: 48
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/18 03:03 By richardjahunt.
The administrator has disabled public write access.
 
#1902
Re:How to Reset Study Hit Counter to Zero? 5 Months, 1 Week ago  
Thanks Richard. That's what I thought was the only way. That's more trouble and risk than this it is worth to me right now. I will just save a screenshot of the study listing showing current hit values and subtract those figures from future ones. Thanks again!
Gerald Kiffiak
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1903
Re:How to Reset Study Hit Counter to Zero? 5 Months, 1 Week ago  
If you want to reset the counters for all of your studies, what you can do is go into PHPmyAdmin to the "jos_bsms_studies" and delete the "hits" attribute. That will delete the hits from all of the records (and temporarily break the component). Then, re-add the "hits" attribute, and set a default value of to "0". That will set the hits for all of the studies to 0. Make sure you maintain the same properties of the original attribute. I believe you just have to make it an INT() dataType.
Eugen
Moderator
Posts: 147
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1904
Re:How to Reset Study Hit Counter to Zero? 5 Months, 1 Week ago  
I'll put in a feature request to make this an option - maybe as a custom button on the top of a study.

SQL might be EMPTY hits FROM #__bsms_studies where id = $cid

Tom
Tom
Administrator
Posts: 855
graph
User Offline Click here to see the profile of this user
"You shall know the truth and the truth shall set you free." JC
The administrator has disabled public write access.
 
#1905
Re:How to Reset Study Hit Counter to Zero? 5 Months, 1 Week ago  
Is there any way to stop search robots from upping the hit counter, without stopping them from indexing your sermons? (Probably a generic Joomla! question.)
Jonathan West
Senior Boarder
Posts: 66
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12