Page 1 of 1
Rate This Module
Posted: Mon Apr 09, 2007 9:39 pm
by Zappa
Hi everyone,
I would like to use the
'Rate This module from the development area and allow 3-4 different questions to be asked with a rating star for each question. I'm pretty new to PHP so would it be possible for anyone to help?
Thanks
Re: Rate This Module
Posted: Tue Apr 10, 2007 7:11 am
by cyberman
Think RateThis module is the wrong choice. You can "only" rate" a page.
For more questions you should use a poll module. There are two in CMSms Forge.
Re: Rate This Module
Posted: Wed Apr 11, 2007 4:36 pm
by Zappa
I've had a look at them polling systems only they can't be used for what I need. I'm trying to make a reviewing system which allows a user to give feedback on a product such as quality build, customer service, ease of use etc.
The problem with them polling systems is that they wont allow me to have a rating for each product page as all the results are stored in one poll?
Thanks
Re: Rate This Module
Posted: Wed Apr 11, 2007 6:10 pm
by cyberman
Hmm, have not tried yet to insert more than one "RateThis" call per page.
Have you tried it ?
Re: Rate This Module
Posted: Thu Apr 12, 2007 11:58 pm
by Zappa
Just tried that now and it is possible however the rates are logged by cookies so you can only make one rate on the page. I'm guessing that the result will be going into the same database column? HmmÂ

Re: Rate This Module
Posted: Thu Apr 19, 2007 12:04 pm
by scooper
That's right. At the moment the module uses the pageID to track the rating so putting more that one each page isn't going to work.
Now - if you only have one product on each page but want to ask 4 different questions then that's probablyt not too big a job - you'd need to expand the form to submit four separate ratings, add a few more columns into the database and then get the module to track all the values rather than just the single rating. It wouldn't be pretty but fairly stragihtforward.
On the other hand if you want to have four (or more) separate forms on a page then things are going to get messy. You'd have to get unique identifiers for each and that's not going to be easy.
How are you adding these products? If youre just a module to put them up (cataloguer?) it might be possible to use an ID from that module but on the whole I don't think it's going to be feasible.
Let me know if the first option is what you want though and I'll give it some more thought.
cheers.
s.