Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#11 2012-01-04 08:52:43
- CeBe
- Plugin Author
- From: Caen - Fr
- Registered: 2010-06-25
- Posts: 344
- Website
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
elwins a écrit:
topics and Voting result dont shows correctly
I’m not completely sure, but couldn’t it be a browser or even server issue ? Like some caching somewhere.
Finally I’m not sure at all … I just wonder if I only understood the question (sorry).
Could you please post your piece of code ?
milosevic a écrit:
The plugin asumes that every time is invoqued it must to show a lot of info.
You’re right, this is too much, especially when not giving the ability to vote.
@both (and others) : it’s been a long time since I wrote this plugin, just need some time to re-dive into it.
Last edited by CeBe (2012-01-04 10:55:27)
Offline
#12 2012-01-05 14:53:11
- CeBe
- Plugin Author
- From: Caen - Fr
- Registered: 2010-06-25
- Posts: 344
- Website
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
V0.3 published:
<txp:cbe_helpful_score />
can now be used as a standalone tag; this avoids excessive output.- some bugs fixes
Offline
#13 2012-01-06 11:31:08
- milosevic
- Member
- From: Madrid, Spain
- Registered: 2005-09-19
- Posts: 388
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
Great! I’ll vive It a try as son as possible. Thank You very much.
Last edited by milosevic (2012-01-06 11:31:40)
<txp:rocks/>
Offline
#14 2012-01-12 05:36:31
- elwins
- Member
- From: Latvia
- Registered: 2011-08-29
- Posts: 80
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
Form
<div class="teksts">
<div class="nav-vh"><h3><txp:permlink><txp:title /></txp:permlink></h3></div>
<txp:rah_external_output name="vote"/>
<p><txp:body /></p>
</div>
ListForm
<txp:cbe_helpful_list limit="10">
<txp:permlink><txp:title /></txp:permlink> [<txp:cbe_helpful_score />]
</txp:cbe_helpful_list>
Vote(rah_external_output):
<txp:cbe_helpful labeltag="h5">
<txp:cbe_helpful_yes />
<txp:cbe_helpful_no />
</txp:cbe_helpful>
Now it Just dont work! When I press button Vote then adds +1, from 0 article gets 1 point, after page refresh again there is 0 points, they Just dont add! :(
Last edited by elwins (2012-01-12 05:40:29)
Offline
#15 2012-01-12 07:46:48
- CeBe
- Plugin Author
- From: Caen - Fr
- Registered: 2010-06-25
- Posts: 344
- Website
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
Elwins, sorry, I can’t see what’s wrong. I’ve just tried, it works.
What version of jquery do you use ? Mine is 1.6.1
Could also be a database issue: can you access your database and see tables named cbe_helpful_*
?
Offline
#16 2012-01-12 11:23:25
- elwins
- Member
- From: Latvia
- Registered: 2011-08-29
- Posts: 80
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
1.6.1 On one Web all working fine, but on other dont, I dont work whats wrong too, yes I can.
cbe_helpful_counts I think that there should add votes, but its empty..
I have tables:
cbe_helpful_counts
cbe_helpful_prefs
cbe_helpful_votes
rah_external_output
soo_multidoc
textpattern
txp_category
txp_css
txp_discuss
txp_discuss_ipban
txp_discuss_nonce
txp_file
txp_form
txp_hak_tinymce
txp_image
txp_lang
txp_link
txp_log
txp_page
txp_plugin
txp_prefs
txp_ratings
txp_section
txp_users
Last edited by elwins (2012-01-12 11:24:37)
Offline
#17 2012-01-12 14:32:52
- CeBe
- Plugin Author
- From: Caen - Fr
- Registered: 2010-06-25
- Posts: 344
- Website
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
Tables cbe_helpful_counts
and cbe_helpful_votes
should be both populated by the snippet called cbe_helpful_ajax
. You will find it in rah_external_output
. Is it there ?
Offline
#18 2012-01-12 15:35:32
- elwins
- Member
- From: Latvia
- Registered: 2011-08-29
- Posts: 80
Offline
#19 2012-01-12 16:08:36
- CeBe
- Plugin Author
- From: Caen - Fr
- Registered: 2010-06-25
- Posts: 344
- Website
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
Scratching my head, wondering if your database has a problem.
What happens if you set production status to ‘debug’ ?
Offline
#20 2012-01-12 16:12:53
- elwins
- Member
- From: Latvia
- Registered: 2011-08-29
- Posts: 80
Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)
nothing, all looks okay.
hmm, he adds point, but after refresh it disappears, and dont add to database.
My plugins:
Last edited by elwins (2012-01-12 16:15:06)
Offline