Site News Plugin Parse BB code
#1
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!
Reply
#2
Just use HTML tags. (<strong> for bold, <em> for italic, full list of them: http://www.w3schools.com/tags/default.asp)
-Doug
1scream Founder
Former MyBB Developer & SQA Member
My Twitter
Reply
#3
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.
Reply
#4
Very awesome, thanks iyeru!
Reply
#5
hey i still can't show img code can anyone help?
Reply
#6
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
Reply
#7
(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!
[Image: 350x19.jpg][Image: tstargermany.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)