MyBB Community Forums

Full Version: Site News Plugin Parse BB code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It would be good if the site news plugin could parse bbcode because currently If I have any bbcode in the news post it is shown as plane text onj my website which doesn't look too good. If this could be sorted it would be great!
Just use HTML tags. (<strong> for bold, <em> for italic, full list of them: http://www.w3schools.com/tags/default.asp)
This is due to parser_options not being defined.

Stick this...
$parser_options = array(
            "allow_html" => "no",
            "allow_mycode" =>"yes",
            "allow_smilies" => "yes",
            "allow_imgcode" => "no",
            "me_username" => "no"
        );

right before
$newsmessage = $parser->parse_message($news['message'], $parser_options);

setting allow_html to yes may not parse html.
Very awesome, thanks iyeru!
hey i still can't show img code can anyone help?
How do I change the encoding type to UTF-8? I'm kinda new in this.

Because for example, when the thread contains "á" instead of showing the same, it appears as "é" in the website...

(2008-12-18, 10:33 AM)kevint Wrote: [ -> ]hey i still can't show img code can anyone help?
I used to have the same problem, and I fixed it by changing no and yes to 0 and 1 (from iyeru's piece of code). Rolleyes
(2009-01-05, 07:05 AM)Rufio Wrote: [ -> ]I used to have the same problem, and I fixed it by changing no and yes to 0 and 1 (from iyeru's piece of code). Rolleyes

this actually WORKS!