Sábado, 20 Diciembre 2014 01:35

beggarly

Show extravote stars in Google

Provides the ajax five-star rating feature to your articles

Show extravote stars in Google

Postby ecolora » Sun Sep 02, 2012 11:03 am

Hello, do You know that it's real?

Image

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
Fresh Boarder
 
Posts: 16
Joined: Tue Apr 05, 2011 1:30 am

Re: Show extravote stars in Google

Postby chus » Mon Sep 03, 2012 1:47 pm

Hello,

You can use this plugin in order to acchieve this:

http://extensions.joomla.org/extensions/clients-a-communities/ratings-a-reviews/19850

Cheers!
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: Show extravote stars in Google

Postby ecolora » Mon Sep 03, 2012 1:58 pm

chus wrote:http://extensions.joomla.org/extensions/clients-a-communities/ratings-a-reviews/1985

404 - Resource not found
ecolora
Fresh Boarder
Fresh Boarder
 
Posts: 16
Joined: Tue Apr 05, 2011 1:30 am

Re: Show extravote stars in Google

Postby chus » Mon Sep 03, 2012 2:23 pm

Sorry, I have now corrected the link from my previous post.

Thanks!
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: Show extravote stars in Google

Postby ecolora » Mon Sep 03, 2012 2:32 pm

why You can not do that?
ecolora
Fresh Boarder
Fresh Boarder
 
Posts: 16
Joined: Tue Apr 05, 2011 1:30 am

Re: Show extravote stars in Google

Postby chus » Mon Sep 03, 2012 3:24 pm

I guess I could but I don't want to make the plugin more complex unnecessarily
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: Show extravote stars in Google

Postby ecolora » Mon Sep 03, 2012 10:14 pm

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.
ecolora
Fresh Boarder
Fresh Boarder
 
Posts: 16
Joined: Tue Apr 05, 2011 1:30 am

Re: Show extravote stars in Google

Postby Reink » Wed Sep 12, 2012 8:32 pm

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:

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
Fresh Boarder
 
Posts: 1
Joined: Wed Sep 12, 2012 8:19 pm

Re: Show extravote stars in Google

Postby ecolora » Thu Sep 13, 2012 12:26 am

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?
ecolora
Fresh Boarder
Fresh Boarder
 
Posts: 16
Joined: Tue Apr 05, 2011 1:30 am

Re: Show extravote stars in Google

Postby lecer » Thu Oct 18, 2012 9:48 pm

Hi,

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
Fresh Boarder
 
Posts: 1
Joined: Tue May 22, 2012 9:30 pm

Next

Return to Extra Vote



Who is online

Users browsing this forum: No registered users and 1 guest

cron