Updated to version 1.2
[END UPDATE #2]
Updated to version 1.1
I now present my second WordPress plugin – Page Access.
This plugin allows the creation of page groups and then allows users to be associated with the groups. If the page is in a group that is associated with the user, then the user is allowed to access the page. Otherwise, they are redirected to another page which is specified on the Page Access admin panel. Personally, I just created another page explaining what is going on – saying that they don’t have access to this page and to contact the admin. If you do it this way, be sure not to restrict that page!
Also, this plugin is used in conjunction with my Page Restriction plugin. That plugin restricts certain pages to logged in users.
This is my biggest plugin to date, so let me know what you think!
9 thoughts on “WordPress Plugin: Page Access”
Nice plugin, installed with no problems, thanks
Would love to see this extended so that the menu links to pages are also hidden though.
Nice plugin indeed thanks.
But I would like to display a message like “You have to be connected to see this page” when a non-connected visitor click on a page.
Feel free to send me an e-mail to react.
I keep getting this when I click on the “Page Access” Tab under “Options”.
Fatal error: Cannot redeclare page_access() (previously declared in /myserver/wp-content/plugins/page-access.php:23) in /myserver/wp-content/plugins/page-access.php on line 22
Hope you can help me!
I installed WordPress on my server, and set up a site. It’s a relly nice piece of software. However, I am missing a piece of functionality, and
couldn’t find a suitable answer for it. Mayou you know a plugin I could use?I need to automatically inserts ads in my posts.And not AdSense ads, but rather HTML snippets defined by me (affiliate links, etc). Let’s say I would insert a tag in my post:
— ad here —
and the plugin would automatically replace it with some HTML code, when the post is displayed on my site.I really don’t need any fancy configuration options etc, just the basic replace functionality.
Do you know a plugin that can handle this?
Not sure if you’re still keeping up with this plugin, but it is EXACTLY what I was looking for. I’m trying to set up a WordPress site that restricts certain pages to certain user groups – sounds exactly like your description.
I saved your Page Access text as page-access.php and activated the plugin. When I activate it, I get this error on my dev machine:
Parse error: syntax error, unexpected $end in /Users/username/Sites/wp-content/plugins/page-access.php on line 566
Any suggestions would REALLY be most appreciated.
I’ve created a tweaked version of this one too. Its working great on my site with WP 2.2.1 and in conjunction with the Page Restriction plugin.
@lil wyte I am wanting to do the exact same thing, did you ever get an answer to this? You asked: (I need to automatically insert ads in my posts. And not AdSense ads, but rather HTML snippets defined by me (affiliate links, etc).
Can anyone help me with this?
I haven’t used the plugin yet because whilst I think it will achieve what I want I am not sure. I need to create a site for 10 users who I only want to allow to edit their own posts and pages. I also want to allow them to add, edit and delete images but only their images. Is it possible to adapt your plugin to allow access only to certain elements of a plugin please?
The page-access plugin and the conjuncting page-restriction plugin seem to offer precisely what we need for our WP2.5 powered website. Thanx very much for the effort of designing it!
However, after activating both plugins succesfully, there are no pages available in our admin control to assign to any group. In the page-restriction control it also says ‘no pages yet’.
From the feed for the page-restriction plugin, it seems that many people have this problem, and the (puzzling) answers offered are to alter the code of the plugin. But this cannot be the aim of offering the plugin as ‘working’, can it?!
As it is obvious that many people are running into the same ‘no pages’-problem, is there any documentation available to tackle this problem? Otherwise, could the author of these plugins please elaborate a little more on how to make the plugins operate properly?
Thanx again in advance,