Skip to:
Content
Pages
Categories
Search
Top
Bottom

Loading option into array

  • So I have stored an option called forum_restriction_db. It has the value of:

    “1” => “David Bessler,testman”, “3” => “David Bessler”,

    When I try to assign that array to a varaiable as follows:

    $forum_restriction_allowed_in_forum = array(bb_get_option(‘forum_restriction_db’));

    It tells me the value of $forum_restriction_allowed_in_forum is just array.

    I tried setting the value of the option forum_restriction_db to array("1" => "David Bessler,testman", "3" => "David Bessler",)

    but then it spits back the members of the array as a,r,r,a,y etc … so the allowed memebrs of the forum_id 3 is “r”.

    How can I get this to work?

Viewing 1 replies (of 1 total)
  • bb_update_option( 'forum_restriction_db', array( "1" => "David Bessler,testman", "3" => "David Bessler" ) );

    $value = bb_get_option( 'forum_restriction_db' );

    That’s how it should work.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar