The Sea King Posted February 6, 2008 Report 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 Report 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 Report Share Posted February 6, 2008 ok. thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now