New Dynamic YouTube Gallery - Embed YouTube Playlist, Channel, Live Stream in minutes. Read More

Google Rich Snippets SEO

  • James Bartlett
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 1

Google Rich Snippets SEO was created by James Bartlett

Does anyone know how to add rich snippet data to video so they can be picked up in the search results? If it's not already a feature, I'm sure it would easy to implement as most of the data is already required in the AVS module.
This video explains it:


Would be very grateful for this feature.
Last edit: 11 years 8 months ago by James Bartlett.
11 years 8 months ago #2443

Please Log in or Create an account to join the conversation.

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Google Rich Snippets SEO

Let us check the video and mail you within 12 hrs...
11 years 8 months ago #2445

Please Log in or Create an account to join the conversation.

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Google Rich Snippets SEO

We found it's very simple. We will implement and send the updated version within 24 - 48 hrs...
The following user(s) said Thank You: James Bartlett
11 years 8 months ago #2496

Please Log in or Create an account to join the conversation.

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Google Rich Snippets SEO

I have mailed the updated version...
11 years 8 months ago #2522

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 28

Replied by pwakyi on topic Re: Google Rich Snippets SEO

hi admin

let me get also this feature.

Thanks,
11 years 3 months ago #5000

Please Log in or Create an account to join the conversation.

  • Posts: 2478
  • Thank you received: 1451

Replied by Administrator on topic Re: Google Rich Snippets SEO

[pwakyi]

- Open {root} / components / com_allvideoshare / models / player.php

- Replace the "getflashplayer()" as follow,
function getflashplayer( $player, $video, $flashvars ) {
	$this->buildCustomMeta( $player, $video );
		 
	$swf  = JURI::root().'components/com_allvideoshare/player.swf?autoStart=true&random=' . rand();
	$swf .= '&base='.urlencode( JURI::root() ).'&vid=' . $video->id . '&pid=' . $player->id;
		 
	$result  = '<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">';
	$result .= '<h2>Video: <span itemprop="name">' . $video->title . '</span></h2>';
  	$result .= '<meta itemprop="thumbnailUrl" content="' . $video->thumb . '" />';
  	$result .= '<meta itemprop="embedURL" content="' . $swf . '" />';
  	$result .= '<meta itemprop="height" content="' . $this->height . '" />';
  	$result .= '<meta itemprop="width" content="' . $this->width . '" />';
		 
	$result .= '<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="' . $this->width . '" height="' . $this->height . '">';
    	$result .= '<param name="movie" value="' . JURI::root() . 'components/com_allvideoshare/player.swf?random=' . rand() . '" />';
    	$result .= '<param name="wmode" value="opaque" />';
    	$result .= '<param name="allowfullscreen" value="true" />';
    	$result .= '<param name="allowscriptaccess" value="always" />';
    	$result .= '<param name="flashvars" value="' . $flashvars . '" />';
    	$result .= '<object type="application/x-shockwave-flash" data="' . JURI::root() . 'components/com_allvideoshare/player.swf?random=' . rand() . '" width="' . $this->width . '" height="' . $this->height . '">';
      	$result .= '<param name="movie" value="' . JURI::root() . 'components/com_allvideoshare/player.swf?random=' . rand() . '" />';
      	$result .= '<param name="wmode" value="opaque" />';
      	$result .= '<param name="allowfullscreen" value="true" />';
      	$result .= '<param name="allowscriptaccess" value="always" />';
      	$result .= '<param name="flashvars" value="' . $flashvars . '" />';
    	$result .= '</object>';
  	$result .= '</object>';
        $result .= '<span itemprop="description">' . $video->description . '</span>';
        $result .= '</div>';
		
	return $result;
}
That's it. Hope, this help you!!!
11 years 3 months ago #5019

Please Log in or Create an account to join the conversation.

Time to create page: 0.123 seconds

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies