4 * Description: Smily icons that could or should not be included in core
6 * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
8 * This is a template for how to extend the "smily" code.
12 function smilies_adult_install() {
13 register_hook('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
16 function smilies_adult_uninstall() {
17 unregister_hook('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
22 function smilies_adult_smilies(&$a,&$b) {
24 $b['texts'][] = '(o)(o)';
25 $b['icons'][] = '<img class="smiley" src="' . $a->get_baseurl() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(o)(o)' . '" />';
27 $b['texts'][] = '(.)(.)';
28 $b['icons'][] = '<img class="smiley" src="' . $a->get_baseurl() . '/addon/smilies_adult/icons/tits.gif' . '" alt="' . '(.)(.)' . '" />';
30 $b['texts'][] = ':bong';
31 $b['icons'][] = '<img class="smiley" src="' . $a->get_baseurl() . '/addon/smilies_adult/icons/bong.gif' . '" alt="' . ':bong' . '" />';
33 $b['texts'][] = ':sperm';
34 $b['icons'][] = '<img class="smiley" src="' . $a->get_baseurl() . '/addon/smilies_adult/icons/sperm.gif' . '" alt="' . ':sperm' . '" />';
36 $b['texts'][] = ':drunk';
37 $b['icons'][] = '<img class="smiley" src="' . $a->get_baseurl() . '/addon/smilies_adult/icons/drunk.gif' . '" alt="' . ':drunk' . '" />';
39 $b['texts'][] = ':finger';
40 $b['icons'][] = '<img class="smiley" src="' . $a->get_baseurl() . '/addon/smilies_adult/icons/finger.gif' . '" alt="' . ':finger' . '" />';