Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2004-07-16 19:45:57

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#14 2004-07-17 03:31:07

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_rating: TXP Rating System

tcm_ratingcount

What it does – output the number of times an article has been rated.

Offline

#15 2004-07-17 22:09:11

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#16 2004-09-12 21:23:09

Tom Alday
Member
Registered: 2004-04-27
Posts: 38
Website

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

#17 2004-09-12 21:49:44

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#18 2004-09-12 21:56:37

Tom Alday
Member
Registered: 2004-04-27
Posts: 38
Website

Re: [archived] tcm_rating: TXP Rating System

excellent….thank you kind sir.

Offline

#19 2005-01-06 01:41:57

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

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

#20 2005-01-06 01:44:05

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_rating: TXP Rating System

Offline

#21 2005-01-06 06:00:33

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

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

#22 2005-01-06 20:25:36

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#23 2005-01-06 23:41:59

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

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

#24 2005-01-07 00:01:02

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

Board footer

Powered by FluxBB