WordPress.org

Ready to get started?Download WordPress

Forums

admin-only-categories
doesn't work (14 posts)

  1. niaxniax
    Member
    Posted 3 years ago #

    it doesn't work

  2. lilydustbin
    Member
    Posted 3 years ago #

    i just updated it and it stopped working for me too. grrr.

  3. kevinlanteri
    Member
    Plugin Author

    Posted 3 years ago #

    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,
    K

  4. kevinlanteri
    Member
    Plugin Author

    Posted 3 years ago #

    after 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 ?

  5. lilydustbin
    Member
    Posted 3 years ago #

    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

  6. kevinlanteri
    Member
    Plugin Author

    Posted 3 years ago #

    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
    K

  7. lilydustbin
    Member
    Posted 3 years ago #

    Yes, I did set the user rights and the problem still occured.

  8. kevinlanteri
    Member
    Plugin Author

    Posted 3 years ago #

    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,
    K

  9. lilydustbin
    Member
    Posted 3 years ago #

    Yes, I use:

    AVH Extended Categories Widgets
    Register Plus
    User Role Editor
    WP-Members

    I guess there's a conflict with one of these? There wasn't before.

  10. kevinlanteri
    Member
    Plugin Author

    Posted 3 years ago #

    WP-Members seems to be the problem. i'm working on a work around. thanks for sharing,

    i'll keep you update,

    cheers K

  11. lilydustbin
    Member
    Posted 3 years ago #

    Right on. Thank you!

  12. ollybenson
    Member
    Posted 3 years ago #

    Hi @kevinlanteri

    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_access when it should be cant_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

  13. kevinlanteri
    Member
    Plugin Author

    Posted 3 years ago #

    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.
    K

  14. kevinlanteri
    Member
    Plugin Author

    Posted 3 years ago #

    updated 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic