WordPress.org

Support

Support » Plugins and Hacks » Custom Sidebars » [Plugin: Custom sidebars] Before and After Widget?

[Plugin: Custom sidebars] Before and After Widget?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author marquex

    @marquex

    You are right! Nice one, I will fix it for the next version of the plugin.

    Meanwhile you can substitute the code from line 555 to 561 on customsidebars.php – Plugins > Edit > Custom Sidebars

    $id = trim($_POST['cs_id']);
    $name = trim($_POST['sidebar_name']);
    $description = trim($_POST['sidebar_description']);
    $before_widget = trim($_POST['cs_before_widget']);
    $after_widget = trim($_POST['cs_after_widget']);
    $before_title = trim($_POST['cs_before_title']);
    $after_title = trim($_POST['cs_after_title']);

    replace it with:

    $id = stripslashes(trim($_POST['cs_id']));
    $name = stripslashes(trim($_POST['sidebar_name']));
    $description = stripslashes(trim($_POST['sidebar_description']));
    $before_widget = stripslashes(trim($_POST['cs_before_widget']));
    $after_widget = stripslashes(trim($_POST['cs_after_widget']));
    $before_title = stripslashes(trim($_POST['cs_before_title']));
    $after_title = stripslashes(trim($_POST['cs_after_title']));

    First of all. Amazing plugin! It’s so versatile and in my mind a feature like this should be part of the base install of WordPress. Thank you.

    I had to add the fix above, but the code didn’t start on line 555, but rather on 691. Once the code was replaced, it fixed the problem with the backslashes for me.

    I’m having a similar problem using plugin version 0.8.1 and wordpress 3.2.1. I modified customsidebars.php as you suggested (the code apparently still hasn’t been updated), but in addition, whenever I put ANYTHING in the “Before title”, “After title”, “Before widget”, or “After widget” areas, it breaks the sidebar completely. Without anything there, it works fine. But I need to style different sidebars with different div classes…

    Unfortunately, I’m using a graphpaperpress theme, which is a premium theme, so I know your assistance can only be limited. But if you have any thoughts on what might be causing the problem, I’m be delighted to hear them!

    Thanks.

    Love the plugin, but have to hunt this post down everytime to find where to escape the quotes. Maybe you can just implement this sometime soon instead of waiting for the whole next version? Would be helpful 🙂

    Thanks for the great plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Custom sidebars] Before and After Widget?’ is closed to new replies.
Skip to toolbar