Viewing 6 replies - 16 through 21 (of 21 total)
  • This is just straight up not working for me. I’m running WP 2.5. Even with the replacement code, the editor has the category selection visible (for a bound user) and doesn’t have their bound category checked.

    I created test user and assinged him category “test”.
    When logged in as test, i can see all categories and none os checked. After posting, posts are being publish in default category and test category. Is this how is plugin suppose to work?
    I need user “test” not to see other categories except test.

    This is a great plug-in. I’m using it with 2.5 without any problems. I’ve tried the work around, to remove the categories for the ‘binded’ users. But also removes the ‘editor toolbar’ NOTE: I’m using DEAN’s FCK editor

    https://www.deanlee.cn/wordpress/fckeditor-for-wordpress-plugin/

    It would be great if it would be possible to add multiple categories to one user.

    Category Access works with WP 2.5.1
    https://www.coppit.org/code/
    There are few problems…
    When uesr logs in, he sees only categories that he has access to, but if he doesn’t chech any of them then his post is published in default category. So i combine it with plugin Bind User To A Cat to set default category for that user.
    Another problem is that when logged user access homepage, he can see only posts from his category. After loging in (FROM ADMIN PANEL) he can see all posts
    Any solution?

    I would also like to make the categories div not show for a user that is binded to a category and followed jaldrich’s instructions.

    I viewed the source HTML on the wp-admin/post-new.php page (where the categories div should be hidden) for wordpress 2.6.1:

    <div id=”categorydiv” class=”postbox “>
    <h3>Categories</h3>
    …[more HTML code here]…
    <h2>Advanced Options</h2>

    and not sure if the code supplied by jaldrich will work, in particular the preg_replace function:

    return preg_replace(‘#<div id=”categorydiv”.*?<h2>Advanced Options</h2>
    #sim’, ‘<h2>Advanced Options</h2>

    Any advice appreciated as I’m not too good with regular expressions!

    Oops, take that back – seems to be working now!

    Can confirm:
    return preg_replace('#<div id="categorydiv".*?<h2>Advanced Options</h2>#sim', '<h2>Advanced Options</h2>', $page);

    works for wordpress 2.6.1

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Bind User to Category incompatible with WP 2.3’ is closed to new replies.