Jump to content

Evaluation of the topic in the list of topics


aXenDev

Recommended Posts

Posted

Hey,
I would like to get a preview of the topic assessment in the themes view in the work.

Something like it is here: 
1182600786_Annotation2019-05-08102320.thumb.png.b3d94f9e5199f53266e98f52e9c843f6.png

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?
1033716140_Annotation2019-05-08102544.thumb.png.a127956833d2856180dcce6bc39cd6a3.png

Posted

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

ratings.thumb.jpg.aaa9e7560fb6baf08b199c61d65d7c02.jpg

Posted

 

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

archive.thumb.jpg.a3fa03dc05c84fe3e41de09ac423c2df.jpg

\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

Posted
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. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...