Solved

Members only section on Drupal based website

Posted on 2014-10-16
12
179 Views
Last Modified: 2014-10-29
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.
0
Comment
Question by:mcioffi209
  • 7
  • 5
12 Comments
 
LVL 25

Expert Comment

by:lenamtl
ID: 40392347
Hi,

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

Author Comment

by:mcioffi209
ID: 40394311
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
 
LVL 25

Expert Comment

by:lenamtl
ID: 40394746
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:mcioffi209
ID: 40394885
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
 

Author Comment

by:mcioffi209
ID: 40394952
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
 
LVL 25

Expert Comment

by:lenamtl
ID: 40394990
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
 

Author Comment

by:mcioffi209
ID: 40402700
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
 
LVL 25

Expert Comment

by:lenamtl
ID: 40404850
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
 

Author Comment

by:mcioffi209
ID: 40404899
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
 
LVL 25

Accepted Solution

by:
lenamtl earned 500 total points
ID: 40404936
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
 

Author Comment

by:mcioffi209
ID: 40411813
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
 

Author Closing Comment

by:mcioffi209
ID: 40411816
This is excellent information, while it is not usable in my current environment it is usable in other situations.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since I am currently running into this issue right now as I type this, I though I would share my experiences with moving a ModX Revolution site from one server to another.  It is not an easy task, but can be accomplished rather easily. The first …
Knowledge base software has turned out to be a quite reliable method for storing information, promoting collaborative work and for sharing valuable input and solutions.However, some organizations are trying to develop a knowledge base that works wit…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question