Rate This Module

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Zappa
Forum Members
Forum Members
Posts: 53
Joined: Thu Jan 04, 2007 9:44 pm

Rate This Module

Post 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
Last edited by Zappa on Mon Apr 09, 2007 9:40 pm, edited 1 time in total.
cyberman

Re: Rate This Module

Post 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.
Zappa
Forum Members
Forum Members
Posts: 53
Joined: Thu Jan 04, 2007 9:44 pm

Re: Rate This Module

Post 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
cyberman

Re: Rate This Module

Post by cyberman »

Hmm, have not tried yet to insert more than one "RateThis" call per page.

Have you tried it ?
Last edited by cyberman on Wed Apr 11, 2007 7:06 pm, edited 1 time in total.
Zappa
Forum Members
Forum Members
Posts: 53
Joined: Thu Jan 04, 2007 9:44 pm

Re: Rate This Module

Post 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  :-[
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm
Location: Marlow, UK

Re: Rate This Module

Post 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.
Post Reply

Return to “Developers Discussion”