UBB.Dev
Posted By: Gizmo MySpace Video - Custom Tag - 09/22/2015 7:07 AM
About
This Custom Tag will allow you to syndicate MySpace Videos. Users will need to copy the "Video URL" into the video tags (or the editor if enabled).

Tags
Code
[video:myspace][/video]

Example
An example of the embedded video can be found on the VNC Web Services Demo Forums.

Install
Save "CustomTag.txt" (with the code provided) and import into the "Custom Tags" feature of the control panel:
Control Panel -> Tools & Info -> Content Rebuilder -> Custom Tags -> Import new tags (bottom tab)

CustomTag.txt
Code
<?php
$export_tags = array (
0 =>
array (
'tag' => 'video:myspace',
'descrip' => 'MySpace Video',
'prompt' => 'MySpace URL; eg: http://www.myspace.com/video/xxxx/xxxxxxxxxx',
'regex' => '(.*myspace.com)/(.+?)/video/(.+?)/(.+?)',
'markup' => '<iframe width="400" height="225" src="//media.myspace.com/play/video/\\\\3-\\\\4" frameborder="0" allowtransparency="true" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>',
),
);
?>
© UBB.Developers