Solved

Members only section on Drupal based website

Posted on 2014-10-16
12
155 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 24

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 24

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
 

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 24

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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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 24

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 24

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Noteā€¦
In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now