Jump to content

Recommended Posts

Posted

I am trying to install aMember on my website, but I am running into some problems. I have it set up so that I can log in, but when I try to go to the password protected folder, the log in screen comes up and it will not let me through. I assume that I have something wrong in the .htaccess file, but I do not know what. Here is what I have.

 

AuthType Basic

AuthName "Troop 98 Members Only"

AuthUserFile /home/public_html/amember/data/.htpasswd

AuthGroupFile /home/public_html/amember/data/.htgroup

Require group PRODUCT_4

 

The group that I am a member of is number 4.

 

Any help?

Posted

I took a quick read through http://membership.cgi-central.net/scripts/amember/docs/html/ and found the following. Not sure if it will help you at all, but here it is. There is a LOT of other good info there as well.

Also, Lianna wrote up some quick notes of an order of operations for this at http://www.totalchoicehosting.com/help/id110.htm

 

Setting Up Protection

Step 1: Enable php_include plugin.

Open the aMember Admin Control Panel

 

Click on Setup/Configuration from the left menu

 

The Configuration : Global screen opens

 

From the top menu on this page click Plugins

 

The Configuration : Plugins screen opens

 

Select Protection Plugins

 

A list of the options available for protection appears, select php_include.

 

 

Step 2: Include check.inc.php in your pages

For this plugin to work the file /ammember/plugins/php_include/check.inc.php must be included at the very top (before the opening <html> tag) of the PHP pages you wish to protect as follows:

========================================

<?

$_product_id = array(1,3);

include("aMember_Root_Dir/plugins/php_include/check.inc.php");

 

.. any existing PHP code goes here ..

?>

=========================================

Note: You must edit the $_product_id array to reflect the aMember product which gives access to the page. For example, if access is confined to those with products 1 and 3 it will be as above. If it is confined to those with products 2 and 5 you would use

$_product_id = array(2,5);

Posted

I figured it out. The documentation is for the PRO version. I had a small error in the .htaccess file.

 

Does anyone know how to modify the membership feilds on the signup page. I wanted to change country to a different feild. I changed it so that it asks for the new information, but I does not store the information in the database.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...