#1 2014-08-29 11:21:14

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

[MERGED] Adding Youtube reduced URL management in backend

Ionize can add Youtube video URL, but don't understand URL like "http://youtu.be/kYNPtDbykp0"

To manage it, edit the file

application/controllers/admin/media.php

Search for the method 'get_service_info()' line 1057
Now, add this code before the first Youtube check :

 // Youtube (reduced URL)
if (
	substr($base_path, 0, 15) == 'http://youtu.be'
)
{
	$service = array(
		'path' => 'http://www.youtube.com/embed/' . $file_name,
		'provider' => 'youtube'
	);
	return $service;
}

@michel-ange : pull-request sended in github


Webmaster / OUF!WEB

Offline

#2 2014-10-18 10:18:43

Michel-Ange
Ionize Core Team
From: Paris, France
Registered: 2010-03-22
Posts: 927
Website

Re: [MERGED] Adding Youtube reduced URL management in backend

Pull request merged !

Thanks Kink.


Inspiration & Innovation : Websites by Partikule, Agence Web Paris

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations