Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 9 posts ] 
Problem with ratings 
Author Message

Joined: Mon Nov 25, 2002 6:31 pm
Posts: 136
Location: Piteå, Sweden
Post Problem with ratings

Hi
I have a problem with the rating showing in the newest explorer window. After rating I have the # 7. I don't want it there but I can't get it off. This is only on 1 item of 1500. On all other items I have the stars. Anyone who can help me?


Thu Nov 28, 2002 5:18 pm
Profile WWW

Joined: Tue Apr 30, 2002 11:53 am
Posts: 1919
Location: Carrù, Cuneo, ITALY
Post 

Ciao Hallstrom !
Hallstrom wrote:
After rating I have the # 7. I don't want it there but I can't get it off. This is only on 1 item of 1500. On all other items I have the stars. Anyone who can help me?

What do you mean with " After rating I have the # 7 " ? Is it the Rating value you see instead than Stars ?
Can you please explain further ?

Does it happen in Album or Tracks ?

Also: what values do you have in your Rating Table ?
Lookup > Edit Table > Locate the "Personal Rating " Table and double click on it.
You should have listed ALL the values you choosed..
Is there listed ALSO a " # 7 " value ?

Thanks in advance & take care !

_________________
The Hole Studio ® Mario Del Buono | e-mail: please Press the email button below.


Thu Nov 28, 2002 5:38 pm
Profile ICQ YIM
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Problem with ratings

hallstrom wrote:
I have a problem with the rating showing in the newest explorer window. After rating I have the # 7. I don't want it there but I can't get it off. This is only on 1 item of 1500. On all other items I have the stars. Anyone who can help me?

This happens if you use a "non standard" rating. The standard ratings in a new database are: No Rating, Poor *, Fair **, Good ***, Very Good **** and Excellent *****.

If you have added your own ratings, you will need to modify one of the XSL templates (Common-FormatRating.xsl).

The xsl code this formats the ratings looks like this:

Code:
<xsl:choose>
<xsl:when test="$rating='' or $rating='No Rating'">
  <IMG SRC="Stars0.gif"/>
</xsl:when>
<xsl:when test="$rating='Poor *'">
  <IMG SRC="Stars1.gif"/>
</xsl:when>
<xsl:when test="$rating='Fair **'">
  <IMG SRC="Stars2.gif"/>
</xsl:when>
<xsl:when test="$rating='Good ***'">
  <IMG SRC="Stars3.gif"/>
</xsl:when>
<xsl:when test="$rating='Very Good ****'">
  <IMG SRC="Stars4.gif"/>
</xsl:when>
<xsl:when test="$rating='Excellent *****'">
  <IMG SRC="Stars5.gif"/>
</xsl:when>
<xsl:otherwise>
  <xsl:value-of select="$rating"/>
</xsl:otherwise>
</xsl:choose>


As you can see, if the rating is empty ($rating='') or is equal to 'No Rating' ($rating='No Rating'), the Stars0.gif image is used. If the rating is 'Poor *' ($rating='Poor *'), Stars1.gif is used, and so on. If a match isn't found, the rating is displayed as text (<xsl:value-of select="$rating"/>).

Simply change the text between the single quotes if you use a different rating system (eg. change $rating=' Poor *' to $rating=' Mediocre').

_________________
Fredrik Nordbakke
www.fnprg.com


Thu Nov 28, 2002 5:43 pm
Profile WWW

Joined: Mon Nov 25, 2002 6:31 pm
Posts: 136
Location: Piteå, Sweden
Post Re: Problem with ratings

FredrikN wrote:
hallstrom wrote:
I have a problem with the rating showing in the newest explorer window. After rating I have the # 7. I don't want it there but I can't get it off. This is only on 1 item of 1500. On all other items I have the stars. Anyone who can help me?

This happens if you use a "non standard" rating. The standard ratings in a new database are: No Rating, Poor *, Fair **, Good ***, Very Good **** and Excellent *****.

If you have added your own ratings, you will need to modify one of the XSL templates (Common-FormatRating.xsl).

The xsl code this formats the ratings looks like this:

Code:
<xsl:choose>
<xsl:when test="$rating='' or $rating='No Rating'">
  <IMG SRC="Stars0.gif"/>
</xsl:when>
<xsl:when test="$rating='Poor *'">
  <IMG SRC="Stars1.gif"/>
</xsl:when>
<xsl:when test="$rating='Fair **'">
  <IMG SRC="Stars2.gif"/>
</xsl:when>
<xsl:when test="$rating='Good ***'">
  <IMG SRC="Stars3.gif"/>
</xsl:when>
<xsl:when test="$rating='Very Good ****'">
  <IMG SRC="Stars4.gif"/>
</xsl:when>
<xsl:when test="$rating='Excellent *****'">
  <IMG SRC="Stars5.gif"/>
</xsl:when>
<xsl:otherwise>
  <xsl:value-of select="$rating"/>
</xsl:otherwise>
</xsl:choose>


As you can see, if the rating is empty ($rating='') or is equal to 'No Rating' ($rating='No Rating'), the Stars0.gif image is used. If the rating is 'Poor *' ($rating='Poor *'), Stars1.gif is used, and so on. If a match isn't found, the rating is displayed as text (<xsl:value-of select="$rating"/>).

Simply change the text between the single quotes if you use a different rating system (eg. change $rating=' Poor *' to $rating=' Mediocre').


No that didn't do it. Check out this link and see what I mean http://img.ranchoweb.com/images/hallstrom/catraxx.jpg

Benny


Fri Nov 29, 2002 4:14 pm
Profile WWW

Joined: Tue Apr 30, 2002 11:53 am
Posts: 1919
Location: Carrù, Cuneo, ITALY
Post 

Ciao Benny
hallstrom wrote:
No that didn't do it. Check out this link and see what I mean http://img.ranchoweb.com/images/hallstrom/catraxx.jpg

As far as I can understand you should have that 7 in the rating field for that title...Did you miss my previous mail ?

Can you check if you stored " 7 " in the "Rating field" ?
That coud make a sense and you should have " 7 " listed also in the Rating Table and since CATraxx does not have a "Star image" to display for that "7" value, it simply shows the field content...

Please let me know.

Thanks in advance & take care.

_________________
The Hole Studio ® Mario Del Buono | e-mail: please Press the email button below.


Fri Nov 29, 2002 4:27 pm
Profile ICQ YIM

Joined: Mon Nov 25, 2002 6:31 pm
Posts: 136
Location: Piteå, Sweden
Post 

mdb175 wrote:
Ciao Benny
hallstrom wrote:
No that didn't do it. Check out this link and see what I mean http://img.ranchoweb.com/images/hallstrom/catraxx.jpg

As far as I can understand you should have that 7 in the rating field for that title...Did you miss my previous mail ?

Can you check if you stored " 7 " in the "Rating field" ?
That coud make a sense and you should have " 7 " listed also in the Rating Table and since CATraxx does not have a "Star image" to display for that "7" value, it simply shows the field content...

Please let me know.

Thanks in advance & take care.



No, I have nothing in the rating field except the ones there from the beginning. It's only on this post, NOT on any other record I have listed.

Benny


Fri Nov 29, 2002 5:03 pm
Profile WWW

Joined: Tue Apr 30, 2002 11:53 am
Posts: 1919
Location: Carrù, Cuneo, ITALY
Post 

Ciao Benny.
hallstrom wrote:
No, I have nothing in the rating field except the ones there from the beginning. It's only on this post, NOT on any other record I have listed.

Really weird thing there..! I sincerely cannot understand what happened.
The only way to reproduce that error here is by entering a "7" string in the Rating field.
And then I also find it regularly displayed in the Rating Table...very strange...

By the way: which version are you using ? I made my tests with v. 5.20.01

Don't know. Hope Fredrik can help you.
Take care !

_________________
The Hole Studio ® Mario Del Buono | e-mail: please Press the email button below.


Fri Nov 29, 2002 5:13 pm
Profile ICQ YIM

Joined: Mon Nov 25, 2002 6:31 pm
Posts: 136
Location: Piteå, Sweden
Post 

mdb175 wrote:
Ciao Benny.
hallstrom wrote:
No, I have nothing in the rating field except the ones there from the beginning. It's only on this post, NOT on any other record I have listed.

Really weird thing there..! I sincerely cannot understand what happened.
The only way to reproduce that error here is by entering a "7" string in the Rating field.
And then I also find it regularly displayed in the Rating Table...very strange...

By the way: which version are you using ? I made my tests with v. 5.20.01

Don't know. Hope Fredrik can help you.
Take care !


Since it was only one item I had problems with I deleted the record and filed it again and now I have no problems...

Benny


Sat Nov 30, 2002 11:33 am
Profile WWW

Joined: Tue Apr 30, 2002 11:53 am
Posts: 1919
Location: Carrù, Cuneo, ITALY
Post 

Ciao Benny
hallstrom wrote:
Since it was only one item I had problems with I deleted the record and filed it again and now I have no problems...

Glad it works fine now and sorry I was not able to help understanding what caused that weird behaviour...

Have a great week & take care !

_________________
The Hole Studio ® Mario Del Buono | e-mail: please Press the email button below.


Sat Nov 30, 2002 11:50 am
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.