Category Access 0.5.2 Released
I’ve released a new version of the Category Access Wordpress 2 plugin. This plugin allows the blog maintainer to restrict access to posts belonging to particular categories on a user-by-user basis.
New changes:
- Fixed a PHP warning created by changes in the last release.
Download it on my code page.
June 12th, 2006 at 6:00 pm
Hi there,
Thanks for the update to your category access plugin. This seems to have fixed my problem, although I’m still having difficulty getting it to work as I need it to.
Basically, I want to be able to allow individual users to see just the category assigned to them once they have logged in - hiding all other categories. I have tried setting the default “new user” access all to “off” and then activating just the one category in the user’s settings, but this seems to hide all categories for that user and spits out some nice errors in my sidebar.
I have also tried allowing new users to view all except my test “hidden” category - setting the user’s access for that category to “on” - when I do this, the user can’t access that category.
I’ll give you an idea of what I’m trying to achieve and then maybe you can give me some assistance! Your plugin is the closest I’ve come despite a huge amount of searching, so I’d love to get it working!
Ideally, I’d like to set up my site so that each individual user has their own category. Once the user logs in, they can view their category (ideally with all other categories hidden whilst they are logged in). This would mean that I can display information in that category which is sensitive and only available to that particular user.
Even better would be if this could be applied to pages???
Any help you could provide would be hugely appreciated!
regards, Mark.
June 12th, 2006 at 6:07 pm
Hi again,
Another issue which may be related. The category display options in the plugin options page and the individual user pages are not playing nicely with each other. When I turn all categories on in the plugin options, I then can’t turn any off in the user options - they just turn themselves back on again - arrghhh ! hehehe !
It happens in reverse too. If I switch off access to a category in the plugin options, I can’t switch that on again in the user options - it switches ‘em back off again when I submit.
Itching for a resolution!
Thanks again for what looks to be getting mighty close to what I need !
Regards, Mark.
June 13th, 2006 at 12:41 pm
Hi Mark,
You definitely should be able to do what you want with this plugin. I suspect that your per-user update problem is related. Obviously if you can’t give non-hidden status to a user, they will never be able to see anything. Try this version: http://www.coppit.org/temp/category-access-0.5.3.zip. If it works for you I’ll release it.
Regarding pages… Pages don’t have categories. Someone would need to write a “page access” plugin (assuming Wordpress provides some hooks for filtering the pages to be shown).
David
June 14th, 2006 at 6:50 pm
Hi David,
Yes, yes, yes ! ! ! It works now ! The latest version above did the trick.
Thank you for your amazing plugin! It performs exactly the function that I need! I have searched high and low, and there is no other plugin that does this. There are a few that come close, but they don’t quite hit the mark.
Well done!
Kind regards,
Mark.
June 14th, 2006 at 7:16 pm
Hi David,
Sorry, hehehe, one other thing - when the user is logged in, they are unable to access any of the site pages. It says “sorry, you don’t have sufficient priviledges to view this post”.
Ideally when the user is logged in they should still be able to view pages.
When you click on a page link, the page content doesn’t appear, and all page links turn to the above text “sorry, you do not . . . ”
Any assistance you could ive would be appreciated, and thanks for your good work so far!
June 14th, 2006 at 7:38 pm
Hi David,
OK, I found the problem. It looks like WP must assign new pages to the default category. I noticed that the above problem was only happening with one user. So I activated categories until I found which one it was and bingo - all the pages now work for that user.
So, you have to make sure your default posting category is made accessible to all registered users otherwise they will be locked out of the pages.
Anything you could do to separate this plugin from affecting pages? I mean, the problem is effectively solved, but it would be even better if it didn’t pop up at all (for new users of the plugin I mean).
Thanks again David.
June 19th, 2006 at 1:13 pm
Mark, thanks for debugging this. Another user was struggling with the same problem. I’ll see if I can find an is_a_page($post) function that I can use to avoid this problem for pages.