Show extravote stars in Google
12 posts
• Page 1 of 2 • 1, 2
Show extravote stars in Google
Hello, do You know that it's real?

Here's link to article with that modifications of Your plugin:
http://www.yazov.com/blog/joom/104-extravote-raiting-in-google.html
That article uses http://schema.org/AggregateRating tags.
Could You add that feature in Your future versions?
It will be greate for Joomla articles and Your plugin will be the most popular on extensions.joomla.org.

Here's link to article with that modifications of Your plugin:
http://www.yazov.com/blog/joom/104-extravote-raiting-in-google.html
That article uses http://schema.org/AggregateRating tags.
Could You add that feature in Your future versions?
It will be greate for Joomla articles and Your plugin will be the most popular on extensions.joomla.org.
- ecolora
- Fresh Boarder

- Posts: 16
- Joined: Tue Apr 05, 2011 1:30 am
Re: Show extravote stars in Google
Hello,
You can use this plugin in order to acchieve this:
http://extensions.joomla.org/extensions/clients-a-communities/ratings-a-reviews/19850
Cheers!
You can use this plugin in order to acchieve this:
http://extensions.joomla.org/extensions/clients-a-communities/ratings-a-reviews/19850
Cheers!
-

chus - Administrator

- Posts: 450
- Joined: Thu Sep 13, 2007 2:21 am
- Location: Costa Rica
Re: Show extravote stars in Google
chus wrote:http://extensions.joomla.org/extensions/clients-a-communities/ratings-a-reviews/1985
404 - Resource not found
- ecolora
- Fresh Boarder

- Posts: 16
- Joined: Tue Apr 05, 2011 1:30 am
Re: Show extravote stars in Google
Sorry, I have now corrected the link from my previous post.
Thanks!
Thanks!
-

chus - Administrator

- Posts: 450
- Joined: Thu Sep 13, 2007 2:21 am
- Location: Costa Rica
Re: Show extravote stars in Google
why You can not do that?
- ecolora
- Fresh Boarder

- Posts: 16
- Joined: Tue Apr 05, 2011 1:30 am
Re: Show extravote stars in Google
I guess I could but I don't want to make the plugin more complex unnecessarily
-

chus - Administrator

- Posts: 450
- Joined: Thu Sep 13, 2007 2:21 am
- Location: Costa Rica
Re: Show extravote stars in Google
So You do not want update Your plugin? That's strange...
I'm developer too. My extension is Commedia for musical sites:
http://extensions.joomla.org/extensions/multimedia/multimedia-players/audio-players-a-gallery/21375
I try to update it more and more.
If so, somebody will make more convinious plugin in the future... That's not good.
http://extensions.joomla.org/extensions/multimedia/multimedia-players/audio-players-a-gallery/21375
I try to update it more and more.
If so, somebody will make more convinious plugin in the future... That's not good.
- ecolora
- Fresh Boarder

- Posts: 16
- Joined: Tue Apr 05, 2011 1:30 am
Re: Show extravote stars in Google
The modifications I made to thsi plugin are very simple (otherwise I could not do it).
I modified the extravote.php file.
I placed the Itemprop and Itemscope into the existing <span> for this plugin resulting in the following.
The values I added to the <span> are itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" with some escaping resulting in the following:
The next I made two (three places) extra <span>'s to place the tags for the values in.
Resulting in the following modified lines:
and
I tested it with the Rich Snippet Testing Tool at http://www.google.com/webmasters/tools/richsnippets and it works great.
The modifications to the code are simple and only add minor data to the output of the plugin.
I modified the extravote.php file.
I placed the Itemprop and Itemscope into the existing <span> for this plugin resulting in the following.
The values I added to the <span> are itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" with some escaping resulting in the following:
- Code: Select all
<span class=\"extravote-info\" id=\"extravote_".$id."_".$xid."\" itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">"
The next I made two (three places) extra <span>'s to place the tags for the values in.
Resulting in the following modified lines:
- Code: Select all
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING', '<SPAN itemprop="ratingValue">'.$rating.'</SPAN>');
- Code: Select all
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES', '<SPAN itemprop="reviewCount">'.$rating_count.'</SPAN>');
and
- Code: Select all
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE', '<SPAN itemprop="reviewCount">'.$rating_count.'</SPAN>');
I tested it with the Rich Snippet Testing Tool at http://www.google.com/webmasters/tools/richsnippets and it works great.
The modifications to the code are simple and only add minor data to the output of the plugin.
- Reink
- Fresh Boarder

- Posts: 1
- Joined: Wed Sep 12, 2012 8:19 pm
Re: Show extravote stars in Google
Good modificatinos! Thanks!
Could author of plugin add that feature into his extension? It could be an option: show stars in Google or not.
chus: Could You?
Could author of plugin add that feature into his extension? It could be an option: show stars in Google or not.
chus: Could You?
- ecolora
- Fresh Boarder

- Posts: 16
- Joined: Tue Apr 05, 2011 1:30 am
Re: Show extravote stars in Google
Hi,
I try this in the function plgContentExtraVoteStars ligne 119 without success ... somebody could help me please (or sent me the good file):
I try this in the function plgContentExtraVoteStars ligne 119 without success ... somebody could help me please (or sent me the good file):
- Code: Select all
<span class=\"extravote-info\" id=\"extravote_".$id."_".$xid."\" itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">"
if ( $counter != -1 ) {
if ( $counter != 0 ) {
$html .= "( ";
if($rating_count!=1) {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_RATING', '<SPAN itemprop="ratingValue">'.$rating.'</SPAN>');
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTES', '<SPAN itemprop="reviewCount">'.$rating_count.'</SPAN>');
//$html .= JTEXT::sprintf('Votes', $rating_count);
} else {
$html .= JTEXT::sprintf('PLG_CONTENT_EXTRAVOTE_LABEL_VOTE', '<SPAN itemprop="reviewCount">'.$rating_count.'</SPAN>');
//$html .= JTEXT::sprintf('Vote', $rating_count);
}
$html .=" )";
}
}
$html .="</small></span>";
return $html;
}
- lecer
- Fresh Boarder

- Posts: 1
- Joined: Tue May 22, 2012 9:30 pm
12 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest