The vB Geek

The vB Geek (
-   Geek Article and Review System (
-   -   custom message if no rating (

atasteofchaos 08-13-2009 08:31 PM

custom message if no rating
I'm trying to show a single peice of text saying "No ratings yet" if no member has rated a CD that's been reviewed.

I changed the template "GARS_rating_result_bit" to this:


<if condition="$na">
<td align="$stylevar[left]" class="alt1active" style="white-space: nowrap;" colspan="2">
No ratings yet</td></tr>
<else />
<tr><td align="$stylevar[left]" class="alt1active" style="white-space: nowrap;">$question[text]</td><td  class="alt1active" align="$stylevar[right]">$rating_value</td></tr>

But it just repeats the line "No ratings yet" in place of the different things you can rate. Where can I edit this and also remove the "0 users rated..." part too if no one has rated yet. But show it all when someone has rated.

Here's the page I mean:

Morgan 08-15-2009 05:46 PM

The GARS_rating_result_bit template is for each rating bit so it would show each time. There is a $bits variable in the following templates that you might be able to edit, but as $bits contains all the bits from each rating, you might not be able to do just one "no ratings yet" unless you edit the code:


The "0 users rated..." text comes from the following phrases. Go to the ACP -> Languages & Phrases -> Search in Phrases and in the Search for Text box do a search for each of these (make sure to mark the Phrase Variable Name Only radio button) and there you can edit the phrases:


atasteofchaos 08-19-2009 07:27 AM

They seem to have managed it on this site:

I don't know if there will still be no member rating when you view it but if you view a review with no member rating on there site there's a custom yellow box saying "No one has rated yet, be the first..." kind of thing.

Any ideas?

Morgan 09-10-2009 04:54 PM

It sounds like a code edit to the $bits variable in the code and then maybe a template conditional to display the message.

atasteofchaos 12-18-2009 01:54 PM

Sorry it's been a while... do you know how i can do this? Bit of a novice - would love the feature... :)

Morgan 01-02-2010 02:33 AM

Sorry, haven't done it so the best advice I can give for the modification is in post two.

atasteofchaos 01-20-2010 04:43 PM

Hey. Just checking in to say that I cracked it and this is how it's done:

In the template, GARS_rating_result_bits1:


<if condition="$numberofusers < 1">

No one has rated yet.

<else />


Easy peasy! :)

All times are GMT. The time now is 11:26 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.