Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-08 04:16:08

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

wlk_helpful, a rating plugin

wlk_helpful

A rating plugin.

Read about it here.
Download it here (get the js here).
See the demo here.

Last edited by Walker (2008-01-08 04:16:24)

Offline

#2 2008-01-08 04:32:54

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: wlk_helpful, a rating plugin

This looks pretty awesome! I wonder if Alicson has the time to add it to txp.org

Offline

#3 2008-01-08 04:34:25

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

Re: wlk_helpful, a rating plugin

I’ll add it as soon as she resets my account there (I already filed a request).

I lost my u/p combo.

Offline

#4 2008-01-08 04:47:03

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: wlk_helpful, a rating plugin

well yeah it’ll be great to have it on txp.org, but I meant using it on txp.org. We could use it to rate plugins and provide a most popular section.

Offline

#5 2008-01-08 06:31:15

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

Re: wlk_helpful, a rating plugin

ah. I see. that is a nice idea.

Offline

#6 2008-01-08 13:57:11

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: wlk_helpful, a rating plugin

Walker, I’ve reset your TXP.org password, check your email ;)

The “js” link on http://walkerhamilton.com/wlk_helpful is broken (typo)

Perhaps for TXP.org a time dependant rating system would be nicer, because new plugins are released that are better than previous plugins. If you’re ranking on vote ratio (positive votes divided by total votes), that would work, but only if people actually vote negatively. I suspect that you’ll see a lot of positive votes and that causes trouble when comparing old with new plugins, because the old once have had more time to gather votes and they did so in a time when there was not as much competition.

Offline

#7 2008-01-08 14:42:04

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: wlk_helpful, a rating plugin

this might come in handy, thanks!

Offline

#8 2008-01-08 14:57:14

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

Re: wlk_helpful, a rating plugin

@ruud

Thanks for reporting that link. (I misstyped my domain! whoops)

Offline

#9 2008-01-08 15:06:08

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

Re: wlk_helpful, a rating plugin

Hey! Ya know what!!? I’m going to offer two different options of computing rating:

  1. Vote ratio
  2. vote positivity minus vote negativity

Last edited by Walker (2008-01-08 15:06:21)

Offline

#10 2008-01-08 15:24:18

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

Re: wlk_helpful, a rating plugin

Ok, added ratio rating as an option (v0.2)

Feed it to the txp:wlk_helpful_ajax tag using which="ratio"

Offline

#11 2008-01-08 15:24:47

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

Re: wlk_helpful, a rating plugin

Walker wrote:

vote positivity minus vote negativity

Exactly what was about to suggest…

I have some problems to make it work…
I have only the “Helpful ? Yes No” list showing but nothing happens when I click or reload…
The 6 steps of the install seems to be OK…
Well… I’ll test again later.

Nice to have such a plugin back anyway !
Thank you !


Nico

Offline

#12 2008-01-08 15:34:22

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

Re: wlk_helpful, a rating plugin

  • You linked the page to jQuery?
  • You added the js to your site following jQuery?
  • You put the wlk_helpful tag in an article form?
  • You created the wlk_helpful_ajax page & section?
  • You put ONLY the wlk_helpful_ajax tag in that page?

Then you’re done.

btw, vote positivity minus vote negativity was the default manner I built in. I added ratio after ruud’s thinking.

Last edited by Walker (2008-01-08 15:36:11)

Offline

#13 2008-01-08 15:47:55

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

Re: wlk_helpful, a rating plugin

You linked the page to jQuery?

In <head> :
<script type="text/javascript" src="/textpattern/jquery.js"></script>

You added the js to your site following jQuery?

In <head> :
<script type="text/javascript" src="/js/wlk_helpful.js"></script>
And wlk_helpful.js is actually in my js folder at the top of my install.

You put the wlk_helpful tag in an article form?

Yes sir !

You created the wlk_helpful_ajax page & section?

Yes I did.
wlk_helpful_ajax section linked to wlk_helpful_ajax page

You put ONLY the wlk_helpful_ajax tag in that page?

Only <txp:wlk_helpful_ajax /> and nothig else. I swear your honnor.
Not even a single space.

Edit :

Hey ! I have a warning at the bottom of the wlk_helpful_ajax page txp screen !

Warning: Erreur de syntaxe pr�s de ‘collate utf8_bin NOT NULL, PRIMARY KEY (`id`) )’ � la ligne 1 CREATE TABLE IF NOT EXISTS txp_wlk_helpful ( `id` int(11) NOT NULL auto_increment, `textpattern_id` int(11) NOT NULL, `plus` tinyint(1) NOT NULL, `minus` tinyint(1) NOT NULL, `ip` varchar(15) character set utf8 collate utf8_bin NOT NULL, PRIMARY KEY (`id`) ) in /mypath/textpattern/lib/txplib_db.php on line 84

Warning: Erreur de syntaxe pr�s de ‘collate utf8_bin NOT NULL default ‘0’, `pluses` varchar(5) chara’ � la ligne 1 CREATE TABLE IF NOT EXISTS txp_wlk_helpful_counts ( `id` int(11) NOT NULL auto_increment, `textpattern_id` int(11) NOT NULL, `count` varchar(5) character set utf8 collate utf8_bin NOT NULL default ‘0’, `pluses` varchar(5) character set utf8 collate utf8_bin NOT NULL default ‘0’, `minuses` varchar(5) character set utf8 collate utf8_bin NOT NULL default ‘0’, PRIMARY KEY (`id`) ) in /mypath/textpattern/lib/txplib_db.php on line 84

Last edited by Niconemo (2008-01-08 15:55:14)


Nico

Offline

#14 2008-01-08 16:03:13

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

Re: wlk_helpful, a rating plugin

haha!

woo.

whoops, there ya go. the create table sql is screwing up.

I uploaded a new version that should fix the problem. — I created new Create Table statements that are more compatible.

(1 thing to note, the database tables are created when you visit the “Presentation” tab (technically the “Pages” tab).

Last edited by Walker (2008-01-08 16:03:27)

Offline

#15 2008-01-08 16:34:36

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: wlk_helpful, a rating plugin

@Walker – feel like writing your own digg algorithm :)?

Offline

Board footer

Powered by FluxBB