Members only section on Drupal based website

Hi,

I help support a site for a local figure skating club, we want to add a members only section that requires a login and has content that can be seen only by logging in.

We have meeting information, forms and other such information that we want to share only with club members.  I have looked as much as I can find on Drupalgardens but I cannot seem to get just what I want.  Has anyone here done this?  I have seen on DrupalGardens many people asking about this, but no clear instructions on how to do it.

Any suggestions would be greatly appreciated.  

Thanks.
mcioffi209Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
lenamtlCommented:
Hi,

You may find this useful - How to build a free & paid membership site
https://www.drupal.org/node/834128
0
 
mcioffi209Author Commented:
Thanks Lenamtl.

I have looked this over and had a discussion with the original web designer.  He thinks this is not what we need.

What I'm looking for is a way to password protect one page and the content put on that page.

We have a members only tab on the site.  I want to place content there, when a user clicks on that tab I want them to be prompted for a username and password.  When they enter the correct username and password I want them to be able to view the content.  If not have it display a page that says something like, Sorry this for full members of the NSSC only.

Does that make sense?  Is that something that I can do in Drupal?  We had an older site that had this setup, but it seems that we are having major issues getting it done via Drupal Gardens.

Thanks.
0
 
lenamtlCommented:
The solution I provided you does what you want , except the user will have to login once then have access to allowed pages (one or more web pages).

So if I understand you correctly you want to give access only to one page that will be password protected.
So all members will have the same username & password to have access to that protected page.

There is  a Drupal module for that:
https://www.drupal.org/project/protected_pages

Or you can do it easily using cpanel or plesk  if the option is available (web site admin panel from the hosting company)

or using htpasswd
a popup will appear on the protected page

Generate the code MD5 http://www.htaccesstools.com/htpasswd-generator/
info: http://www.htaccesstools.com/htaccess-authentication/
how to find the path: http://www.htaccesstools.com/articles/full-path-to-file-using-php/

or with more encryption algorithm:
http://www.askapache.com/online-tools/htpasswd-generator/

*some algorithm may be not compatible with IIS
*MD5 will work on Apache or IIS
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
mcioffi209Author Commented:
Hi Lenamtl,

This sounds like exactly what I need.  Our site is on Drupal Gardens.  

Do you know anything about Drupal Gardens?  Do you know how I add this module to Drupal Gardens hosted websites?  I'm looking and will post if I find out how.
0
 
mcioffi209Author Commented:
So a little digging has found that Drupal Gardens does not allow adding modules to individual sites.  I'm not very happy about this, nor very happy with the web guy I used.  

Overall the site is nice and people like it, but this aspect has really made me look bad.  I need to get this working somehow.  

"or using htpasswd
 a popup will appear on the protected page"

Is that independent of the module you mentioned?  Can I host the password file in my content area?  

I apologize for what might be basic questions, but web site building is not my strong suit.

Thanks.
0
 
lenamtlCommented:
You can use htpasswd  on any web page (not only drupal) even on a simple html page

I'm wondering does Gardens also provide the host of the website or you are hosting on another server.

If Garden host the site you may need to  contact them or change hosting provider.

They have an option to Export the scripts, DB to another server
They also have Content access control for Pro +
https://www.drupalgardens.com/pricing
0
 
mcioffi209Author Commented:
Sorry for the delay, too many irons in the fire.  

I found out that we are not on the plan that has that feature.  I need to decide if it is worth the extra cost or if I can manage to implement the HTPASSWD feature.  Is there something you can point me to that would help walk me through setting that up?

Do you think using the feature that Drupal provides would be the best way to go?  I might be able to get us on the next tier of hosting, would that be better then using the HTPASSWD?

Thanks.
0
 
lenamtlCommented:
Using the Drupal feature may  be easier for you to set and you may have more features more flexible.

In your situation, I would choose the Drupal feature.
0
 
mcioffi209Author Commented:
Thanks. I may not be able to get the current account holder to upgrade. Is there anything you recommend to read on implementing the htpasswd feature?
0
 
lenamtlCommented:
First check with your hosting company if this is possible to use htpasswd.
The instructions may be different depending of your hosting company they will guide you how to do it

There are a lot of way to do it depending of your website admin panel if you have one and the available options, Cpanel, Plesk, DirectAdmin.

Instruction and tools:

Generate the code MD5 http://www.htaccesstools.com/htpasswd-generator/
info: http://www.htaccesstools.com/htaccess-authentication/
how to find the path: http://www.htaccesstools.com/articles/full-path-to-file-using-php/

http://support.hostgator.com/articles/cpanel/how-to-password-protect-one-file

Each hosting company have instructions on how to do it in their FAQ or Forum.
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
mcioffi209Author Commented:
Thanks for your help.

I have been speaking to drupal gardens and web designer and it looks like HTPASSWD is not going to work based on how they have tings setup.  

I would need to be on another service plan I think to have the features to do what I need.
0
 
mcioffi209Author Commented:
This is excellent information, while it is not usable in my current environment it is usable in other situations.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.