Hi!
I am currently working with a guestbook. One of the features is that it should replace smileys with small happyface-icons. I am trying to find the most efficiant way to solve this. The problem is, the user should be able to disable this. So I want to solve this with as little severload as possbile. Two ideas:
1. Replace smileys and store the IMG tags in the DB, let a PHP script parse trough all messages and replace the IMG tags if the user has disabled them.
2. Parse trough while drawing up the GB and replace smileys with images. And don't do it if user has diabled it.
Can anyone come up with any better ideas? I don't feel any of these are very good.
Thanks!
I am currently working with a guestbook. One of the features is that it should replace smileys with small happyface-icons. I am trying to find the most efficiant way to solve this. The problem is, the user should be able to disable this. So I want to solve this with as little severload as possbile. Two ideas:
1. Replace smileys and store the IMG tags in the DB, let a PHP script parse trough all messages and replace the IMG tags if the user has disabled them.
2. Parse trough while drawing up the GB and replace smileys with images. And don't do it if user has diabled it.
Can anyone come up with any better ideas? I don't feel any of these are very good.
Thanks!