The Sea King Posted February 6, 2008 Share Posted February 6, 2008 How do you do php filter that changes: :smile: to <img src="images/smile.gif"> for example?I think it's possible cause but it isn't what I need.http://gr0w.com/articles/code/php_bad_words_filter/ Link to comment Share on other sites More sharing options...
jhecht Posted February 6, 2008 Share Posted February 6, 2008 you somehow or another define the special things that will be altered through the script later on. This can be done through many things, the most new one is databases(same idea though). You store all smileys in a database with a specific tag, then use preg_replace to replace all smilies with their counterpart. If you need, I can give you an example. Link to comment Share on other sites More sharing options...
The Sea King Posted February 6, 2008 Author Share Posted February 6, 2008 ok. thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.