RaythMistwalker Posted October 31, 2011 Share Posted October 31, 2011 Well my forum code is almost complete and one feature it is lacking is BB Codes. How would I go about making BB Codes for the following: [url=Url]Title[/url] [img=Img Url] [b]bold[/b] [i]Italics[/i] [u]Underline[/u] [s]Strike-through[/s] These are the only ones I want atm so any help would be appreciated. Link to comment https://forums.phpfreaks.com/topic/250171-bb-codes/ Share on other sites More sharing options...
n3r0x Posted October 31, 2011 Share Posted October 31, 2011 simplest way would be using regexp and preg_replace adding the regexp into 1 array and replace with in another.. then just loop through it.. Link to comment https://forums.phpfreaks.com/topic/250171-bb-codes/#findComment-1283707 Share on other sites More sharing options...
RaythMistwalker Posted October 31, 2011 Author Share Posted October 31, 2011 Anyone got a tutorial or somethin? Link to comment https://forums.phpfreaks.com/topic/250171-bb-codes/#findComment-1283803 Share on other sites More sharing options...
seany123 Posted October 31, 2011 Share Posted October 31, 2011 http://www.bbcode.org/implementations.php Link to comment https://forums.phpfreaks.com/topic/250171-bb-codes/#findComment-1283805 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.