Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Role Scoper & Simple Sidebar Navigation

UserPost

2:25 pm
November 19, 2009


jonahcoyote

Member

posts 6

1

Hello and thank you very much for this awesome plugin! It is exactly what I need however I am having a conflict with another plugin (http://wordpress.org/extend/plugins/simple-sidebar-navigation/) which is another great plugin that let's you easily create custom sidebars containing internal links.

The problem is when I open the Simple Sidebar Nav widget to define my pages, there are no pages displayed. If I deactivate Role Scoper, the page list in the widget appear.

I've tried adjusting Roles and Restrictions but nothing seems to work.

Does anyone have any ideas?

Any help would be appreciated.

Regards,
Jonah

8:06 pm
November 24, 2009


jonahcoyote

Member

posts 6

2

Can anyone help please?

1:42 am
November 25, 2009


gabimazz

Member

posts 3

3

Hi to everybody ,

I've got the same problem.

I add also the plugin home page address: http://www.ibsteam.net/blog/web-development/simple-sidebar-navigation-plugin-wordpress.

I'll appreciate your help.

gabi


10:52 am
November 25, 2009


Kevin

Admin

posts 1326

4

jonahcoyote said:

The problem is when I open the Simple Sidebar Nav widget to define my pages, there are no pages displayed. If I deactivate Role Scoper, the page list in the widget appear.


The conflict stems from Role Scoper's intolerance of some nonstandard usage of a filter by Simple Section Nav. In function simple_sidenav_pages(), the string passed into the 'wp_dropdown_pages' filter contains only the option tags, not the surrounding select tag.

You can make Role Scoper roll with this quirk by editing function role-scoper/admin/admin_ui_lib.php as follows:

in function flt_dropdown_pages(), change:

return "<select{$sel_tag_content}>\n" . $option_main . $options_html . '</select>';

to:

if ( ! empty($mat[1]) )
  return "<select{$mat[1]}>\n" . $option_main . $options_html . '</select>';
else
  return $option_main . $options_html;

11:08 am
November 25, 2009


jonahcoyote

Member

posts 6

5

Thanks Kevin, that works perfectly! I'll definitely be donating to your awesome plugin and support.

- Jonah 

5:51 pm
December 28, 2009


jonahcoyote

Member

posts 6

6

Hi Kevin,

This fix doesn't seem to be working anymore. I'm using RS 1.1 RC3 and Simple Sidebar Navigation 2.1.3 on Wordpress 2.9

Can you help please?

Thanks,

Jonah

7:10 pm
February 27, 2010


ASwingler

Member

Southern California

posts 5

7

Hi Kevin.

I'm in the process of writing a plugin that's making use of wp_dropdown_pages() and it appears that the RS filter (flt_dropdown_pages) is conflicting.  The problem is that when RS is enabled the only format that is returned is the standard hierarchical list of all pages (I'm trying to get a menu_order ordered list of just the top-level pages).  When I disable RS everything works properly.

The function I've created is running on the admin side of WP and is not associated with an existing page - it is used to set the parent page value for a piece of code that automatically generates sub-pages.

My call is:

wp_dropdown_page('name=<name>&depth=1&sort_column=menu_order&selected=<selected value>);

I'm perfectly happy to modify my code if required, but having had a dig through the RS filter it seems as though there's nothing I could change that would allow my code to play nicely with RS.  I'd hate to release a plugin that conflicts with RS if at all possible.

Any ideas?

Regards, Andrew.

1:59 pm
March 1, 2010


Kevin

Admin

posts 1326

8

ASwingler said:

I'm in the process of writing a plugin that's making use of wp_dropdown_pages() and it appears that the RS filter (flt_dropdown_pages) is conflicting.

My call is:

wp_dropdown_page('name=<name>&depth=1&sort_column=menu_order&selected=<selected value>);


I tweaked the RS code to only filter the page dropdown if the ID / name is parent_id or post_parent. This fix is in the updated Role Scoper development snapshot.

2:00 pm
March 1, 2010


Kevin

Admin

posts 1326

9

By the way, Jonah's last-reported issue with Simple Sidebar Nav was also fixed prior to the RS 1.1 release.

2:48 pm
March 3, 2010


ASwingler

Member

Southern California

posts 5

10

Kevin said:

I tweaked the RS code to only filter the page dropdown if the ID / name is parent_id or post_parent. This fix is in the updated Role Scoper development snapshot.


Thanks Kevin - that did the trick!



Reply to Topic: Role Scoper & Simple Sidebar Navigation

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 4 + 12        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

9 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 667

Posts: 3053

Members:

There are 601 members

There are 1 guests


Kevin has made 1326 posts

Top Posters:

metal450 - 98

YikYak - 58

Ragnar - 36

Daisy - 35

LorenW - 33

Administrator: Kevin | Moderators: Kevin