CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Conflict between CiviUser and Advanced Settings in CiviContribute Page
Pages: [1]

Author Topic: Conflict between CiviUser and Advanced Settings in CiviContribute Page  (Read 1645 times)

NLCF

  • Guest
Conflict between CiviUser and Advanced Settings in CiviContribute Page
February 11, 2010, 06:32:30 pm
Hi there,

I am trying to using CiviCRM as a membership component to allow users to sign up for a membership on our website.  I like the option in Advanced Settings where you can force a user to sign up for a Joomla user account as well, as I would like users to be able to log in to the site. 

I notice that when I installed CiviUser and the CivLogin module, it asked me to turn the "Allow User Registration" option off in Global Configuration.  When I do this, my Contribution Page (which is my membership sign up form) does not show the fields that asks a user to choose a username and password. 

How can I get these two things to work together?

cleit

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: Conflict between CiviUser and Advanced Settings in CiviContribute Page
March 22, 2010, 01:32:59 pm
This is the same problem that I've come across.  When you switch off Joomla registration in the glocal config - as required -  the Joomla registration option disappears from CiviCRM contribution pages.

Is there a way to get it back and still use the CiviUser login component?

cleit

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: Conflict between CiviUser and Advanced Settings in CiviContribute Page
March 22, 2010, 02:23:09 pm
The culprit looks like lines 183-185 in CRM\Core\BAO\CMSUser.php. This checks only to see if the Joomla global registration setting is true or false. But CiviUser ignores this setting so the code needs to check if the login component being used is CiviUser - and if it is then don't check the 'allow registration' setting.
Code: [Select]
            if ( !$userParams->get('allowUserRegistration') ) {
                return false;
            }

As a quick and dirty fix, you can just comment out the 3 lines above.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Conflict between CiviUser and Advanced Settings in CiviContribute Page

This forum was archived on 2017-11-26.