Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: wlk_helpful, a rating plugin
Is the form an article form?
Also, check your DB and see if the tables (txp_wlk_helpful & txp_wlk_helpful_counts) actually got installed.
Offline
Re: wlk_helpful, a rating plugin
thanks for the suggestions.
The forms are indeed article forms.
I looked into the db and found that both tables were created. Furthermore, the table txp_wlk_helpful_counts is NOT empty; is has records for every article that I clicked on the helpful yes/no link. The field textpatterni_id has the right value for each record; however the fields pluses, minuses and count have the value 0 for every record.
The other table (txp_wlk_helpful) is empty.
Maybe this info can help??
Offline
Re: wlk_helpful, a rating plugin
If this is empty: txp_wlk_helpful, it means that your +/- clicks are having no affect (they’re never hitting the server, or never getting saved to the db).
txp_wlk_helpful_counts is a cache of the totals for each article and the rows in that table get created whenever an article with the counter is viewed (creates the default zero values)
Offline
Re: wlk_helpful, a rating plugin
This made it clear for me that the problem was with the javascript.
I looked into the script wk_helpful.js and I had to change line 6:
jQuery.post('/wlk_helpful_ajax', {"article_id":article_id,"up_down":'up'}, function(data){
into
jQuery.post('http://localhost/nb/wlk_helpful_ajax', {"article_id":article_id,"up_down":'up'}, function(data){
And then it worked (I’m testing this plugin om my PC, and the site is in a subdir called nb).
The only annoying thing is, that after clicking the cursor still goes to the top of the page.
Last edited by blueprint (2008-01-11 17:28:36)
Offline
Re: wlk_helpful, a rating plugin
Yeah, subdirectories would do it.
You just have to edit the js as you did….
The only annoying thing is, that after clicking the cursor still goes to the top of the page. <- you can get rid of this using jquery…..I’ll try to add it in sometime, but I’m hellishly busy right now.
Offline
Re: wlk_helpful, a rating plugin
I just uploaded a new version. If you has this plugin installed before, remove the wlk_helpful_counts table from your database and revisit the “Pages” tab, and it’ll recreate that table (correctly).
Offline
Re: wlk_helpful, a rating plugin
It’s up, (as yet unstyled) on Textpattern Resources.. could you guys let me know if it’s working properly for you?
I’ve been experiencing mixed results with its memory — I vote “yes” and it ticks off an accurate number, but if I refresh or leave the page and come back, it’s back at “0” as if I never voted. But then, it did keep one vote just now… so… let me know what you guys experience/advise. :)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Offline
Offline
Re: wlk_helpful, a rating plugin
does seem to be working consistently now. yay :)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: wlk_helpful, a rating plugin
Very helpful plugin indeed.
In a later iteration, may we have a longer/unlimited list (currently limited to 5?), maybe also separate lists of all rated / unrated articles?
Either way, thanks!
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: wlk_helpful, a rating plugin
Just installed the plugin, everything works well untill…
I’m also using the AJAX live search plugin (http://textpattern.org/plugins/634/cbs_live_search) on a website I’m working on.
Apparently I can’t use the two plugins together, they’re causing errors. When they are both activated on a page the live search works, but the wlk_helpful plugin doesn’t…
When I delete the 2 JS codes for the live search in my <head> section the wlk_helpful plugin works without any problem, pretty strange…
Example url -> http://www.alles-over.be/malediven/malediven-binnenkort-geschiedenis
Any one knows why or what is causing this error?
Maybe because wlk_helpful is using jQuery and live search MooTools?
Could I perhaps copy/paste all the JS code and put it into one main JS file?
Thanks in advance.
Offline