Hmmm… That’s a pretty general question. There’s functions to check if a user is logged in and such, and there’s user levels, but without more details it’s hard to tell you what to look at.
Could you be a bit more specific? What is it that you’re trying to do?
Maybe you need this function?
http://codex.wordpress.org/Function_Reference/is_user_logged_in
If you want levels of subscribers, then you could make some custom Capabilities and Roles and such:
http://codex.wordpress.org/Roles_and_Capabilities
As far as subscribing and gaining automatic access, you’re looking at some custom coding work there, or perhaps some plugins. There’s a few e-commerce related plugins discussed in this thread:
http://wordpress.org/support/topic/139086
hi Otto42, and thanks for the replies.
and as for specifics, sure!
sorry my language was a bit ambiguous, because I have a few applications I’m looking for. For one, we don’t want people logged into the WP blog, so it’s not about roles or authors. one example is a friend who is a DJ, and he mixes a lot of music. he produces nearly an album a week, at least 2 a month, with lots of other little tracks available. we want to have WP operate so that the homepage just has ‘news’ or upcoming show dates, simple stuff. and an option to ‘JOIN’ his site, and then see the Members area, where they can download his albums or songs as they get published.
we thought WP would be applicable since they’re both dynamic: he publishes x-songs a week, so users could join for say $1/month or $10/year and get access to his collection. a ‘members’ area ran by WP but which can only get accessed once paying a fee.
geez I hope that makes sense. I still feel like I’m not hitting the nail on the head.
Well, you’re kinda contradicting yourself there. You don’t want people logged into his site, but you do want some kind of pay-to-join mechanism. That’s kinda of outside the scope of WordPress itself, the only user-tracking functionality it has is the users and login functionality.
I am also interested in this type of Member’s access area. I have implemented the CMS/Blog part of my site and am now looking for solutions to have a similar area.
One thing that I was thinking to do is to use htaccess to restrict access to certain directories. However, I am not sure if this will work for Pages that are contained in WP. If not, then I was going to implement a member’s only blog that is separate (database and installation) and in another directory from the main site.
drphil,
yeah I was hoping to stay away from having to edit htaccess, not because i don’t know how but was just hoping there was a way for WP to handle all my needs! 🙂
maybe not now it sounds like though. a two-tier installation is a clever approach, but i’d like to stay away from editing too many templates, css, sidebar files, etc. oh well, i’ll keep looking!
Have you read this in the Codex? http://codex.wordpress.org/Installing_Multiple_Blogs it looks like there might be some good ideas in that article as well. Though I have not had a chance to review it myself.
Hi,
I have quite the same need, except that there’s no payment involved.
I just want some articles of my WP blog to be accessible only to registered users, and some others to be accessible to anyone. “Roles” are an interesting thing, but they can only be used as far as modifying the blog content is concerned, not its viewing : too bad !
I thought it would be quite simple, but it does not seem to be ! I can use the is_user_logged_in function to display the articles of a category or not in the sidebar, but this is no efficient blocking if the unregistered user gets a direct link to an article !
I’d also like to avoid the htaccess solution because I don’t want two blogs.
Any suggestions ?
Thanks
Corinne