Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#25 2005-01-07 04:37:50

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

Re: [archived] tcm_rating: TXP Rating System

Does it show up on this page?

Offline

#26 2005-01-07 07:42:28

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

Re: [archived] tcm_rating: TXP Rating System

Is there any good way to do this to store the IP forever for each article rating to not allow a rating ever again?

Offline

#27 2005-01-07 13:01:13

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

Re: [archived] tcm_rating: TXP Rating System

yes – it seems to be working perfectly now.

Offline

#28 2005-01-09 23:38:05

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

Re: [archived] tcm_rating: TXP Rating System

Does anyone have any ideas on the best way to make this so any IP is not allowed to ever vote more than once?

Offline

#29 2005-01-09 23:52:43

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

Re: [archived] tcm_rating: TXP Rating System

you can just check whether the $previous query is successful

Offline

#30 2005-01-10 00:17:47

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

Re: [archived] tcm_rating: TXP Rating System

oh duh! wow I feel dumb. I changed it to just return the form if there is no previous if(!previous) and not return it if there is!

I had some other people check it, so I know that it is working now.

Thanks so much tmacwrig (your plugin rocks)

Offline

Board footer

Powered by FluxBB