Posts: 17
Threads: 4
Joined: Dec 2012
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
Posts: 116
Threads: 14
Joined: Aug 2011
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.
Posts: 116
Threads: 14
Joined: Aug 2011
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.
Posts: 17
Threads: 4
Joined: Dec 2012
(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
whats preferd for schema.org HomeAndConstructionBusiness (best near our type of branch) of LocalBusiness
Posts: 17
Threads: 4
Joined: Dec 2012
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 ?
Posts: 116
Threads: 14
Joined: Aug 2011
(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
Posts: 17
Threads: 4
Joined: Dec 2012
I changed it (zvezdje.php and comments/includes/functions/comments.php) but stil 5/5 instead of 4.8/5 ....
Posts: 116
Threads: 14
Joined: Aug 2011
(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
Posts: 17
Threads: 4
Joined: Dec 2012
(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.
Posts: 116
Threads: 14
Joined: Aug 2011
(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?