Joomla a/c sharing protection - help

Discussion in 'Setting-up protection' started by ptrmee, Dec 11, 2009.

  1. ptrmee

    ptrmee aMember Pro Customer

    Joined:
    Jul 29, 2009
    Messages:
    10
    Hi

    I have a Joomla site with amember installed and it's working very well for managing subscriptions. However, amember account sharing protection is not working as expected.

    I've set it up to mail admin if more than 2 different IPs are used in a 24 hour period.

    I've set up a test user and logged in to the Joomla front end (directly, not via amember) 3 times from different IPs.

    No e-mail was sent.

    Looking at the test users access log in amember admin, I see only one access registered - this reflects one time that the user accessed the amember membership information screen (member.php) via a link provided to members in the Joomla front end.

    So, it appears that user visits to the site are not registered in amember unless the user visits an actual amember page, is that correct? How can I set this up so that visits are registered/logged when user log in via the joomla front end but do not visit an amember page?

    Thanks

    Peter
  2. ptrmee

    ptrmee aMember Pro Customer

    Joined:
    Jul 29, 2009
    Messages:
    10
    I set up my Joomla template with IP-Checking with .htpasswd protection as described here*;

    http://manual.amember.com/Account_Sharing_Prevention

    by inserting the following into my Joomla template/index.php file:

    Code:
    <?php
      $user =& JFactory::getUser();   
      $user_id = $user->get('id');   
      if ($user_id)   
      {	echo "<script src=\"" . $this->baseurl . "/templates/" . $this->template . "/log_access.php\"></script>\n";
    }?>

    This results in multiple errors in the amember error/debug log as follows;

    These errors are generated when a user is logged in to the Joomla front end. They are not generated by users who are not logged in. Logged in users all exist as users in amember.

    Assistance appreciated.

    Peter


    *there appears to be an error on that manual page; the file that needs to be created in protected directories is referred to as 'log_access.php' and 'log_access.inc.php' leading to some confusion.
  3. maniprasad

    maniprasad New Member

    Joined:
    Nov 27, 2007
    Messages:
    2
    Joomla content protection

    Hi

    I have a Joomla site with amember installed and it's working very well for managing subscriptions. However, amember account sharing protection is not working as expected.

    I need to share the articles from joomla for amember users. I tried to use ".htpasswd" method, but it is not working. Please help me in protecting the content.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can't use aMember protection methods to protect articles in Joomla.
    You can only protect whole Joomla folder so it will be available only for registered users.
    So you need to install Joomla plugin and set protection on Joomla itself based on user group.
  5. maniprasad

    maniprasad New Member

    Joined:
    Nov 27, 2007
    Messages:
    2
    I have installed amember plugin in Joomla. But I am unable to create groups in Joomla. Registered, Public group is available. But, I need to create access levels such as silver, gold, platinum. Please help me to create these levels and assign articles to those users, so that one can see their content only. Is there any plugin available in Amember for this functionality?
  6. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    You will need a joomla plugin like BYOS JACL.

    David
  7. ptrmee

    ptrmee aMember Pro Customer

    Joined:
    Jul 29, 2009
    Messages:
    10
    Or wait for Joomla 1.6

    Turns out the cause of my problem was that I was attempting to use standard Joomla Login on front end. This does not work with account sharing.

    I have now written a new login front-end login module that routes user details through login.php and therefore causes user IPs to be registered by amember and account sharing protection now works.

    Happy days.

    Peter
  8. darren162

    darren162 New Member

    Joined:
    Jan 31, 2010
    Messages:
    1
    I have a Joomla site with amember installed and it's working very well for managing subscriptions. However, amember account sharing protection is not working as expected.
  9. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    It will work only if user will login through aMember and not in Joomla directly.
  10. camelot1

    camelot1 aMember Pro Customer

    Joined:
    Apr 27, 2008
    Messages:
    4
    You can protect articles in Joomla with aMember, using aMember Article Protection plugin.

Share This Page