You are not logged in.
<txp:jmd_rate/> is a comprehensive CSS star rater that features customizable output, article_custom for ratings, and a rating-CSS generator.
<txp:hide>Either in an article or article form:</txp:hide> <txp:jmd_rate> <txp:if_jmd_rate_votes> <p> Currently rated <txp:jmd_rate_rating/>/<txp:jmd_rate_max/> after <txp:jmd_rate_votes singular="vote" plural="votes"/>. </p> <txp:else/> <p> This article hasn’t been rated. </p> </txp:if_jmd_rate_votes><txp:jmd_rate_display/><txp:if_jmd_rate_voted> <p> Thanks for voting. </p> </txp:if_jmd_rate_voted> </txp:jmd_rate>
For <txp:jmd_rate_article/>:
<txp:hide>Page or form template:</txp:hide> <ol> <txp:jmd_rate_article form="highest_rated" max_value="10" min_value="8" section="articles" /> </ol><txp:hide>Article form: highest_rated</txp:hide> <li> <txp:permlink> <txp:title/> </txp:permlink>: <txp:jmd_rate> <txp:jmd_rate_rating/>/<txp:jmd_rate_max/> </txp:jmd_rate> </li>
Many thanks to the following people:
Edit: Wrong version number (0.3 instead of 0.4).
Last edited by jm (2009-06-12 06:23:44)
Offline
Nice one jm :-) Does it make coffee when you hit gold mine? :P
Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />
Offline
It would be nice to add the “half-star” option, in case, for example, I’d like to rate a film with 2.5 stars out of 5 (filling the relative custom field).
Offline
candyman wrote:
It would be nice to add the “half-star” option, in case, for example, I’d like to rate a film with 2.5 stars out of 5
Or just make it out of 10 and stick to integers :-P
The smd plugin menagerie — for when you need one more gribble of power from Textpattern.
Txp Builders – finely-crafted code, design and Txp
Offline
Hehe nice Stef. candyman, integers make sense for the star input, but the plugin calculates the overall rating, which can draw half stars.
I’ve got a newer, more customizable version almost complete. It should be done later on today. It’s up.
Last edited by jm (2008-03-06 13:33:29)
Offline
:-(
Looks nice… but :
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /mysitepath/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 166
Erreur lors du chargement du plugin ci-dessus jmd_rate
Between step 2 an 3 of the “Getting started“…
Nico
Offline
Offline
Thanks !
edit :
;-) There is a difference :
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /mysitepath/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 303
Erreur lors du chargement du plugin ci-dessusjmd_rate
Last edited by Niconemo (2008-03-06 15:07:04)
Nico
Offline
Niconemo, are you sure that you are using it on PHP5? The version 0.1 beta worked for me, when we were testing it out.
Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />
Offline
Ops, I didn’t read carefully… I thought it was a plugin to set the star rating in review by the author of the article and not a system to allow the reader to vote the article itself…
Offline