MyBB Community Forums

Full Version: Site news plugin not displaying bbcode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The bbcode for the site news plugin is not working when I display it on my homepage. It simply displays the code, not the image or link.


HELP!
Hey does anyone know what is wrong? I can't believe the whole plugin community hasn't used this before and felt the same error.
bump, because i'm getting the same problem and i need some help fixing it.


it works fine on MyBB 1.2 but not on 1.4, so whats the deal?
i got it.

add this:

            
$parser_options = array(
                'allow_mycode' => 1,
                'allow_smilies' => 0,
                'allow_imgcode' => 1
            ); 

above:
			$newsmessage = $parser->parse_message($news['message'], $parser_options);
			eval("\$postdata .= \"".$templates->get("newsplugin_main")."\";");    

to create something like:

		} 
			else 
			{
				$avatarbit = "";
			}
            $parser_options = array(
                'allow_mycode' => 1,
                'allow_smilies' => 1,
                'allow_imgcode' => 1
            ); 
			$newsmessage = $parser->parse_message($news['message'], $parser_options);
			eval("\$postdata .= \"".$templates->get("newsplugin_main")."\";");    
		}

Smile