From: friendica Date: Tue, 13 Mar 2012 09:01:24 +0000 (-0700) Subject: adult_smile addon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=14770093d95a67871a8a75695f3dd748da9b79bd;p=friendica-addons.git adult_smile addon --- diff --git a/adult_smile.tgz b/adult_smile.tgz new file mode 100644 index 00000000..59d7437c Binary files /dev/null and b/adult_smile.tgz differ diff --git a/adult_smile/adult_smile.php b/adult_smile/adult_smile.php new file mode 100644 index 00000000..46574143 --- /dev/null +++ b/adult_smile/adult_smile.php @@ -0,0 +1,34 @@ + + * + * This is a template for how to extend the "smily" code. + * + */ + +function adult_smile_install() { + register_hook('smilie', 'addon/adult_smile/adult_smile.php', 'adult_smile_smilies'); +} + +function adult_smile_uninstall() { + unregister_hook('smilie', 'addon/adult_smile/adult_smile.php', 'adult_smile_smilies'); +} + + + +function adult_smile_smilies(&$a,&$b) { + + $b['texts'][] = '(o)(o)'; + $b['icons'][] = '' . '(o)(o)' . ''; + + $b['texts'][] = '(.)(.)'; + $b['icons'][] = '' . '(.)(.)' . ''; + + $b['texts'][] = ':bong'; + $b['icons'][] = '' . ':bong' . ''; + + +} \ No newline at end of file diff --git a/adult_smile/icons/bong.gif b/adult_smile/icons/bong.gif new file mode 100644 index 00000000..4b671226 Binary files /dev/null and b/adult_smile/icons/bong.gif differ diff --git a/adult_smile/icons/tits.gif b/adult_smile/icons/tits.gif new file mode 100644 index 00000000..4c1658c5 Binary files /dev/null and b/adult_smile/icons/tits.gif differ