Home

Jun 12, 2018

CMSMS HTML5 Video UDT


CMS Made Simple 1.11.x / 1.12 | 1-10-2014 | Pascal Merks | 

Category:Tutorials 
Posted by: Admin

Here is a UDT for CMS Made Simple to put videos on your website without using youtube. You just host your video on your own website.

 

Create a new UDT:
Extensions \ User separated tags \ Add tag

Name: video

Code:

$config = cmsms()->GetConfig();
echo '<video width="100%" controls poster="' . $config['root_url'] . '/uploads/videos/' . ($params['file']) . '.jpg">
<source src="' . $config['root_url'] . '/uploads/videos/' . ($params['file']) . '.mp4" type="video/mp4">
<source src="' . $config['root_url'] . '/uploads/videos/' . ($params['file']) . '.ogv" type="video/ogg">
<source src="' . $config['root_url'] . '/uploads/videos/' . ($params['file']) . '.webm" type="video/webm">
Your browser does not support HTML5 video.
</video>';

Create a new folder:
Go to Content / File manager and create a folder of videos in the folder uploads (here the videos are shown).

Upload 4 files with the named name in this folder.

The video file in MP4 format. (File extension .mp4)
The video file in OGG format. (File extension .ogv)
The video file in WEBM format. (File extension .webm)
A preview image in JPG format. (File extension .jpg)

Through this website https://video.online-convert.com you can convert your videos to the correct format or use a program for this /any-video-converter.com/products/for_video_free/ is there a good one for that.

View video on your website:
If you have done everything right, you can now call your video via this line:

Bracket Start video file = "name video" Bracket end

name video is the name you gave to all the files without the file extension (mp4, ogv, jpg).

Example video:

{video file = "test"}

authorarticle: Master3395

image: 

keywords: news, targeted, newstargeted, newstargeted.com

Previous Article
Next Article
Discord

Page 1 of 336  >  >>

Now the October update for Windows 10 rolls out

windows10.jpg

Nov 21, 2018 | Category: Microsoft | Comments

Finally - here are the improvements.

Microsoft has had a very hard time rolling out the October update to Windows 10 (version 1809), but now it seems that the pieces fall into place.

read more…

Female is reported to have reset her iPhone under investigation

police-iphone.jpeg

Nov 20, 2018 | Category: Apple | Comments

The phone was used for evidence purposes in a shooting event.

Often information that can be retrieved from phones relevant to the police is being investigated in a criminal case. Such important information can be a lot of things, including an overview of contacts and possible planning of crime - largely the most likely to help criminalize a person.

read more…

CloudFlare's privacy app is here

cloudflare-1.1.1.1-ios-android.png

Nov 19, 2018 | Category: IT | Comments

Free and available now for iOS and Android.

It's been several months since the networking giant Cloudflare showed the DNS service 1.1.1.1 that focuses on privacy, readily available to consumers. Now the application is available for free for Apple devices and Android.

read more…

Page 1 of 336  >  >>