|
Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
Advertisement | |
|
|
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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: Code:
<if condition="$na"> <tr> <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> </if> Here's the page I mean: http://www.rockonpublishing.co.uk/showthread.php?t=16 |
#2
|
||||
|
||||
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:
Code:
GARS_rating_result_bits0 GARS_rating_result_bits1 GARS_rating_result_bits2 Code:
GARS_x_user_rated_y_percent GARS_x_users_rated_y_percent
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#3
|
|||
|
|||
They seem to have managed it on this site:
http://absolutepunk.net/showthread.php?t=1270162 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? |
#4
|
||||
|
||||
It sounds like a code edit to the $bits variable in the code and then maybe a template conditional to display the message.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#5
|
|||
|
|||
Sorry it's been a while... do you know how i can do this? Bit of a novice - would love the feature...
|
#6
|
||||
|
||||
Sorry, haven't done it so the best advice I can give for the modification is in post two.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#7
|
|||
|
|||
Hey. Just checking in to say that I cracked it and this is how it's done:
In the template, GARS_rating_result_bits1: Code:
<if condition="$numberofusers < 1"> <tr> <td> No one has rated yet. </td> </tr> <else /> NORMAL CODE HERE |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to show the custom field result in "message" area ? | stckhlm | Geek Article and Review System | 1 | 12-09-2009 04:31 PM |
User Rating vs Author Rating | cykelmyggen | Geek Article and Review System | 6 | 09-10-2009 04:52 PM |
Error message | charlesa6 | Geek Article and Review System | 0 | 07-31-2007 10:02 PM |
Combining author rating and user rating | Alfa1 | Geek Article and Review System | 8 | 01-06-2007 08:49 PM |
Getting this error message... | dieselgarage | Geek Advertising Banner System | 30 | 01-25-2006 02:58 PM |