PHP min. 5.6.8MySQL min. 5.1Apache min. 2.0
PHP-Fusion 9 Jádro
v9.0
Český překlad
Pravidelně aktualizovaný

XML Sitemap pro video

Poslední aktualizace před 7 dny
Z
Chtěla jsem vás požádat o oficiální vydání verze 9.0.3 - Andromeda, plánujete vytvořit XML Sitemap pro video pomocí těchto pokynů https://support.g...swer/80471 nebo alternativním řešením zdroje mRSS?

A další otázka. Co si myslíte o přidání nové funkce pro vložení náhledu fotografií pomocí adresy URL? Používáte-li video ze sociálních sítí, tato metoda pomáhá vidět vzdálená videa na Facebooku, VKontakte a dalších místech.

-----
Používal jsem translate.google k překladu do češtiny, pokud je zde velké zkreslení textu, řekněte mi to.
RobiNN
Use English, Google Translate is not good choice. Can you resend this in English?
Z
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/infusions/videos/videos.php?video_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.example.com/thumbs/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.
RobiNN
1. https://github.co...1777078d0e
I added support for Videos but now only this style
<url>
<loc>url</loc>
<lastmod>2018-10-28T09:14:22+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>


later I will add full support for this
<video:video>
 <video:thumbnail_loc>http://www.exampl...bs/123.jpg</video:thumbnail_loc>
 <video:title>.....</video:title>
....
 </video:video>


And also updated UI, added support for Sitemap Index

2. If you think the Open Graph metadata, those are already implemented. https://github.co...Videos.php
Z
1. Wow! Thank you for taking your free time. I understand that, you, now have a lot of work related to the preparation of a new final release of cms, etc.

2. In this question, I had in mind, a bit different. I apologize, that writing so incomprehensibly. Now I will explain my thoughts in more detail. I meant Video Screenshot, to add photo in Admin Dashboard / Content Admin / Videos / Add. Button at the bottom - Click to add photo. In this way we upload photos to our hosting.
I meant it: And what if next to add another form, as in the editor TinyMCE / Insert-edit image / Source. Or something simple, just a field to enter a link to the source of the screenshot. View photo: www.imagehosting.cz/thumbs/vfono.jpg
Inserting a screenshot for video by reference from another site. this is useful for inserting video through Embed code.
RobiNN
1. Added full support for videos (Download from my github: https://github.co...-Infusions ) also update Video infusion (Only if you have 9.0.3)

2. I do not plan to add it yet. Maybe in future.
Z
Thank you so much for Sitemap for video. This is an important update.
I downloaded the locale files from github today and made minor corrections. Update them please.
zizub Připojili následující soubory:
videoslangru.zip [2,72kB / 6 stažení]
sitemaplangru.zip [1,24kB / 6 stažení]
Z
One more thing... In the admin panel: Home - Admin Dashboard - Content Admin - Videos - Add. If you select Url, the type of video being added, text prompts will appear in red. It seems to me that YouTube and Vimeo are superfluous. For me, YouTube and Vimeo are not working. I could be wrong, but to add video through Url, you need to know the full path to the video file (MOV, MP4, and other formats). YouTube and Vimeo hide the full path to the video file. It may be worth removing these lines from the Url section. Check out how it works for you, maybe I'm wrong.
zizub Připojili následující obrazek:
v-url.jpg
RobiNN
Updated https://github.co...bdd7bc45eb

If you choose type YouTube/Vimeo, just insert YouTube/Vimeo url. Video will be loaded directly from its servers. Same is with screenshot. If you leave screenshot empty, image will be loaded automaticli from Youtube/Vimeo servers.

If you choose type URL put full path of video from another server, but if you wan to host you videos on your server just select File tab and upload video.
Vy můžete zobrazit všechny příspěvky v tomto fóru.
Vy nemůžete začít nový diskusní příspěvek v tomto fóru.
Vy nemůžete odpovědět v této diskusi.
Vy nemůžete začít v anketu v tomto fóru.
Vy nemůžete na tomto fóru nahrát přílohy.
Vy můžete stáhnout přílohy v tomto fóru.
Uživatelé, kteří se účastnili diskuse:RobiNN, zizub
Nejnovější témata fóra
  Vlákno Zobrazení Odpovědi Poslední příspěvek
Administrácia
v PHP-Fusion 9.0.3
93 11 Balin50
13-11-2018 14:40
XML Sitemap pro video
v Infuze, panely, vzhledy
234 8 RobiNN
08-11-2018 19:06
9.00.04
v Obecná diskuse
156 4 RobiNN
27-10-2018 12:55
Novinky - video
v Administrace obsahu
281 8 Kvido
18-10-2018 16:17
Instalace na Ubuntu serveru
v PHP-Fusion 9.0
290 8 grootcz
11-10-2018 18:27
PHP 7 čeština
v PHP-Fusion 7
411 1 Kvido
28-09-2018 12:46
Vývoj - ako pokračuje
v PHP-Fusion 9.0.3
395 2 RobiNN
23-09-2018 12:37