MyBB Community Forums

Full Version: Allow HTML in Settings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a setting field set up like this:

   $dp_5 = array(
        "sid" => "NULL",
        "name" => "dp_message",
        "title" => "Message",
        "description" => "This is the Message (HTML Permitted)",
        "optionscode" => "textarea",
        "value" => "Lorem Ipsum.",
        "disporder" => "5",
        "gid" => intval($gid),
        );
    $db->insert_query("settings", $dp_5);
Then on a different file, I have:
$message = $mybb->settings['dp_message'];

Now this $message is used as {$message} inside of one of the templates.

I want to allow HTML in $message, but when I try adding it it deletes the entire template. Please help Smile
If you don't post the code, it's hard to understand what's wrong Toungue
Are you escaping stuff that needs to be escaped...?? ' to \' and " to \" etc...??
I got it working, it was another problem. Plugin is in moderation Big Grin