dannyluked Posted December 28, 2009 Share Posted December 28, 2009 Hi, Does anyone have a link to a good BBcode tutorial. It may even just be a download or a script. I am struggling to understand it so far! Thanks Link to comment https://forums.phpfreaks.com/topic/186512-php-bbcode/ Share on other sites More sharing options...
Buddski Posted December 28, 2009 Share Posted December 28, 2009 I found this http://www.desilva.biz/php/bbcode1.html it may be of some help. Link to comment https://forums.phpfreaks.com/topic/186512-php-bbcode/#findComment-984973 Share on other sites More sharing options...
ignace Posted December 28, 2009 Share Posted December 28, 2009 You might be better off using http://php.net/manual/en/book.bbcode.php Link to comment https://forums.phpfreaks.com/topic/186512-php-bbcode/#findComment-984988 Share on other sites More sharing options...
dannyluked Posted December 28, 2009 Author Share Posted December 28, 2009 Thanks for the replies! Does anyone know how I can make inputed text format the way the user typed it. For example when the user goes down a line (presses enter) the text will be formatted with a line break (<br>)? Link to comment https://forums.phpfreaks.com/topic/186512-php-bbcode/#findComment-985001 Share on other sites More sharing options...
Buddski Posted December 28, 2009 Share Posted December 28, 2009 http://php.net/manual/en/function.nl2br.php That should do the trick Link to comment https://forums.phpfreaks.com/topic/186512-php-bbcode/#findComment-985002 Share on other sites More sharing options...
laffin Posted December 28, 2009 Share Posted December 28, 2009 u can also use : <pre> which is simpler to use imho No PRE : This is an of a multiline comment. Again for example purposes. With Pre: This is an of a multiline comment. Again for example purposes. Link to comment https://forums.phpfreaks.com/topic/186512-php-bbcode/#findComment-985154 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.