Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




More Taxonomies

UserPost

8:07 am
July 6, 2010


Worthstream

Member

posts 4

1

Hi,

First al all, thank you for the great plugin! :)


I do have a question: how to integrate Role Scoper with "More Taxonomies"?  I have an extra taxonomy on a custom post type, but it seems like Role Scoper can only manage regular "categories" not additional taxonomies.

Any idea on how to do it? Will it be necessary to modify the source code of either RS or MT, or is it possible with the current versions?


Thank you,


\\ Worthstream

7:09 am
July 13, 2010


Kevin

Admin

posts 2503

2

I just published Role Scoper 1.2.8.beta (see "other versions" in the WP plugin directory). It fixes some problems with custom post type role assignments.

However, I've found that some plugins that deal with custom types / taxonomies do not integrate well with my code - often because they do not register the types/taxonomies early enough on the init action. The plugins that have worked well for me are "Custom Post Type UI" and "GD Custom Posts and Taxonomies".

There may also still be other glitches with custom post types in the RS 1.2 code base. Let me know if any of them are killers and maybe I can backport more code from my version 1.3 development. In general, I've found that with custom post types here to stay, requiring WP 3.0 is my only sane approach to manageable code. So RS 1.3 will introduce that requirement along with code that's optimized for it.

2:51 am
July 15, 2010


Worthstream

Member

posts 4

3

Hello,


i've switched to the 1.2.8beta of the plugin, and from using "More types" to the plugins you suggested.


Here's what happened:


With "more types" when going in Realm -> Object scope, the status of the checkbox did not get saved for custom types, while working correctly for standard types.

We then trie switching to GD Custom Posts and Taxonomies. With this plugin the checkbox status gets saved and a link to the Restriction and Roles for the new type is correctly created and every option in those tabs appears to get saved correctly.

However, the actual behavior of Wordpress is the default one, ignoring any restriction and permissions combination in RS for that custom post type.

More in detail, when setting a user as a "contributor", the option to create a post of the new type is granted both with and without the restriction on that post type being set, without a specific "Role" being set.

When a user is given a "reader" role, he can't create any post type, even with the restriction on the custom post type set, and being granter "editor" or "contributor" role in the Role menu.

We get exactly the same behavior with the Custom Post Type UI.


If this feature is fixed in the 1.3, and you need any help in the testing of that version our group of coders will be happy to give a hand :)

We're using RS for a big project that launches on december, so there is plenty of time to test ;)

6:57 am
July 19, 2010


Kevin

Admin

posts 2503

4

With Role Scoper 1.2.8, you need to manually set each custom post type's capabilities. There are the $wp_post_type->cap properties, which the GD plugin sets via "GD CPT Tools > Post Types". For each capability, replace "post" with your custom type's name.


About the Agapetry forum

Currently Online:

12 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1247

Posts: 5656

Members:

There are 1259 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin