UBB.Dev
Posted By: Gizmo Gfycat Animated Images - Custom Tag - 10/12/2018 11:29 PM
About
This Custom Tag will allow you to syndicate Gfycat Animated Images. Users will need to copy the "Video URL" into the video tags (or the editor if enabled).

Tags
Code
[gfy][/gfy]

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' => 'gfy',
'descrip' => 'Gfycat Animated Image',
'prompt' => 'Gfycat URL; eg: https://gfycat.com/gifs/detail/xxxxxxxxxx',
'regex' => '(.*gfycat.com)/gifs/detail/(.+?)',
'markup' => '<div class="video-container"><iframe frameborder="0" width="640" height="360" src="https://gfycat.com/ifr/\\\\2" allowfullscreen></iframe></div>',
),
);
?>
© UBB.Developers