2 of 2
2
Just purchased - Couple questions and a couple problems
Posted: 17 March 2008 08:43 PM   [ Ignore ]   [ # 16 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18
deronsizemore - 17 March 2008 06:03 PM

Success! Although, I’m still confused as to what could be going on here. In your last post, you said that you could not get overall_count variable to work but you were able to get the no_results conditional to work outside of a weblog entries loop. Yet, in your example, unless I’m seeing things, you used overall_count, not no_results?

I couldn’t get overall_count to work either and just used the code you posted only changed overall_count to no_results and now it works. Was your last post just a typo?

Yes, that was a typo… sorry! LOL
I actually just took your code and broke up the Weblog:Entries loop, and forgot to switchup the conditional rasberry

As for your other issue.... what are you using… the {if overall_count}, or {if no_results}?

 Signature 
Profile
 
 
Posted: 17 March 2008 08:47 PM   [ Ignore ]   [ # 17 ]
Sr. Member
RankRankRankRank
Total Posts:  149
Joined  2007-02-19

I’ve tried both the {if overall_count} as well as {if no_results} and neither one has any effect whatsoever on the text displayed. Which, really, really seems weird since they work in other instances in that same area there, so I assumed it had to be me mucking up the conditional as to why it wasn’t working. I mean, the {if overall_count} works in this case for the “s” to show when more than one rating:

<class="reviewsBasedOn">Based on {overall_count} review{if overall_count !="1"}s{/if}</p>

So I really can’t see why it won’t work in this instance:

{if overall_count == "0"}<class="reviewsBasedOn">No reviews yet</p>{/if}

Profile
 
 
Posted: 17 March 2008 08:50 PM   [ Ignore ]   [ # 18 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

Sorry Deron… it’s late… I’m a little lost, haha LOL

What is it you want it to show exactly… and what is and isn’t showing? smile

 Signature 
Profile
 
 
Posted: 17 March 2008 09:11 PM   [ Ignore ]   [ # 19 ]
Sr. Member
RankRankRankRank
Total Posts:  149
Joined  2007-02-19

hehe, I know how you feel. I think I’ve been looking at this too too long. I’ll be going to sleep after this post and maybe it will make more sense in the morning? wink

Anyway, if you check out this entry: http://www.kentuckygolfing.com/courses/details/valhalla-golf-club and you can see the course rating in the top left by the map. Right below the stars should be “rated 4 times” or whatever. What I’m trying to do is, on the entries in which do not have a rating yet, in place of “rated 4 times” I’m trying to show “No ratings yet” or similar.

Thanks

Profile
 
 
Posted: 17 March 2008 09:15 PM   [ Ignore ]   [ # 20 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

That’s what I thought....

But have you tried tucking in that text with the stars {if no_results} conditional?

{if no_results}
  
<img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" />
<
p>No results yet</p>
  
{/if}

 Signature 
Profile
 
 
Posted: 18 March 2008 05:40 AM   [ Ignore ]   [ # 21 ]
Sr. Member
RankRankRankRank
Total Posts:  149
Joined  2007-02-19
Pie Man - 17 March 2008 09:15 PM

That’s what I thought....

But have you tried tucking in that text with the stars {if no_results} conditional?

{if no_results}
  
<img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" /><img src="http://www.kentuckygolfing.com/themes/rating_themes/default/images/star-0.gif" alt="0" border="0" class="rating_star" />
<
p>No results yet</p>
  
{/if}

Uuhhhhhg! I’m really sorry. Yes, that worked perfectly. I had tunnel vision I suppose and couldn’t see the most obvious solution to my problem. I guess that’s what I got you for, right? To point out the obvious? wink

Hopefully I can leave you alone for a while now on the ratings module matter. wink

Thanks again.

Profile
 
 
Posted: 18 March 2008 06:13 AM   [ Ignore ]   [ # 22 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

Hahaha… just don’t buy anything else.... please! rasberry LOL

Just kidding.... you’re welcome to bug me anytime wink

 Signature 
Profile
 
 
   
2 of 2
2