We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Multiple criteria issues in Ratings Module

Development and Programming

Andy White's avatar
Andy White
18 posts
18 years ago
Andy White's avatar Andy White

It’s possible I missed a response to this, but my eyes are blurry after bashing my head against a brick wall all day. I also posted this on the Solspace forum, but figured I’d post it here too in case more people look here…

This is all on a dev machine, so I can’t give links to it, in case anyone able to help asks, but here goes anyway…

I’ve set up my fields - review, rating1, rating2 rating3, rating4. Ultimately, rating 1 will equate to something like service, rating 2 will equate to cleanliness and so on. Each post will be about a particular ‘customer experience’, and readers will have the opportunity to give a review of their own experience of that outlet, and rate it according to those criteria. So far so good - form collects reviews and ratings, and I can get them to display against the post as numerical values, so I know all of that is working. But then I hit a problem when I try and make it pretty…

{stars}{rating1}{/stars}
{stars}{rating2}{/stars}
{stars}{rating3}{/stars}
{stars}{rating4}{/stars}

returns:

***
{stars}1{/stars}
{stars}4{/stars}
{stars}3{/stars}

for example - ie it will display one star rating and the rest it just returns the numerical rating wrapped in a {stars} tag

But, and here’s the odd thing - or even odder thing, at least to me - if I try:

{stars}{rating1}{/stars}
{circles}{rating2}{/circles}
{bar}{rating3}{/bar}
{stars}{rating4}{/stars}

I get:

***
OOOO
[] [] []
{stars}2{/stars}

for example.

Suffice to say I am bemused. I’ve poked around the module, extension and language files and decided to leave well alone lest I wreak complete havoc, so any help would be much appreciated. I need it to show all 4 criteria as stars, or as circles or as bars, but for the life of me I can’t make it happen.

Aside from this issue - I’d like to congratulate all at Solspace on this module - it totally rocks!

Thanks in advance

Andy

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.