Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Mave on June 04, 2007, 12:19:07 AM

Title: Clipfish Video BBC Tag (XHTML Compliant)
Post by: Mave on June 04, 2007, 12:19:07 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=820)

This mod allows a poster the option to embed a Clipfsh.de video in a post through the use of the [clipfish=425,350][/clipfish] BBC (bulletin board code) tags.  The code it uses is XHTML compliant, this keeping with the forum's XHTML validity.

Its use is easy: simply plug the video Number or the complete html adress between the [clipfish][/clipfish] tags.

Language Integration

To make the mod work with your language, simply open Modifications.*.php, where * is the language you wish to integrate the mod into, and add $txt['clipfish'] = 'Clipfish'; to its own line in the file.

thx goes to Marlon and Gant there coded the Youtube Buttons. I use his code and modified.

Version 1.2 its now XHTML Compliant
Version 1.3 fix relative path and remove gif by uninstall
Title: Re: Clipfish Video BBC Tag (XHTML Compliant)
Post by: Apllicmz on December 26, 2011, 10:07:55 AM
Nice work
when update
dont forget Portuguese files

<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['clipfish'] = 'Clipe de  Peixe';
]]></add>
                </operation>
        </file>
        <file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['clipfish'] = 'Clipe de  Peixe';
]]></add>
                </operation>
        </file>
        <file name="$themedir/languages/Modifications.portuguese_brazilian.php" error="skip">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['clipfish'] = 'Clipe de  Peixe';
]]></add>
                </operation>
        </file>
        <file name="$themedir/languages/Modifications.portuguese_brazilian-utf8.php" error="skip">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['clipfish'] = 'Clipe de  Peixe';
]]></add>
                </operation>
        </file>