Posts: 116
Threads: 14
Joined: Aug 2011
(22-Dec-2012, 04:10 PM)stariocek Wrote: (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?
OK, let's go with less quick trickery - plese try this.
comments.php
-------------------
<?php
#$average = round($average["AVG(rating)"] / 0.5) * 0.5;
$average_ = $average["AVG(rating)"] - 0.000000001;
$average = round($average_,1);
?>
zvezdje.php:
-------------------
<?php
#$average_rating = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating_ = $result_avg["AVG(rating)"] - 0.000000001;
$average_rating = round($average_rating_,1);
?>
lp, stariocek
Posts: 17
Threads: 4
Joined: Dec 2012
(23-Dec-2012, 10:06 AM)stariocek Wrote: OK, let's go with less quick trickery - plese try this.
comments.php
-------------------
<?php
#$average = round($average["AVG(rating)"] / 0.5) * 0.5;
$average_ = $average["AVG(rating)"] - 0.000000001;
$average = round($average_,1);
?>
zvezdje.php:
-------------------
<?php
#$average_rating = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating_ = $result_avg["AVG(rating)"] - 0.000000001;
$average_rating = round($average_rating_,1);
?>
lp, stariocek
zvezdje.php:
see 4.8, not 4.8/5 and stars are gone...
comments.php
see 4.8/5 no stars
Posts: 116
Threads: 14
Joined: Aug 2011
(23-Dec-2012, 10:38 AM)m1155 Wrote: (23-Dec-2012, 10:06 AM)stariocek Wrote: OK, let's go with less quick trickery - plese try this.
comments.php
-------------------
<?php
#$average = round($average["AVG(rating)"] / 0.5) * 0.5;
$average_ = $average["AVG(rating)"] - 0.000000001;
$average = round($average_,1);
?>
zvezdje.php:
-------------------
<?php
#$average_rating = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating_ = $result_avg["AVG(rating)"] - 0.000000001;
$average_rating = round($average_rating_,1);
?>
lp, stariocek
zvezdje.php:
see 4.8, not 4.8/5 and stars are gone...
comments.php
see 4.8/5 no stars
Please remove '<?php' and '?>' (arround 3 lines of changed code) from both files.
lp
Posts: 17
Threads: 4
Joined: Dec 2012
Yes i removed that
also renew complete code (thought mayby i messed it up) but same effect... weird.
Must the text from FN always be visible, i like only the stars like
***** 4.8/5 (5 vote's)
Posts: 116
Threads: 14
Joined: Aug 2011
(23-Dec-2012, 10:45 AM)stariocek Wrote: (23-Dec-2012, 10:38 AM)m1155 Wrote: (23-Dec-2012, 10:06 AM)stariocek Wrote: OK, let's go with less quick trickery - plese try this.
comments.php
-------------------
<?php
#$average = round($average["AVG(rating)"] / 0.5) * 0.5;
$average_ = $average["AVG(rating)"] - 0.000000001;
$average = round($average_,1);
?>
zvezdje.php:
-------------------
<?php
#$average_rating = round($result_avg["AVG(rating)"]/0.5)*0.5;
$average_rating_ = $result_avg["AVG(rating)"] - 0.000000001;
$average_rating = round($average_rating_,1);
?>
lp, stariocek
zvezdje.php:
see 4.8, not 4.8/5 and stars are gone...
comments.php
see 4.8/5 no stars
Please remove '<?php' and '?>' (arround 3 lines of changed code) from both files.
lp
Please check private messages - I've sent you my zvezdje.php and part of comments.php.
lp,
Posts: 17
Threads: 4
Joined: Dec 2012
Thanks for your help, Replaced you code exactly still same problem. If i replace original avarge lines stars are back.
Posts: 116
Threads: 14
Joined: Aug 2011
(23-Dec-2012, 11:23 AM)m1155 Wrote: Thanks for your help, Replaced you code exactly still same problem. If i replace original avarge lines stars are back.
Let's use Commentics private messages. This dialog is not interesting for forum.
So - I'm using Private Messages from now on.
lp