The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with php
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. |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
Thank you very much, the function was parse_bbcode2(x,x,x,x,x); and it all worked fine. :-)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|