PDA

View Full Version : change user rating text


atasteofchaos
08-09-2009, 03:29 PM
How can I change

"1 user rated 20% average" to "Average 20%" in the members rating box on this page:

http://www.rockonpublishing.co.uk/showthread.php?t=13

I believe it's this bit I need to change but I don't know what to!

<if condition="$dopercent == 2">
<phrase 1="$rating_total_percent">$vbphrase[GARS_author_rated_x_percent]</phrase>
<else />
<if condition="$numberofusers != 1">
<phrase 1="$numberofusers" 2="$rating_total_percent">$vbphrase[GARS_x_users_rated_y_percent]</phrase>
<else />
<phrase 1="$numberofusers" 2="$rating_total_percent">$vbphrase[GARS_x_user_rated_y_percent]</phrase>
</if>
</if>

Morgan
08-09-2009, 05:54 PM
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:

GARS_x_user_rated_y_percent
GARS_x_users_rated_y_percent

atasteofchaos
08-10-2009, 09:42 AM
Thanks Morgan.

I changed it to:

Average {2}%

but on the forum it just shows "Average 20" and misses out the percentage sign.

Morgan
08-12-2009, 06:38 PM
Look at the original text for that phrase and try the entity you see there.