This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

more star rating features ?
#11

i think i'm doing something wrong, i only see: Comments and ratings Kozijnen. Full Star Full Star Full Star Full Star Full Star 5 ( 3 )

please see result: www.zkkf.nl/adres.php
Reply
#12

This code is symbolic, without formating. It can not work.

You can use my solution, of course. But on your own risk - it IS NOT supported by Commentics. I've sent you a private message via Commentics forum mailing. Code is there.
Reply
#13

I've got an Idea! Google is not showing stars for all pages with separate REVIEWS star feed. And?

I'm going to change REVIEWS separate star feed to VOTES separate star feed on moto-skiro.si . It might help with getting stars for ALL pages with separate reviews star feed.

This experiment will show what is better - separate star feed as reviews or as votes.
Reply
#14

(20-Dec-2012, 11:36 AM)stariocek Wrote:  I've got an Idea! Google is not showing stars for all pages with separate REVIEWS star feed. And?

I'm going to change REVIEWS separate star feed to VOTES separate star feed on moto-skiro.si . It might help with getting stars for ALL pages with separate reviews star feed.

This experiment will show what is better - separate star feed as reviews or as votes.

Nice, i will wait to see Wink

whats preferd for schema.org HomeAndConstructionBusiness (best near our type of branch) of LocalBusiness
Reply
#15

I noticed something weird.

5 people did rate, 4 people give 5 and 1 person give 4

average must be 4.8 but it shows 5..... what's the problem ?
Reply
#16

(21-Dec-2012, 09:41 PM)m1155 Wrote:  I noticed something weird.

5 people did rate, 4 people give 5 and 1 person give 4

average must be 4.8 but it shows 5..... what's the problem ?

http://php.net/manual/en/function.round.php

Replace:

<?php
$average_rating = round($result_avg["AVG(rating)"]/0.5)*0.5;
$count_rating = $result_avg["count(*)"];
?>

with:

<?php
$average_rating_ = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating = round($average_rating_,1);
$count_rating = $result_avg["count(*)"];
?>

and one decimal digit is visible (don't copy/paste <?php, ?>).

lp, straiocek
Reply
#17

I changed it (zvezdje.php and comments/includes/functions/comments.php) but stil 5/5 instead of 4.8/5 ....
Reply
#18

(22-Dec-2012, 10:24 AM)m1155 Wrote:  I changed it (zvezdje.php and comments/includes/functions/comments.php) but stil 5/5 instead of 4.8/5 ....

I'm searching throught page source ... <span class="fn">XXX xxx yyy zzz uuu vvv www.</span> - Your page is missing 'fn'.

I've tested at moto-skiro.si - it is working well for me. Let's try again:

comments.php
-------------------
<?php
#$average = round($average["AVG(rating)"] / 0.5) * 0.5;
$average_ = round($average["AVG(rating)"] / 0.5) * 0.5;
$average = round($average_,1);
?>

zvezdje.php:
-------------------
<?php
#$average_rating = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating_ = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating = round($average_rating_,1);
?>

lp, stariocek
Reply
#19

(22-Dec-2012, 11:21 AM)stariocek Wrote:  
(22-Dec-2012, 10:24 AM)m1155 Wrote:  I changed it (zvezdje.php and comments/includes/functions/comments.php) but stil 5/5 instead of 4.8/5 ....

I'm searching throught page source ... <span class="fn">XXX xxx yyy zzz uuu vvv www.</span> - Your page is missing 'fn'.

I've tested at moto-skiro.si - it is working well for me. Let's try again:

comments.php
-------------------
<?php
#$average = round($average["AVG(rating)"] / 0.5) * 0.5;
$average_ = round($average["AVG(rating)"] / 0.5) * 0.5;
$average = round($average_,1);
?>

zvezdje.php:
-------------------
<?php
#$average_rating = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating_ = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating = round($average_rating_,1);
?>

lp, stariocek

i dont understand were FN has te correspond with. or can i fill in whatever i want.
Reply
#20

(22-Dec-2012, 03:12 PM)m1155 Wrote:  
(22-Dec-2012, 11:21 AM)stariocek Wrote:  
(22-Dec-2012, 10:24 AM)m1155 Wrote:  I changed it (zvezdje.php and comments/includes/functions/comments.php) but stil 5/5 instead of 4.8/5 ....

I'm searching throught page source ... <span class="fn">XXX xxx yyy zzz uuu vvv www.</span> - Your page is missing 'fn'.

I've tested at moto-skiro.si - it is working well for me. Let's try again:

comments.php
-------------------
<?php
#$average = round($average["AVG(rating)"] / 0.5) * 0.5;
$average_ = round($average["AVG(rating)"] / 0.5) * 0.5;
$average = round($average_,1);
?>

zvezdje.php:
-------------------
<?php
#$average_rating = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating_ = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating = round($average_rating_,1);
?>

lp, stariocek

i dont understand were FN has te correspond with. or can i fill in whatever i want.

http://support.google.com/webmasters/bin...wer=146645 , the name of the item reviewed (fn)

Is avwrage rating showing decimal number?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
17-Apr-2013, 06:16 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)