Solved

Members only section on Drupal based website

Posted on 2014-10-16
12
169 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Call Me Back form/script using Drupal 7 3 349
Redirect and Allow  From Another Site? 10 88
Drupal Security Issue 2 165
CTools CSS Cache Error 1 96
Drupal 5.x currently does not have a production-ready patch bundle to allow for split read & writes for a MySQL master/slave replication setup. After reading a open discussion/thread on the Drupal site (http://drupal.org/node/147160 (http://drupal.o…
DotNetNuke (DNN) (http://www.dotnetnuke.com) is a leading open source web content management system (CMS) and application development framework for Microsoft .NET. Localization is an essential part of building websites, especially in countries that …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

21 Experts available now in Live!

Get 1:1 Help Now