The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Problem with parsing BB codes in custom script
Hello.
I'm trying to write custom script, that will read news from forum. I've used code, that used to work ling time ago for me, but it does not now, and i don't know why. Heres the code: PHP Code:
When i call forum_read_news function, it have strange effects. It parses correctly bbcodes, that are in handled by plugins. Sometimes it also handles default bbcides, but not always, usualy it leaves most bb unparsed (like lists, [B], [URL] etc). Sorry, that some variable names are in polish, it's easier for me like this, but if it will be problem, i can change it in code aboce. Can someone tell me whan am i doing wrong? I'm using 3.8 beta 2 for testing. may it be some bug with it? But in forum everything is parsed correctly, so I don't think it's forum problem. [Edit] Ok, one thinkg i've found - In this function, if i read more than 1 news, only 1st is parsed, 2nd and more are not. What did i do wrong??? [edit2] OK, sorry. Problem solved. I've used now $bbcode_parser->parse($tresc) insted of $bbcode_parser->do_parse($tresc), and it works. But i'm sure do_parse worked fine some time ago in some older vB version. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|