Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2008-01-11 14:21:20

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

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

#26 2008-01-11 15:12:07

blueprint
Member
From: Netherlands
Registered: 2006-03-05
Posts: 43
Website

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

#27 2008-01-11 15:17:04

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

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

#28 2008-01-11 17:27:58

blueprint
Member
From: Netherlands
Registered: 2006-03-05
Posts: 43
Website

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

#29 2008-01-11 17:32:53

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

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

#30 2008-01-11 21:09:30

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

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

#31 2008-01-19 21:19:07

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#32 2008-01-19 21:27:34

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: wlk_helpful, a rating plugin

hmmm….that’s unfortunate…

Offline

#33 2008-01-19 21:28:31

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: wlk_helpful, a rating plugin

….just tried it. Seemed to work.

Offline

#34 2008-01-19 22:03:05

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#35 2008-01-19 23:03:26

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#36 2008-01-23 00:50:19

karl.dvx
Member
Registered: 2007-11-20
Posts: 33
Website

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

Board footer

Powered by FluxBB