PDA

View Full Version : Help with php


grOOvy
02-28-2005, 07:55 AM
Hello!



I have been modifying external.php and have managed to create a news script in PHP without using JS/XML/RSS. However, I need some tiny bit of help. The post.pagetext that is stored inside $threads is all in a single line. All the linebreaks are lost! Is there any way to read the data while retaining the new lines/line breaks?



Another small question I had was whether we have access to a function which converts bbcode to HTML? I know vbulletin has this mechanism somewhere since we see HTML code in threads and posts.



Thank you for your replies in advance.

sabret00the
02-28-2005, 12:03 PM
use the function n2lbr() it will restore the linebreaks

to the best of my knowledge bbcode to html is written into the bbcode_parse() function or was it parse_bbcode() the first i think :)

grOOvy
03-01-2005, 02:14 AM
Thank you very much, the function was parse_bbcode2(x,x,x,x,x); and it all worked fine. :-)