IFMkey Posted October 22, 2022 Posted October 22, 2022 https://search.google.com/test/rich-results https://www.youtube.com/watch?v=QHfk5BDgJE8 google know this is a video page https://www.kvs-demo.com/videos/1029/nicky-romero-premieres-linkin-park-remix-at-ultra-miami/ check nothing!!! what i mean, now google index video very slowly, maybe this is one reason Quote
IFMkey Posted October 22, 2022 Author Posted October 22, 2022 https://developers.google.com/search/docs/appearance/video?authuser=0 Include your video in an appropriate HTML tag. Google can more easily identify a video on your page when there's an HTML tag around it, for example: <video>, <embed>, <iframe>, or <object>. may i add these html tag in my KVS theme? thanks Quote
Tech Support Posted October 22, 2022 Posted October 22, 2022 This is because we didn't update theme on our demo site for a long time. Now we fixed it, you can check it now: All new theme version already have this. If you don't have it on your project, you need to add the following code into Website UI -> Page components -> include_header_general.tpl anywhere under <head> section: {{if $storage.video_view_video_view.video_id>0}} {{assign var="duration_hours" value=$storage.video_view_video_view.duration_minutes/60|intval}} {{assign var="duration_minutes" value=$storage.video_view_video_view.duration_minutes-$duration_hours*60}} {{assign var="duration_seconds" value=$storage.video_view_video_view.duration_seconds}} <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "VideoObject", "name": "{{$storage.video_view_video_view.title|json_encode|trim:'"'}}", "description": "{{$storage.video_view_video_view.description|default:$storage.video_view_video_view.title|json_encode|trim:'"'}}", "thumbnailUrl": "{{$storage.video_view_video_view.preview_url}}", "uploadDate": "{{$storage.video_view_video_view.post_date|date_format:"%Y-%m-%d"}}", "duration": "PT{{$duration_hours}}H{{$duration_minutes}}M{{$duration_seconds}}S", {{assign var="postfix" value=$lang.videos.sitemap_format_standard}} {{if $storage.video_view_video_view.is_private==2}} {{assign var="postfix" value=$lang.videos.sitemap_format_premium}} {{/if}} {{if $storage.video_view_video_view.formats[$postfix].file_url!=''}} "contentUrl": "{{$storage.video_view_video_view.formats[$postfix].file_url}}", {{else}} "embedUrl": "{{$config.project_url}}/embed/{{$storage.video_view_video_view.video_id}}", {{/if}} "interactionStatistic": [ { "@type": "InteractionCounter", "interactionType": "http://schema.org/WatchAction", "userInteractionCount": "{{$storage.video_view_video_view.video_viewed}}" }, { "@type": "InteractionCounter", "interactionType": "http://schema.org/LikeAction", "userInteractionCount": "{{$storage.video_view_video_view.rating_amount}}" } ] } </script> {{/if}} 1 Quote
jungleland Posted March 17 Posted March 17 Hello. Could you please help with "uploadDate" format? I need it in this format (required by google) <meta itemprop="uploadDate" content="2016-03-31T08:00:00+08:00" /> Now i have this code "uploadDate": "{{$storage.video_view_video_view.post_date|date_format:"%Y-%m-%d"}}", Wait help! Thanks Quote
Tech Support Posted March 18 Posted March 18 "uploadDate": "{{$storage.video_view_video_view.post_date|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}}", Something like this I guess. Quote
jungleland Posted March 27 Posted March 27 On 3/18/2024 at 7:52 AM, Tech Support said: "uploadDate": "{{$storage.video_view_video_view.post_date|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}}", Something like this I guess. I used this one date_format:"%F%Z%R%z Quote
jungleland Posted April 17 Posted April 17 Dear friends How can i remove final slash in contentURL ?? Now i have this in "include_header_general.tpl" <link itemprop="contentUrl" href="{{$video_file_url}}"> and paints something like this <link itemprop="contentUrl" href="https://www.MYDOMAIN.COM/get_file/3/94f0ce6fc03278abc939eb5bc3dba097/0/963/963.mp4/"> and i would like THIS: <link itemprop="contentUrl" href="https://www.MYDOMAIN.COM/get_file/3/94f0ce6fc03278abc939eb5bc3dba097/0/963/963.mp4"> (without final "/" after .mp4) Wait answer :) Thanks Quote
Tech Support Posted April 18 Posted April 18 Why do you need this? Normally the file without / at the end won't work, because the URL is virtual. Quote
Mich Posted April 19 Posted April 19 (edited) 23 hours ago, Tech Support said: Why do you need this? Normally the file without / at the end won't work, because the URL is virtual. This reminds me of a similar issue I've noticed and added to my list, but have not yet reported or published a fix on the forum. Please visit the following URL: https://www.kvs-demo.com/video/207/iron-maiden-the-final-frontier/ If you remove the slash at the end, it automatically adds it back. Now, try this on a KVS site other than the demo. If we remove the slash, it either leads to a 404 not found page or show homepage. I haven't investigated why yet, but I have tried it on a clean version of 6.2.1, and it still happens. Upon further investigation of the NGINX conf, I found some issues related to another problem. I will contact you directly about this :) In the meantime, I'm curious about your thoughts on the slash issue mentioned in this post. Edited April 19 by Mich Quote
Tech Support Posted April 19 Posted April 19 6 hours ago, Mich said: Now, try this on a KVS site other than the demo. If we remove the slash, it either leads to a 404 not found page or show homepage. I haven't investigated why yet, but I have tried it on a clean version of 6.2.1, and it still happens. This only happens if you don't use Apache. The Apache rewrite rules we provide do some automatic adjustments, but these are not available in Nginx set of rules. Quote
Mich Posted April 20 Posted April 20 22 hours ago, Tech Support said: This only happens if you don't use Apache. The Apache rewrite rules we provide do some automatic adjustments, but these are not available in Nginx set of rules. I need to check this; I know the demo uses NGINX (you see it in the header), but it must be that NGINX is only used as a reverse proxy while Apache2 is also in use. Quote
Tech Support Posted April 22 Posted April 22 On 4/20/2024 at 7:47 AM, Mich said: but it must be that NGINX is only used as a reverse proxy while Apache2 Yes, kvs-demo.com uses rewrites in Apache, basically we consider this as the most convenient setup due to easy access to rewrites. Quote
3dz Posted April 24 Posted April 24 (edited) On 4/18/2024 at 10:27 PM, Mich said: This reminds me of a similar issue I've noticed and added to my list, but have not yet reported or published a fix on the forum. Please visit the following URL: https://www.kvs-demo.com/video/207/iron-maiden-the-final-frontier/ If you remove the slash at the end, it automatically adds it back. Now, try this on a KVS site other than the demo. If we remove the slash, it either leads to a 404 not found page or show homepage. I haven't investigated why yet, but I have tried it on a clean version of 6.2.1, and it still happens. Upon further investigation of the NGINX conf, I found some issues related to another problem. I will contact you directly about this :) In the meantime, I'm curious about your thoughts on the slash issue mentioned in this post. I use pure nginx and i got a solution for this with this code in the nginx configuration. location / { index index.php index.html; if ($uri !~ /$) { rewrite ^(.*)$ $1/ permanent; } try_files $uri $uri/ /index.php?$args; } I had a bug with the fonts and I solved it this way, I hope this helps someone. location ~* \.(eot|ttf|woff|woff2)$ { try_files $uri =404; if ($http_origin ~* (https?://(es|en)\.MYSITE\.com(:[0-9]+)?$)) { add_header 'Access-Control-Allow-Origin' "$http_origin"; } } location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpeg|avi|zip|gz|bz2|rar|swf|ico|7z|doc|docx|map|ogg|otf|pdf|tff|tif|txt|wav|webp|xls|xlsx|xml)$ { try_files $uri $uri/ /index.php?$args; } Now I'm going to implement this rich media code that support provided. I'm using ultimate theme 1 and it doesn't have this configuration. Edited April 24 by 3dz Quote
Jim Posted April 28 Posted April 28 On 3/27/2024 at 12:14 PM, jungleland said: I used this one date_format:"%F%Z%R%z This format worked? (Rather than the tech support format?) Why did youfocus on the issue with this line - to improve indexing? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.