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

Moving of the stars to the different place of the same page
#1

Dear Commentics Team,
First I want to express my compliments for this wonderful rating system, the most detailed, complex and easy to use that I have seen.

I have a little question:
Is it possible to remove only the rich snippets stars from the basic PHP block and move it to the top of the same page, as a single object?
Please see the image for reference.


Attached Files Thumbnail(s)
   
Reply
#2

Hi,

I'm pleased you like the script!

It's not really possible to "move it" but what you could do is disable the average rating in Layout -> Comments -> Enabled and then add some code to the part of the page where you want it to display.

I think this thread is very similar to what you're wanting to do: http://www.commentics.org/forum/showthre...84#pid4884

Have you completed the interview?
Reply
#3

Reply
#4

You missed out this code:

PHP Code:
<?php 
$page_query
= mysqli_query($cmtx_link, "SELECT `id` FROM `" . $cmtx_mysql_table_prefix . "pages` WHERE `identifier` = '" . $cmtx_identifier . "'");
$page = mysqli_fetch_assoc($page_query);
$id = $page['id'];

It goes after this line:

PHP Code:
<?php 
$cmtx_identifier
= mysqli_real_escape_string($cmtx_link, $cmtx_identifier);

Have you completed the interview?
Reply
#5

Are you integrating with Magento? If so, if you have the time, could you post in the Tutorials section of the forum saying how you did it?

Have you completed the interview?
Reply
#6

Reply
#7

If you go to this page, scroll down to the very bottom and in the 'Select Store' drop-down field select the Modern Theme. To me it looks identical to the image you attached.

Have you completed the interview?
Reply
#8

Do you get any errors if you add this at the very beginning?

PHP Code:
<?php 
@error_reporting(-1); //show every possible error
@ini_set('display_errors', 1); //display errors

Have you completed the interview?
Reply
#9

Try adding this at the bottom and see what it outputs:

PHP Code:
<?php 
var_dump
($average);

Also make sure you're setting the identifier variable correctly. You were using $_GET['product']; earlier and now you've switched to using $_GET['id'];

Have you completed the interview?
Reply
#10



Attached Files Thumbnail(s)
       
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Seven Thunders
20-Jun-2019, 03:56 AM
Last Post by DuO-VB
21-Mar-2014, 04:26 PM
Last Post by Steven
01-Feb-2013, 03:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)