Submited a feature request for Serendipity
I suddenly felt like getting rid of those smilies all over my test-blog-entries, so I wrote a little nasty hack. And of course posted my work at sourceforge.
Here is what the hack is all about: ...
Added:
at line 89 in serendiptiy_config.inc.php (put it wherever you like). and changed: 'function serendipity_emoticate($str)' in serendipity_functions.inc.php to:
This is definately bad coding but saved my day and a lot of time ;).
$serendipity['smiles']['usethem'] = false;
at line 89 in serendiptiy_config.inc.php (put it wherever you like). and changed: 'function serendipity_emoticate($str)' in serendipity_functions.inc.php to:
if($serendipity['smiles']['usethem'])
{
 foreach ($serendipity['smiles'] as $key => $value)
 {
   $str = preg_replace("/([ ]?)" .
preg_quote($key, '/') .
"([ !.)]?)/m", "
", $str);
 }
}This is definately bad coding but saved my day and a lot of time ;).
Information and Links
Join the fray by commenting, tracking what others have to say, or linking to it from your blog.
- Related Articles
- Changed to another Weblog Software
- Ubuntu PXE install via Windows
- Mercedes-Benz Mixed Tape 16
- It's not about the new Mixed Tape
- Back in Shape

