Allow HTML in Settings
#1
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
Need web hosting? Try MyBBWebHost!
#1 for Running MyBB Communities
The world's only premium web host dedicated to MyBB forums.

Reply
#2
If you don't post the code, it's hard to understand what's wrong Toungue
All my plugins are available for free at MyBB Extend and on my GitHub. MyBB-Plugins.com has been closed and none of my plugins are officially maintained or supported.
Reply
#3
Are you escaping stuff that needs to be escaped...?? ' to \' and " to \" etc...??
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#4
I got it working, it was another problem. Plugin is in moderation Big Grin
Need web hosting? Try MyBBWebHost!
#1 for Running MyBB Communities
The world's only premium web host dedicated to MyBB forums.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)