Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] tcm_rating: TXP Rating System
Also, I’m considering a slight change of the database structure. Would anyone know the advantages/disadvantages of using a table with a row with the average rating and number of ratings, rather than recording each rating individually? I think it would be a bit quicker and smaller.
Offline
Re: [archived] tcm_rating: TXP Rating System
What it does – output the number of times an article has been rated.
Offline
Re: [archived] tcm_rating: TXP Rating System
It doesn’t work for the links section and it doesn’t look like it ever will. I can’t get the ID of the from within the link form, and since identical links can be posted, I can’t figure out the ID by putting the link in the plugin tags… so I’m pretty stuck on that.
Offline
Re: [archived] tcm_rating: TXP Rating System
I’m trying to get the stars for this plugin to work but can’t quite figure it out.
“it needs two more arguments, img, which is the path of the “on” image, and offimg, which is the path of the “off” image.”
Where do I put the path info in?
Offline
Re: [archived] tcm_rating: TXP Rating System
you put them in as arguments for the rating_output tag. for instance, < txp:tcm_output img=”/path/to/onimage.gif” />
Offline
Re: [archived] tcm_rating: TXP Rating System
excellent….thank you kind sir.
Offline
Re: [archived] tcm_rating: TXP Rating System
I’d really like to use this, but it has sort of disappeared from your site! Where can I get it?
Offline
Re: [archived] tcm_rating: TXP Rating System
oh sorry, I moved it to the plugins directory
Offline
Re: [archived] tcm_rating: TXP Rating System
Tom:
I completely hacked up your plugin and changed it to just use the output tag. So now it will not show the rating unless someone has already rated it from that IP address. If you are interested, take a look
Offline
Re: [archived] tcm_rating: TXP Rating System
very cool, but it’s telling me that I’ve already rated it, and I haven’t…
Offline
Re: [archived] tcm_rating: TXP Rating System
Interesting. I redid everything so that it still uses both plugins, but now I set it so it will check if the $diff is less than 5000000000000 to prevent (as much as I can) multiple votes from one IP. If there is a better way, I would sure appreciate some explanation. I also just hacked it up so that you can just click the appropriate radio input and it will rate it (using a short little javascript), instead of having to click the submit button (which is now gone).
Offline
Re: [archived] tcm_rating: TXP Rating System
I’m now getting the rating input… maybe somebody going through the same server as me had voted?
Offline