Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-07-08 10:23:51

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

cbe_helpful: Visitors can rate articles (based on wlk_helpful)

This plugin has two functions: rate an article by voting plus or minus, and return a list of best (or worst) rated articles.

This is a recovery of wlk_helpful, and as such it is able, at its first activation, to recover the data.

It additionnaly provides
  • an administrator interface accessible from the panel plugins or extensions tab
  • a better control of the display
  • the ability to define a minimum lapse of time between two votes having the same IP address

Makes use of the jQuery library and rah_external_output plugin.

Info and download

Changelog:

  • 30 Apr 13 – v0.6
  • 18 Jul 12 – v0.5.1 – Fixed: path for /?rah_external_output=cbe_helpful_{js|ajax}</li> – thx douglgm
  • 16 Jul 12 – v0.5 – Now supports rah_external_output v1.0 new db structure (previous structure is no longer supported). Plugin not activated if an error occurs on rah_external_output controls. Checks if all tables are present and restore them if not.
  • 30 May 12 – v0.4 – Total votes, list based on time, fixed: miscalculation in cbe_helpful_list when sorting on score
  • 04 Jan 12 – v0.3 – fixed: unwanted markup if just displaying score, thx milosevic; fixed: cbe_helpful_label not working if standalone; fixed: avoid multiple calls to cbe_helpful_foot when displaying a list; JS code slightly revisited
  • 19 Jul 11 – v0.2.1 – fixed: non-valid html output for article id and unit, thx Pat64
  • 13 Jul 11 – v0.2 – cbe_helpful_list can now display cbe_helpful_score, cbe_helpful_yes, cbe_helpful_no; fixed: bug in list sorting when using ratio or percent display; repopulate table prefs with defaults if damaged or destroyed
  • 12 Jul 11 – v0.1.1 – Added control on value returned by getRows (cbe_helpful_list)
  • 08 Jul 11 – v0.1 – Initial release

Last edited by CeBe (2013-04-30 14:09:32)

Offline

#2 2011-07-08 14:00:10

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Incredible! Well done. I like it definitely.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#3 2011-07-08 15:36:13

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Beau boulot !


Nico

Offline

#4 2011-07-08 18:16:23

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Merci :)

Latest news:
Source data (in wlk_* tables) may in certain cases be inconsistent.
If you have problems using cbe_helpful, it may be the reason. Don’t hesitate in this case to drop a message, I’ll do my best to establish a diagnostic and help you repair what can be repaired.

Offline

#5 2011-07-08 19:29:25

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Niconemo wrote:

Beau boulot !

In French; Exactement. Plutôt douée la p’tite; hein?

International: This girl makes a very good job!


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#6 2011-07-13 16:48:08

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Version 0.2 released !

  • cbe_helpful_list can now display cbe_helpful_score, cbe_helpful_yes, cbe_helpful_no, like this :
<txp:cbe_helpful_list label="Top10" label="h2" limit="10">
  <txp:permlink><txp:title /></txp:permlink>(<txp:cbe_helpful_score />)
</txp:cbe_helpful>
  • also fixed a bug in list sorting when using ratio or percent display
  • restore and repopulate table prefs with defaults if damaged or destroyed (don’t ask me why I had this idea …)

Offline

#7 2011-07-30 15:10:35

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Looks great, but I’ve been unable to get this plugin to work. Any tips? Here’s what I checked:

jQuery is loaded and working (v1.3.2 should be OK, right?)
rah_external_output is installed and activated
cbe_helpful is activated :-)
No errors or warnings in the JS error console.

I am using the demonstration tags from the documentation. But when I click on “Yes” or “No,” nothing happens.

Please let me know if there’s anything I’m missing here. Thanks for developing this plugin!

Offline

#8 2011-07-30 16:13:03

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

maruchan a écrit:

jQuery is loaded and working (v1.3.2 should be OK, right?)

Mmmmh … not sure. The plugin was developed with jQuery 1.6.1

Offline

#9 2012-01-02 02:04:28

elwins
Member
From: Latvia
Registered: 2011-08-29
Posts: 80

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

I have problem, i have about 50 articles to rate, but topics and Voting result dont shows correctly, I press button Vote, then article have+1, but after refresh 0 again.. okay, in TOP page no changes too, but if I make some corrections in TOP form, add some simbol, or delete it refreshes from database and points, whom I tried to add, are added too, and then its like stuck again, I am using 4.3.0 version of Textpattern and:

rah_external_output 0.5
cbe_helpful 0.2.1

Last edited by elwins (2012-01-02 02:06:34)

Offline

#10 2012-01-02 08:06:44

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Hello:

Nice plugin! I’m playing with it for a new site, but I found a problem with it. The plugin asumes that every time is invoqued it must to show a lot of info.

In my case, I would like to display only de <txp:cbe_helpful_score /> in articles lists (normal article lists, not when using <txp:cbe_helpful_list />) leaving the voting functionality to the individual articles.

In my article list form tried this:

<txp:cbe_helpful label=”“ wraptag=”“><txp:cbe_helpful_score wraptag=”“/></txp:cbe_helpful> to retrieve only the score data per article, but it gives me this:

<div class=“helpfulrater”><li style=“display:none;” class=“thisid”>18</li><li style=“display:none;” class=“unit”>percent</li><span title=“Score” class=“value”> 0,00 %</span></div>

I think it is a lot of code only for display “0,00%”. Couldn’t it be possible to ad a param or something to be able to retrieve only the score of an article? ( 0,00 % in the example)?


<txp:rocks/>

Offline

#11 2012-01-04 08:52:43

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
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: 345
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

Original post for changelog and download link is here

Offline

Board footer

Powered by FluxBB