Simple Sidebar Navigation Plugin for WordPress

Details

Simple Sidebar Navigation is a WordPress plugin that allows you to easily create custom sidebar navigation widgets. By simply selecting existing pages from the list or adding custom links you can create sidebar navigation blocks in seconds without any PHP knowledge.

DOWNLOAD PLUGIN

Current Versions:
- 2.1.2 for WordPress 2.8 and newer
- 2.0.9 for WordPress 2.7 and older

Earlier versions are available as well.

Features Include:

  • Flat and multi-level navigation hierarchy for existing pages and custom links.
  • Very flexible conditional appearance options (greatly expanded from before 2.0 version).
  • Out-of-the-box Suckerfish support.
  • Option to add navigation links with custom title, url and target attribute.
  • Unlimited number of navigation widgets.
  • Optional setting includes blog posts into the navigation selection list (only pages are available by default).
  • Support for custom drop-down menus CSS.

Known Issues:

  1. Non-English alphabet makes links to disappear in the right selection list after saving.
  2. There is a fluxing behavior when child links can not be added under custom links. Happens rare, but I caught it a few times.

Support Forums:

I had to close comments under this post because it's getting hard to manage them and follow the conversations. If you would like to submit a bug please do the following:

  1. Register in the Forums.
  2. Login and go to the User Control Panel (User CP).
  3. Under Group Membership join "Approved Registered Users" group (if you skip this step, you won't be able to post in the forums).
  4. Then post your message in the Simple Sidebar Navigation thread.

Demonstration

Video Demonstration

Screenshot of Simple Sidebar Navigation WordPress Widget

DOWNLOAD PLUGIN

Instructions

Feedback is appreciated! If you have any troubles with the plugin, submit your questions to the Support Forum.

From the readme.txt

The data storing conditions have been changed since 2.0 version.

  • The plugin will try to convert your existing simple sidenav widgets, but I suggest you to backup or make notes about your existing simple sidenav widgets, in case something goes wrong, so you can restore or duplicate your previous settings.

Installation - like any other basic plugin:

  1. Upload simple-sidebar-navigation folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to the Widgets dashboard, scroll to the bottom to add the desired number of widgets. Add widgets to your sidebars and edit them. The edit window should be self explanatory.

Top Navigation Management functionality:

  • Edit your theme's header template or the correct template that contains header navigation. If you have static navigation links in your template or any other functions that generate your top navigation - paste it instead of this tag <!--YOUR OLD NAVIGATION -->.

<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Simple Top Nav') ) : ?>
<!--YOUR OLD NAVIGATION -->
<?php
endif;
?>

Until the "Simple Top Nav" widget is created in the administrative widgets dashboard - your old navigation will still be functioning. The same applies when the Simple Sidebar Plugin is disabled or removed.

  • Go to the administrative Widgets dashboard and select "Simple Top Nav" as your current widget. Add one of the available Simple Sidebar Navigation widgets to the sidebar and edit it.

Suckerfish or Drop-Down Menus:

  • Suckerfish.css default stylesheet is included. If you would like upload your own, separate from your main CSS file, drop-down menus stylesheet - you can specify its path via Settings => Simple SideNav.
  • You can generate a custom stylesheet with this Multi-Level Navigation CSS Generator, but you'll have to append each #suckerfishnav ID with .sf Class. To do so, simply search and replace [#suckerfishnav] with [#suckerfishnav .sf], without the square brackets, using any text editor. Make sure you enter a space between the ID and the Class as shown above.

Notes:

  • If you add more than one widget to the Simple Top Nav sidebar - it may break your theme's design or layout since only one list of links is usually expected to be there.
  • Widget's Title in the Simple Top Nav sidevar should be blank - otherwise it will be hidden via inline CSS as display:none. I couldn't figure out how to alter the widget "on load" to remove it's title since it shouldn't be in the top navigation.
Photo of Max Chirkov.
Sorry about the "fast release" - the 1.0 version had a hard coded URL to the livequery library, so when I added version number to the plugin's folder, the path got broken. Please let me know if you experience any difficulties with the plugin.
Fantastic job Max! I **love** being able to (easily) apply different nav menus to posts, pages, categories, etc. Truly a useful plugin
Photo of Max Chirkov.
Thank you Jay! If there are any improvement wishes - I'm all ears ;)
Pretty sweet Max. Going to play with it when I get back home.
Well done, a great job and I love the simplicity of it. I am giving it a really good road test on a new project so I will keep you posted. Many thanks.
Photo of Max Chirkov.
Thanks mate! I appreciate any feedback :)
super, thnx u for clean code, we need it :]
I just installed your plugin. I have used a few like this and yours looks to be the simplest. Thank you! I was wondering if there is any way to have LESS links appear in my top horizontal nav bar than appear in my right sidebar using your plugin or any other plugin? Lets say I want ONLY 4 links in my top nav bar but want ALL 10 links (or whatever the amount) in my right sidebar. So far it seems that whatever I choose to go in the right sidebar will also appear in the top nav bar and it makes things way too cluttered up there. Got any ideas how to do that without major messing around with code? Thanks Steve
Photo of Max Chirkov.
Thanks for the kind words Steve! I just updated the plugin to 1.2 version and included Top Navigation functionality. All you need to do is to insert a few lines of PHP code, I mentioned in the instructions of the README.TXT file (as well as in the post above) into your header template, and you will be able to manage your top/horizontal navigation from the backend without any custom coding. BTW, you can have different top navigation for different parts of your site i.e. for static pages or for blog it it's not on the home page etc. Let me know if this satisfies your needs.

How can I seperate (better ad) more than one ID in the field "Display only on: page(s)"?

One ID works fine but when I want to write a second ID in (with the "common" seperators like "||" and so on) it, nothing is shown.

Hope you can get what I mean an can give me an answer for my BIG problem.

And sorry once again for going this way.

Regards from germany,

horch

Photo of Max Chirkov.
Thanks for pointing that out to me. As said in my email to you, the original Daiko's Text Widget plugin didn't support multiple IDs for pages and posts. I fixed that and from now on we can use multiple page/post IDs and even slugs separated by comma. Just make sure there are no spaces after the comma.
Hello Max, now it works fine! Thanks again for the quick answer and this nice plugin. horch
wow, so I finally found something to unblock my problem. I still have a question. At the moment, I'm using your widget (awesome by the way) to custom link (using display only on page) so that in the sidebar, appears the menu of that page. My problem is I can only put your widget 9 times and I'm gonna have tons more pages with menus. So I was wondering if you knew a way I can either have your widget on my page more than 9 times, or if you know a way to set up a single widget so that on the sidebar appears the menu (links) of the current page. For example: Main link would be www.test.com Then I have a page www.test.com/one then I have several www.test.com/one/two ;www.test.com/one/three ;www.test.com/one/four ;www.test.com/one/five So I'd like to have on the sidebars of only the pages starting with www.test.com/one to have the links starting with www.test.com/one Hope I was clear enough in my question. sorry for the hassle. tks
Photo of Max Chirkov.

Thanks Casper!

I think you can achieve this kind of dynamic URL effect by simply using the slug in the "Custom Link URL" field. For example, if you enter a slug "twenty-two" in the Custom Link URL - it will be added to every URL where the actual widget appears. So, if the widget appears on page http://domain.com/video - then the link should work as http://domain.com/video/twenty-two. You just need to make sure that your widgets only appear on the pages that actually have those links.

I'm not sure if I want/need to make widget number to be unlimited, but if you want to hack in - you probably could do so by editing the simple-sidenav.php file and changing the number 9 in all occurrences (2 functions: simple_sidenav_setup() and simple_sidenav_page()) to let's say 99 and number 10 to 100. Then you should have ability to add up to 99 widgets (I think).

Let me know if any of these options work for your project.
Good luck!

Thanks for this super useful plugin. Please keep up the good work!
Photo of Max Chirkov.
You're welcome Josh! I have a few more ideas on improvements, now I need to find some time to implement them :)
I'm a total beginner, but I have figured out how to use this plugin. I've been using it to add specific page links to specific pages on the sidebar . . . naturally. What I want to know is if I can add text or html codes to specific page sidebars in the same way using this plugin, or do I need to get another plugin or manipulate something in this one? Thanks!
Photo of Max Chirkov.
Crystal, regular Text Widget that already built-in into the WordPress allows to place custom HTML code into the sidebars. If its conditional appearance doesn't fit your needs, try Daiko's Text Widget - it has pretty much the same appearance conditions as my plugin since built it based off Daiko's.
I had another question about making it so that I can use your widget more than 9 times. I know you addressed that earlier, but I can't seem to get it to work . . . think you could email me more specifics or clarify for me? Thank you!! What a great tool! I've been looking forever for something like this.
Photo of Max Chirkov.
The maximum number of widgets is hardcoded in the plugin. It was like that by default in Daiko's and I never changed it. You can hack into the plugin's PHP code directly and edit lines 271 and change 9 to any number you need. Then go down to line 290 and change 10 to whatever you entered in the previous line +1. Should work.
Thanks Max for your Excellent Plugin! You made my life easy, now I can do the sidebar navigation with simple effort. Do not forget to update me for any changes beyond the plugin update. Best wishes!
Dear Max, I am back again for some kind comments after some observations if you allow me. This is just value addition to your plugin. 1. it does not allow to select more than one link to add pages to the "sidebar navigation link pannel". I have to click 100 times if I have to create 100 links. 2. In the "custom links" pannel, I wish there is "Browse" button to link posts... 3. I also wish there is "alternative Link Title" for pages instead of showing up all the long titles at the sidebar. 4. can you make the long widget name short such as "Sidenav" or something? It takes lots of the admin pannel when we add more than five widgets. Thank you Max! All these comments are simply value adding...please leave them aside if they are no interest to you. Regards,
Photo of Max Chirkov.
Hi Abiyot, thank you for the kind words and all the ideas to improve the plugin. I will consider some of the suggestions you made and try to implement them when I have time. Although, you should keep in mind that this is a "Simple Sidebar Navigation" - adding 100s of links doesn't make navigation simple in my opinion. Thanks again for your suggestions, I'll definitely look into them!
Thanks for this usefull plugin - works out of the box. One thing, i couldn't figure out is, how to mark the current page as aktive in the navigation. Could you give me an advice? Thanks for your help in advance. Hardy
Photo of Max Chirkov.
Thanks Hardy! That particular feature is on my "to do" list. I don't know if there is a mechanism built-in into the Wordpress that marks links/menu items as active, but I was going, basically, to make a function that would compare current URL (or page ID) with those that are on the list and just add class="active" in the HTML. Something as simple as that. If you can't hack into the plugin on your own, you'll have to wait till the new version. To be absolutely honest, I don't know when I'll get the chance to do that, but I'll try to implement it in the near future.
Thanks Max for your quick replay. My investigation in this topic "Dynamic menu highlighting with WordPress" produced a lot of Information. I´m not a programmer and not able to hack the plugin by myself. I found out, there is a build-in mechanism in Wordpress! Some good information can be found on http://codex.wordpress.org/Dynamic_Menu_Highlighting. Maybe this will help you to find a easy and quick solution to make your plugin more sexy. Thanks, have a nice weekend. Hardy from Berlin
Hi Max -- I love your plugin as well, but my client is demanding that I show the current page in the menu. I know it's on your to-do list ... can you tell us if it's near the top or the bottom? If you think it's coming soon, I can assuage my client for a bit. If you're not sure, I may need to pull it down until that feature becomes available. Otherwise, I think this plugin is fantastic!
Photo of Max Chirkov.
Thanks funkalicious. To be honest, I don't know when I will get the chance to get it done, so no promises for now. But I definitely will work on it as soon as I have some time.
I have your plugin installed, and it seems like a lifesaver! However, I need a question answered before my life is actually saved. :-) I went through the widget set up, save, etc. When I view the page, however, I get the title bar, but the links themselves are not visible. It all shows up in the source. I even get a cursor for the links and they are clickable, but they cannot be seen. I'm thinking it's a template issue, but I don't have the problem with any other widget. Any suggestions on how to troubleshoot? Thanks for your time!
Photo of Max Chirkov.

Roz,

if your site is live, post a link and I'll check it out. If you can highlight the links in the sidebar and read the anchor text on the highlighted area - it's a CSS issue in your template. I wrapped all links into tags to add more flexibility in styling - your theme might have some special styles for spans, in this case you'll need to overwrite them with your custom style. Should be easy to fix via CSS.

Let me know if your site is live, so I could take a peak.

one way to implement ACTIVE state is to implement CLASS NAMES. Class names could be the menu slug. Combined with BODY classes, you could use CSS to create an active state look.
if( $link[0] == 'page' ){
	$output .= '< li class="menu-'.strtolower($link[1]).'">< a href="' 
	. get_page_link($link[1]) . '">< span>' . $titles[$link[1]] 
     . "< / span >< / a >< / li>\n";
} elseif( $link[0] == 'custom' ) {
	$output .= "< li class='menu-".strtolower($link[1])."'>< a href=" 
	. $link[2] . "'>< span>" . $link[1] . "< / span>< / a>< / li>\n";
}
Photo of Max Chirkov.
Thanks for the code! But, this particular code will not automatically highlight the active navigation items. It will assign unique classes, so you can style all your links differently. We need a dynamic class that will be added only to the nav items that are currently selected. For example, let's say we have a nav item called Contact. So, when you're on that particular page (/contact), the Contact item should be assigned class active. This way you can have custom CSS that will highlight currently active navigation links. All we need here is a small function that will compare current URL with the URLs of the navigation items. I need to look up if WP has a function like this already built-in, so we keep everything within the WP flow.
Photo of Max Chirkov.
I just wanted to let everyone know that I added the active navigation item functionality in the 1.3.2 version. I basically used exactly the same code that the native wp_list_pages() function uses, and implemented the same class for the active navigation items: class="current_page_item". Keep in mind that the class is applied to the list item ( < li > ) instead of the < a > hyperlink - that's how it's done by the WP native wp_list_pages() function. Feel free to post your questions here.

Thanks for this great plugin. I was wondering if it does subitems as well. Currently it puts out a nice list, but I need something like this:

Any way to achieve this?

Photo of Max Chirkov.
Yes Athos, I'll be looking into implementing this kind of functionality at some point. I realized that this is what drives drop-down navigation as well, so it does make sense to put it on my to-do list. As far as a way to achieve it right now - no, there is no way you can do it with the current plugin. I think there should be an additional action button that will assign child items to the links in the navigation widget.
Yeah, that should be a great addition really. I was also wondering if the plugin supports multiple languages or not. I would love to make a translation for it.
Photo of Max Chirkov.
To be honest, I haven't even looked into the languages - not even sure how to implement it. Will put it on my to-do list as well since I could translate it to 2 other languages myself.
Translation is really simple as long as you use the preferred settings. Basically instead of echo you would use the function _e('string'); If you want to fill a variable, then use the function __('string'); I can change the file in the latest download to these rules, however I'm not sure if it is the latest version (otherwise merging those files will be difficult). For more information on localisation of plugins, please see: http://codex.wordpress.org/I18n_for_WordPress_Developers
Thanks for the quick implementation of the "active navigation" feature. Works perfect. Result can be seen on http://www.saxandvoice.de Thanks for your good work. Hardy from Berlin
Hi Max- Thanks for the code - it is exactly what I am looking for. I'm having a bit of trouble. The template I am using for my wordpress site only allows for 6 pages in my top main navigation, any other pages I add get pushed down below and it looks bad. Which is why I found your widget, because I wanted a sidenav that is constant like the main nav, but one that allows me to have 10+ pages. Anyway - I can not figure out how to actually add a page for each of my sidebar navigations without going to my"pages" in wordpres & adding another page - and then it showing up on my main nav, again bumping my type below. I am in the 'appearance" category - then "widgets" and i see the option "pages" and then edit - but how do i create MULTIPLE pages through this widget rather then have them show up in the main nav? I hope this makes sense... Thank you!!
Hi Max, I found your site while searching for alternatives to the old daikos text widget (which now doesn't play nicely with wp2.7). I had used daikos for most widgets on my site, but it has a way of "disappearing" widgets with 2.7. I then tried Executable PHP widget in combination with Widget Logic plugin and found same problem. So I look to use your simple sidebar nav instead. Looks fine on my test site, however, there is no provision to just add code instead of page links. Any chance you'll be doing a version that can accept code in the widget? OR any suggestions? Regards, George
I was wondering if there is a way to have this widget use it's own CSS? I want to modify the look, but don't want to make global changes to my ul/il attributes.
Photo of Max Chirkov.
Currently, this widget does not use any CSS. I was trying to be as close as possible to the original WP markup, so people that follow it can apply their styles without creating new ones. If you have a custom theme or your theme has different HTML markup for the sidebars - you'll need to add new styles to your theme's stylesheet. If you want, drop a link to the site you're working on, and I'll take a look at it.
hello, I have built a site using your plugin and it is very cool. I am having a problem viewing it in IE 6. The navigation drops way down the sidebar. This does not happenin Firefox or IE 7 or 8. Any ideas would be greatly appreciated.
Photo of Max Chirkov.
Bruno, the plugin does not use any styling, so there is nothing conflicting can be between the plugin and your theme. The only thing that can be affecting this is if my HTML structure is different from your theme's structure of the side navigation. I used the nested list structure as it's being used in the default WP theme. Drop a link to the site in question, if you wish, and I will take a look.
Cool plugin. What if I want to add posts as well as pages? It's an easy fix.
Add the following code after "$pages = get_pages();" on lines 17 and 52 of simple-sidenav.php.

// add posts to the pages array
$posts = get_posts();
$pages = array_merge($pages, $posts);

I think you should add this to the plugin. Or at least add a way to turn posts on and off in your options list.
Photo of Max Chirkov.

Thanks for the suggestion Mark. I was thinking adding this feature and making it optional, but I don't know how that will work if someone has thousands of blog posts in a span of years. That just doesn't seem a user friendly option in that case. I feel that mostly people want to put page links and category links into their navigation. Blog post link would be rare, so it would be much easier to create a custom link instead by using slug or post ID in that case. I can't imaging finding a post among hundreds or thousands of others in a single list. If some one knows the exact post they would like to add to the navigation - why not use the post ID?

I just don't feel comfortable adding this option in due to a large number of possible posts in a list, which won't make things easier, but more confusing. Feel free to collaborate on this subject a little more, - I may see the benefits of it.

Thanks for this very useful plugin, it is just what I need it, good work Max.
Photo of Max Chirkov.
Thanks Damian! I'm about to release a new version with more features. Stay tuned.
Thanks Max for this great plug-in. I just used it on 3 of my sites and it worked like a charm. Very simple and straight forward to use and saves a light of time not having to deal with php. Ray
Photo of Max Chirkov.
Glad to hear you find it useful, Ray! As soon as I update the readme.txt file - I'll upload a new version.It will allow submenus/dropdown menus and a few more useful options.
Hello Max, I've used your plugin for a little while now and hink it's very usefull. Today i updated it because wordpress dashboard said there was an update, but now the pluging doesn't work anymore? I can't put any pages or links in the menu?
I've just downloaded the latest release (2.0.0) but it doesn't seem workin properly... On the activation warnings related the inclusion of an inexistent "admin/settings.php" in simple-sidenav.php and on the front-site warnings like this: "Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in C:\Programmi\EasyPHP\www\wordpress\wp-content\plugins\simple-sidebar-navigation\simple-sidenav.php on line 168" Can you help me? I'm now trying the 1.3.2 version and it seems great! I'd like to use the latest release
Photo of Max Chirkov.

Hey guys - there is an issue with the WordPress Repository Server. As soon as they fix it I will update the plugin and change the red warning message at the top of this post.

Thanks!
Hi Mark, Got caught with the problem with the WordPress Repository Server. Unfortunately your link http://www.ibsteam.net/files/design/wp-plugins/simple-sidebar-navigation.zip from doesn't seem to work. Have I missed something? Thanks for a very helpful plugin. One day I must see if I can write some. Regards Nick
Photo of Max Chirkov.
Nick, the link works for me. I tried it in different browsers and even on different computers.
hey max, great plugin .. a suggestion for the next upgrade - the possibility to add a complete category in 1 menu, and when a new post is created, under this category, is automatically added to the menu.
Photo of Max Chirkov.
Thanks JP! Interesting suggestion - something to think about :)
hei Max, ... first I will thank you for this great Plugin, but with the new version 2.01 I have the same poblems like Francesco: "front-site warnings like this: "Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in C:\Programmi\EasyPHP\www\wordpress\wp-content\plugins\simple-sidebar-navigation\simple-sidenav.php on line 168" Can you help me? I'm now trying the 1.3.2 version and it seems great! I'd like to use the latest release" Is there a solution or have I to work with the older version? Greetings from Germany
Photo of Max Chirkov.

Werner, I just tested on my own site upgrading from 1.3.2 to 2.0.1 and everything was just fine. I don't know how to replicate the same error as you have.... can you open up the php file and add these lines:

print "<pre>";
print_r ($link);
print "</pre>";
and email me the output at editor@ibsteam.net? I'll try to take a closer look. Also, double check if you have the 2.0.1 version. BTW, did you try creating a new widget and see if it works?
Hi Max, I have been using the SSN Plugin for a while on another site, worked great, and thanks! I have it on a new site, seems to still not work correctly, even after wordpress updated there end. It is not saving any of my custom links, after they are entered in the sidebar navigation. I hit done, and save....disapears. Also tried hitting save first, and creating a new widget after completely re-installing SSN. Thanks!
I go it to work by making sure there were no apostrophe's!! So far so good, thanks again!
Photo of Max Chirkov.
You're right Eben - I missed the apostrophes. Right now it won't save links with apostrophes in title. I gotta figure out how to escape apostrophes in jQuery. Thanks for the catch!
Photo of Max Chirkov.
I'll fix the apostrophes bug later today and make 2.0.2 release.

i don't know if anyone else have this problem, is when add a post to the navigation, the plugin is not putting the correct url (i am using permalink) .. so i had to edit the plugin and replace.


get_page_link($link[$i]['page']) for get_permalink($link[$i]['page'])


if(array_key_exists('page', $link[$i])){

$output .= "\t\t<li class='".simple_sidenav_current_page($link[$i]['title'])."'><a
class='depth_".$link[$i]['depth']."' href='" . <b>get_permalink($link[$i]['page'])</b>
. "'><span>" . $titles[$link[$i]['page']] . "</span></a>";

anyway ,., am not expert in wp ,, but at least work for me.

Photo of Max Chirkov.
JP, you're absolutely right. I actually saw this and fixed on my own working site, but never applied to the SVN. Will update in 2.0.3
Hi Max, Your doing a great job buddy! keep up the good work! I am getting an error message when using Internet Explorer, not sure if i am doing something wrong. Thanks again! Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727) Timestamp: Thu, 9 Apr 2009 17:53:21 UTC Message: 'document.getElementById(...)' is null or not an object Line: 3 Char: 1 Code: 0 URI: http://vbnights.com/wp-content/plugins/simple-sidebar-navigation/suckerfish_ie.js
Photo of Max Chirkov.

Thanks Eben!

When I added new conditional settings to turn on/of drop down menus, I forgot to remove the unconditional action that was loading suckerfish javascript into the header.

Just remove line 665: add_action('wp_head', 'simple_sidenav_head_default'); It fixed the error for me and everything seem to work just fine.

Yep, you got it! Works great, thanks again!
Photo of Max Chirkov.
Cool! Thanks for taking a look. I just committed the 2.0.5.
Hey Max, nice plugin mate, just what I was after. But as with most comments I have a problem and the plugin is producing some interesting behaviour. I had a page where the url had a "-" in it, so "audio-video", this would cause the plugin not to add that page and would also remove all other pages that had been added. Figured I would try adding all the other pages minus this one, no problems, it worked as advertised :) I thought I'll try updating the page name/url, so I removed the "-video" so now the page was only "audio" in name and in the url. Still no dice and displays the exact same behaviour. I'm guessing there is some caching going on somewhere, but would appreciate your insight into this :) cheers!
Photo of Max Chirkov.
Rhys, do you have a WP Super Cache or any other cache plugin installed? Try deactivating it and see if that changes anything.
Hey Max, nope I have no cache plugins installed. So I tried deleting the page and then making it again - still got the same result. I made a new page with a new name - "music" that worked fine! Very strange, I still suspect it might be a caching thing somewhere, though I'm not sure where. I've restarted my Apache server several times, uninstalled the plugin then reinstalled, but no joy. Does Wordpress have any caching tools turned on by default?
Photo of Max Chirkov.
Rhys, I see that bug on my site as well. I'm not a programmer and this is my first plugin for WP, so please bare with me :) Before the 2.0 version, I was storing data as a string delimited by pipes [|] to create an array tree that I could parse. In the 2.0.x version I actually serialize arrays and store then that way. The problem here is, that I have to serialize it in JS while doing all selections in the widget editing window. I'm using a php.js library that supposedly does PHP-compatible serialization... I already had to fix one bug to escape the apostrophes in anchor text, otherwise links were disappearing the same as as hyphens right now in your case. So, I think that's where the problem might be. I'll try to check it out within the next few hours.
Photo of Max Chirkov.
Posted too quick. Looks like the links data didn't actually get deleted - it's still in the database in serialized view, so it seems like a parsing issue. I'll investigate further.
Photo of Max Chirkov.
Well, I'll have to spend some time figuring things out... it doesn't seem to be a parsing issue after all. All links disappeared in all widgets after I added a custom link. I'll have to look at my earlier versions and see where exactly it stopped working right.
Photo of Max Chirkov.
Rhys, I emailed you an updated file earlier today to try it out. It worked for me. Weird though, I check current version against the earlier ones with the DIFF and there were no changes that could trigger the error. After I tried the new file and everything worked as normal, I downgraded back to the 2.0.4 (the troubled one) and it still worked. I was able to create new links with hyphens and it worked. So, at this point I'm at square one. It may be related to converting older links delimited with pipes or it's a floating bug that might surface again.
Hi! What does "Warning: array_key_exists(): The second argument should be either an array or an object in /hsphere/local/home/hallonsoda/casinoexperten.se/wordpress/wp-content/plugins/simple-sidebar-navigation/simple-sidenav.php on line 149" mean? //New to wordpress....
Photo of Max Chirkov.
Annika, are you updating from an earlier version? Have you tried the latest 2.0.5 update?
Hi Max! I´m using WordPress 2.7.1 and the latest update of SSN but only a few of my pages will show in the sidebar. Could it be the theme I´m using (Atahualpa)? I don´t know anything about php and was hoping it was a problem easy to solve ;-) When I have added a page in the SSN widget and saved the changes it is not there the next time I open the it and the warning message appears in the sidebar.
Photo of Max Chirkov.
Annika, so far it appears that some people that upgraded from versions prior to 2.0, and those that use alphabet different from English, encounter the same error as you do. I'm emailing back and forth with one user who has a similar problem - as soon as I get it resolved I'll post the solution.
Thanks Max!!! I think it´s great plugin and I would be very disappointed if I could not use it :-) Keep up the good work and have a nice day!
Photo of Max Chirkov.
Please download 2.0.6 release - it should solve the problem.
I have the same problem as Annika Any solution???
Photo of Max Chirkov.
Please download 2.0.6 release - it should solve the problem.
It was runnning also with the former version after deactivating the plugin. Reactivating resetting to have only one menue then resetted to have 5 menues again and setted up the menue entries again. Then I hab no more errors with the former version. But to day I have updeated to the newst version 2.06 Unfortunately I have a new problem. Wiith the 1.3.2 Version my hole Page was runnning xhtml strict valid Now I am havin 34 errors Please have a look at http://www.frank-hamm-webdesign.de There is a vildation button to check. Any Ideas how to solve that? If not how can I completely uninstall 2.0.6 and go back to 1.3.2? I dont need the new funktions BUT NEED xhtml valid code Would be nice to get an replay by email Kind regards and thanks in advance from germany Frank
Photo of Max Chirkov.
Should be easy to fix. I'll make an update as soon as I can get to it. As far as reversing to 1.3.2 - there is no smooth way of doing it. You would have to go to your database and remove "side_nav" option record from the wp-options table (you can find it in the option_name column). Then re-install 1.3.2 version. You will have to create your navigation from scratch.
Thanks alot Max, I have updated the plugin to 2.0.7 2 minutes ago and it works perfect. Thanks alot. kind regards Frank Hamm
Thanks Max I've seen the updates winging their way in rapid succession recently so I thought something was up! For me, there's been a sea change in the tool's effectiveness. It was good before, but the new usability is fantastic. I reworked my old band site http://crawlingchaos.co.uk last night and the smooth features made it so easy. Thanks very much - and you say you are no programmer! Ha Ha!
Photo of Max Chirkov.
Thanks for the compliment! I'm glad that so many people find the plugin useful :) And, no, I don't consider myself a programmer - this is my first WP plugin and I learn as I go :)

Hi,

seems to be a great plugin but I have tonns of errors as I posted there http://www.ibsteam.net/forums/showthread.php?p=5573#post5573 . I maybe do something wrong but I don't know what ...

And if you look for somebody to translate it in french ... I could try ...

Best regards,
Christophe Charron

Hi, happy to find exactly what I was looking for - great work. Once I add a child item, I get a frontend php-warning Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/www/wp/wp-content/plugins/simple-sidebar-navigation/simple-sidenav.php on line 155 Any ideas how to fix it? Cheers, Chris
Hi Christopher, I was having this problem as well. What I had to do was to change the child pages to regular pages in the edit page section and THEN add them as child pages in the sidebar. For some reason, the widget doesn't like child pages.
You saved my life by coming up with this widget and updating it so quickly. Just when I need new things, you update! Thanks so much. I'm going to donate. I appreciate all your hard work. The new 2.0.8 update makes it validate with the w3c, which is what I was going to ask about. Now that I don't have to worry about that anymore, I just have one, probably very stupid, question. I'm not at all familiar with suckerfish. How do I make my menus have drop-down features. Right now, I have managed to add child pages to my navigation, but they show all of the time.
Max, when I clicked "donate to this plugin" on your WP Plugin page, it said "page not found." Is there a way that I can donate to your plugin as a thanks for all the hard work you've put in? Buy you a cup of coffee?
Photo of Max Chirkov.
Thank you Rebekah, I just added the donation page and a button at the top of this post :)
Photo of Max Chirkov.
Time to close the comments - they're getting a little bit out of hand here :) Please read how to register in the support forums. Hopefully that will be more manageable.