Jump to content

Converting messages for storing


golfer1

Recommended Posts

Hi guys.

 

I am building a forum, and I am 90% done, however I need some help on how to go about storing the messages in the way I want.

 

For example:

If someone is being quoted the message is displayed currently as '(sqb)quote=origauthor] Message

'

However, when the new message is being displayed I would like '(sqb)quote=origauthor]' to display as '<div class="quote"><span class="origauthor">Original Author says:</span>' and '' to display '</div>'

 

The same example could be applied to URLs or Image Links posted for example.

 

How would I go about getting the '(sqb)quote=""]..' to change to '<div class="....' when being stored in order to display properly?

 

Thanks for your help

Link to comment
https://forums.phpfreaks.com/topic/145850-converting-messages-for-storing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.