1. I wanted to ask you about adding a video to your XML Sitemap Generator:
https://github.co...emap_panel You plan to do this, for the official release of php-fusion v9.xx, at the end of 2018? For the video, we need to use google recommendations for creating a sitemap:
https://support.g...0471?hl=en I made a simple version for the textual material on the site, adding to the SitemapGenerator.php file the code for the video that generates only this:
<url>
<loc>
http://lightxx.ru...ideo_id=79
</loc>
<lastmod>2018-10-28T09:14:22+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
Google accepted my Sitemap, there are no errors, but indexing is bad. I don't know, how to add different entries with the <video> ... </ video> tag. For example, I would like to add tags:
<video:video>
<video:thumbnail_loc>http://www.exampl...bs/123.jpg</video:thumbnail_loc>
<video:title>.....</video:title>
<video:description>.....</video:description>
<video:category>.....</video:category>
<video:tag>.....</video:tag>
<video:content_loc>
http://streamserver.example.com/video123.mp4</video:content_loc>
<video:player_loc>
http://www.example.com/videoplayer.php?video=123</video:player_loc>
<video:publication_date>2007-11-05T19:20:30+08:00</video:publication_date>
</video:video>
Below is part of my code that I have on the site:
private function Videos($cats = FALSE, $base_links = TRUE, $options = []) {
if ($base_links == TRUE) {
$this->sitemap->addItem($this->siteurl.'infusions/videos/videos.php', '', $options['frequency'], $options['priority']);
$this->sitemap->addItem($this->siteurl.'infusions/videos/videos.php?type=view', '', $options['frequency'], $options['priority']);
$this->sitemap->addItem($this->siteurl.'infusions/videos/videos.php?type=recent', '', $options['frequency'], $options['priority']);
//$this->sitemap->addItem($this->siteurl.'infusions/videos/videos.php?type=comments', '', $options['frequency'], $options['priority']);
//$this->sitemap->addItem($this->siteurl.'infusions/videos/videos.php?type=ratings', '', $options['frequency'], $options['priority']);
}
if ($cats == TRUE) {
$result = dbquery("SELECT video_cat_id, video_cat_language
FROM ".DB_VIDEO_CATS."
".(multilang_table('VL') ? " WHERE video_cat_language='".LANGUAGE."'" : '')."
");
if (dbrows($result) > 0) {
while ($data = dbarray($result)) {
$this->sitemap->addItem($this->siteurl.'infusions/videos/videos.php?cat_id='.$data['video_cat_id'], '', $options['frequency_cat'], $options['priority_cat']);
}
}
} else {
$result = dbquery("SELECT v.*, vc.video_cat_id, vc.video_cat_name, u.user_id, u.user_name, u.user_status, u.user_avatar, u.user_level, u.user_joined
FROM ".DB_VIDEOS." v
INNER JOIN ".DB_VIDEO_CATS." vc on v.video_cat = vc.video_cat_id
LEFT JOIN ".DB_USERS." u ON v.video_user=u.user_id
ORDER BY v.video_datestamp DESC
");
if (dbrows($result) > 0) {
while ($data = dbarray($result)) {
$this->sitemap->addItem($this->siteurl.'infusions/videos/videos.php?video_id='.$data['video_id'], $data['video_datestamp'], $options['frequency'], $options['priority']);
}
}
}
}
It may be enough only to add the necessary functions to it for creating the <video: video> tag? Or am I mistaken and I need to edit the code in different places?
2. And one more question. What are your thoughts on adding a new feature to display a preview of a picture using a URL? If we add videos from social networks such as Facebook or Vkontakte (VK). This method will help us to track deleted videos from social networks. If the author who uploaded the video then deletes it, then the preview will disappear on our website. This is not a complete tracking, but it often helps, so far only for videos from youtube and vimeo.