Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,451
Join Date: Jan 2006
Location: United Kingdom
Queries to reset article, downloads (etc) view counters - 21-03-2008, 05:07 PM

Unfortunately this cannot be done via the interface, yet.

In the meantime, use these SQL queries to quickly do it (first is for KB articles, second for download items, third for troubleshooters.

Code:
UPDATE `DBNAME`.`swkbarticles` SET `views` = '0';
UPDATE `DBNAME`.`swdownloaditems` SET `totaldownloads` = '0'; 
UPDATE `DBNAME`.`swtroubleshootercat` SET `views` = '0';
To reset the counters for knowledgebase category number 20;

Code:
UPDATE `dmca_ss`.`swkbarticles`,`dmca_ss`.`swkbarticlelinks` SET swkbarticles.views = '0' WHERE swkbarticlelinks.kbcategoryid = 20 AND swkbarticles.kbarticleid = swkbarticlelinks.kbarticleid
Use the above query as a template as your own. It uses an implicit join to connect the articles to their respective categories.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Tags
article, counters, downloads, queries, reset

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Knowledgebase Ability to reset article views globally, by category or by article Jamie Edwards Will Implement (V4) 1 20-08-2008 10:57 AM
How to VIEW a PRIVATE KB Article? NC Software How do I? 5 05-04-2008 01:42 PM
Back-Link missing on KB article view grahl Wont Implement / Already Implemented 2 10-12-2007 09:57 AM
Downloads 'View downloads' link when viewing download categories Aaron Feature Requests 0 16-11-2007 08:37 PM
[HOW-TO] Reset Article ID counters rgvodden SupportSuite, eSupport and LiveResponse 5 14-06-2006 03:40 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47