aXenDev Posted May 8, 2019 Share Posted May 8, 2019 Hey, I would like to get a preview of the topic assessment in the themes view in the work. Something like it is here: I wanted to code add to a "topicRow" bit: {template="rating" app="core" group="front" params="$row->author(), 'tiny'"} But it does not work. How can I get this effect? What determines the visibility of the rating in the search results? Link to comment Share on other sites More sharing options...
Daniel F Posted May 8, 2019 Share Posted May 8, 2019 Files and records have ratings while topics have no ratings, so you can't show any stars in the topic overview page. The data in the google results are from our markup which provides these data https://developers.google.com/search/docs/data-types/review-snippet?hl=en Link to comment Share on other sites More sharing options...
newbie LAC Posted May 8, 2019 Share Posted May 8, 2019 Hello, 1 hour ago, krystek1s2k said: I wanted to code add to a "topicRow" bit: {{if $row->container()->forum_allow_rating}} {template="rating" group="global" location="front" app="core" params="'tiny', $row->averageRating()"} {{endif}} But this will generate 1 additional query per topic 17 minutes ago, Daniel F said: Files and records have ratings while topics have no ratings, so you can't show any stars in the topic overview page. The data in the google results are from our markup which provides these data https://developers.google.com/search/docs/data-types/review-snippet?hl=en Topics also have ratings Link to comment Share on other sites More sharing options...
Daniel F Posted May 8, 2019 Share Posted May 8, 2019 Link to comment Share on other sites More sharing options...
Adriano Faria Posted May 8, 2019 Share Posted May 8, 2019 There was a plugin in marketplace for this. Not sure if it’s still there. EDIT: Found it: Link to comment Share on other sites More sharing options...
aXenDev Posted May 8, 2019 Author Share Posted May 8, 2019 @Daniel F @newbie LAC Thanks. I have already chosen the topic assessment option since the beginning of the forum creation. Despite this, there is still no rating in the google search engine. Link to comment Share on other sites More sharing options...
newbie LAC Posted May 8, 2019 Share Posted May 8, 2019 1 hour ago, Daniel F said: while topics have no ratings, BTW Why you didn't add 'rating_total' => 'topic_rating_total', 'rating_hits' => 'topic_rating_hits', in $databaseColumnMap? I see 2 columns in the forums_topics table but you don't use them. Also \applications\forums\Application.php case 'rating': $clause = array( 'ROUND(topic_rating_total/topic_rating_hits)' . $rule['archive_value'] . '?', $rule['archive_text'] ); So this rule will not work Link to comment Share on other sites More sharing options...
newbie LAC Posted May 8, 2019 Share Posted May 8, 2019 59 minutes ago, krystek1s2k said: I have already chosen the topic assessment option since the beginning of the forum creation. Despite this, there is still no rating in the google search engine. Maybe you should to wait or ask Google https://support.google.com/webmasters/answer/6065812?hl=en 1 review 4 stars but Link to comment Share on other sites More sharing options...
opentype Posted May 8, 2019 Share Posted May 8, 2019 1 hour ago, krystek1s2k said: Despite this, there is still no rating in the google search engine. Even if your technical setup is correct (which you can check with Google’s snippets tool), you still can’t force Google to show it. They might show it if they think it is valuable. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.