Skip to content

Commit

Permalink
Modified to remove smileys image div completely
Browse files Browse the repository at this point in the history
  • Loading branch information
imagehat committed Mar 31, 2009
1 parent a7f69f3 commit 09b1735
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions extensions/ext.md_hide_smileys.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
Last Mod: Mar 08 2009
http://expressionengine.com/docs/development/extensions.html
Modified: Mar 31 2009
by Mike Kroll, imagehat.com to kill smileys with extreme prejudice.
=============================================================================== */

class Md_hide_smileys
Expand Down Expand Up @@ -119,8 +123,11 @@ function hide_smileylink( $out )
$out = $EXT->last_call;
}

$out = preg_replace("#<b>Glossary</b></a>[^\r\n]*</span>#", "<b>Glossary</b></a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;</span>", $out);

$out = preg_replace("#<b>Glossary</b></a>[^\r\n]*</span>#", "<b>Glossary</b></a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;</span>", $out);

// IH Mod: Remove smiley divs too so the images don't load...
$out = preg_replace('/<div id=[\'"]smileys_.*?<\/table>.*?<\/table>[\n\r]*<\/div>/si', '', $out);

return $out;
}
}
Expand Down

0 comments on commit 09b1735

Please sign in to comment.