[Plugin: admin-only-categories] doesn't work
-
i just updated it and it stopped working for me too. grrr.
hi ppl, would you mind telling me what’s wrong with it ?
i’ll patch it asap, but when i test it on different platform it seems to work fine.cheers,
Kafter a bunch of test everything works fine for me. here’s the process i’ve done:
1. created a user for each role (contributor, author, editor and even subscriber, in the case someone allow subscriber with other plugin to post)
2. setup 4 category, 1 for each type + 5 ordinary cat
3. setup in the edit category form the assignment for each role, apart for the last 5 categiry that i consider everybody allowed to post in.
4. logged in with each account and verified that every categories that my user are allowed to see are rights.
everything run clean and fine.
did you mess something in that process ?
I get this error in the categories box on the post page:
Warning: Invalid argument supplied for foreach() in /nfs/c07/h01/mnt/102706/domains/1000acts-of-art.ca/html/wp-content/plugins/admin-only-category/admin-category-only.php on line 49
ok, did you try to set your users rights in the edit-categories panel ?
it should solve your problem.
by the way, i seems to need to patch the plug to set the option to a kind of “allow all” at the plugin registration. thanks for reporting
don’t forget to tell me if it works
have a nice day
KYes, I did set the user rights and the problem still occured.
hi lily,
just to know, do you use others plugins that may act with categories or user-related role ( as wl-members or something ?)
i’ve actually test AOC plugin in different environment and it seems to works fine each time, i really have no clue about what’s going wrong ? still searching to reproduce the bug, but can’t.
i’ve patched the plugin to not act if there’s no assignment in categories, and will update it as soon as i found the problem.
thanks for your help,
KYes, I use:
AVH Extended Categories Widgets
Register Plus
User Role Editor
WP-MembersI guess there’s a conflict with one of these? There wasn’t before.
WP-Members seems to be the problem. i’m working on a work around. thanks for sharing,
i’ll keep you update,
cheers K
Right on. Thank you!
Couldn’t get it to work with me, but I made a couple of hacks and it seems to work. I’m working on WordPress 3.01 here.
Main one was changing how it got capabilities on about line 55…
GLOBAL $current_user;
$capabilities = $current_user->caps;Instead of the existing definition of capabilities.
The other thing I discovered was that around line 118 it says
can_accesswhen it should becant_access.I’ve also made it not allow you to exclude child categories and hide child categories in the secured list as the way WordPress displays categories it shows child categories directly beneath their parents.
I can send you the code if you want to have a look at it. It’s a really useful plugin for what I want, so happy to share.
Olly
hi Olly,
sorry for the lack of answer wasn’t home for a couple of days.
sure, you can, as it will help me understand why it works well on some, and don’t for others.here’s my mail kevin.lanteri@gmail.com
thanks for taking some time on this.
Kupdated today with olly’s hack. check it twice on different structure, everything went fine.
@olly : added co authoring, thanks again for your help.
cheers,
K
The topic ‘[Plugin: admin-only-categories] doesn't work’ is closed to new replies.