Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s been a while since you asked the question, but I had the same request.

    You can edit the default by changing the following code on line 2300-2302 of wbfib.php (in the wp-content/plugins/smallerik-file-browser/ folder.

    $text .= "<div id='JS_ACTIONS_DIV'"
    				.((!isset($_COOKIE['wpfib_display_actions']) || $_COOKIE['wpfib_display_actions'] == ACTIONS_BOX_IS_CLOSED) ? " style='display:none;' " : "")
    				.">"

    to

    $text .= "<div id='JS_ACTIONS_DIV'"
    				.((!isset($_COOKIE['wpfib_display_actions']) || $_COOKIE['wpfib_display_actions'] == ACTIONS_BOX_IS_OPEN) ? " style='display:block;' " : "")
    				.">"

    That will make it open by default. The arrows to close/open are now turned upside down but I don’t mind. Probably not that hard to change though.
    Keep in mind that updating the plugin will make this change disappear. But seen as the plugin is no longer being developed as far as I know that shouldn’t be a problem.

    Whoops, the forum cut out a bit of code there.
    Again:
    Change ACTIONS_BOX_IS_CLOSED on line 2301 to ACTIONS_BOX_IS_OPEN
    &
    Change style=’display:none; on the same line to style=’display:block;

    That should do the trick

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Smallerik File Browser] Action toggle box to default to be open’ is closed to new replies.