Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Re: [archived] tcm_rating: TXP Rating System
Does it show up on this page?
Offline
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
Re: [archived] tcm_rating: TXP Rating System
yes – it seems to be working perfectly now.
Offline
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
Re: [archived] tcm_rating: TXP Rating System
you can just check whether the $previous query is successful
Offline
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