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 »
  • Pre-installation Questions (Moderator: Dave Greenberg) »
  • Matching civi mebers to Joomla contact / user
Pages: 1 [2] 3

Author Topic: Matching civi mebers to Joomla contact / user  (Read 12678 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Matching civi mebers to Joomla contact / user
August 17, 2009, 04:51:00 pm
look up the checksum token in the civi docs:
http://wiki.civicrm.org/confluence/display/CRMDOC/Mail-merge+Tokens+for+Contact+Data

actually, that could work pretty well. if you include the settings for including the joomla user reg fields in the profile (advanced settings), you can just send people to that page to have them update their profile fields and create a login.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Matching civi mebers to Joomla contact / user
August 17, 2009, 05:14:26 pm

you can do this by implementing the hook_civicrm_buildForm and setting the defaults on the form based on the parameters from the $_GET variable

You will need some PHP scripting knowledge to make this happen

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Matching civi mebers to Joomla contact / user
August 17, 2009, 06:18:37 pm
Lobo --
why wouldn't checksum work?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Matching civi mebers to Joomla contact / user
August 17, 2009, 07:05:27 pm

i did not follow the thread closely enuf :)

if u already have a civicrm contact and are sending the user back to fill more information, then checksums are great

if u dont have a contact but have default values in the url that you want filled out in a civicrm form, then a hook is needed. Note that profiles do try and fill up values from the GET url

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Matching civi mebers to Joomla contact / user
August 21, 2009, 02:52:41 pm
Thanks guys. This sounds great.

I cannot get checksums to work with Joomla and CiviMail (I've posted to this existing conversation: http://forum.civicrm.org/index.php/topic,8117.0.html), but if I do, I will try this method.

If you have any ideas on the problems we are facing in the above conversation, I would appreciate the help. Can't figure it out.

Thanks again,
Phil

prinsesa

  • Guest
Re: Matching civi mebers to Joomla contact / user
October 12, 2009, 02:25:59 am
Thank you for sharing your ideas. I appreciate everything and it helps a lot. :)

thunt

  • Guest
Re: Matching civi mebers to Joomla contact / user
February 10, 2010, 08:06:36 pm
Hi guys,
The initial post in this thread was:

Quote
When Does CiviCRM Create a Contact Record for a User? When is a User Linked to an Existing Contact?
http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=14452376

Donald replied with this:
Quote
note that a civicrm profile (and hence  a contribution/membership/event registration) page has the ability to create a joomla user (check create CMS account in advanced settings for a profile)

I am a novice civicrm user and seeing that the link referenced above no longer exists, I wonder if someone might be able to go through step by step how a contact can be added to civicrm and at the same time have a linked joomla user manager account created? My problem is that I can easily create a contact in civicrm, but there is no associated J user manager account for that contact so they can't log in, and use the civi dashboard etc.

Can anyone provide advice?
Thanks

NLCF

  • Guest
Re: Matching civi mebers to Joomla contact / user
February 11, 2010, 07:09:06 pm
Yes I am having the same problem.  It just seems that CiviCRM needs to have "Allow User Registration" turned on, while CiviUser requires it to be turned off, so I'm not sure how to get both to work together.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Matching civi mebers to Joomla contact / user
February 12, 2010, 05:14:09 am
thunt:
You can create a profile (collection of fields) and in the profile settings there is an option to enable Joomla user account creation (either an optional creation or required). Note that you must have an email address included in the profile as that is a required field for user account creation. That profile form can then serve as your user account creation form. Review the documentation online re: profiles for details on how to create one.

NLCF:
Yes, you are correct that there may be some conflict between the Joomla global config setting re: allow user registration and how Civi and CiviUser handles it. I'll look into helping to correct it. The conflict dates back to some debate in the community about how the global config setting should impact 3rd party components that process registrations.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Matching civi mebers to Joomla contact / user
February 12, 2010, 05:20:49 am
I should add that we've found a few areas in 3.1.1 as it relates to user account creation that needs improvement. There's an existing issue:
http://issues.civicrm.org/jira/browse/CRM-5809

Just an FYI.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

NLCF

  • Guest
Re: Matching civi mebers to Joomla contact / user
February 12, 2010, 04:53:16 pm
lcdweb,

Thanks for your advice so far.  Maybe you can help simplify things for me.  I am creating a new site for a non-profit organization and I want to use CiviContribute with a CiviCRM Profile to allow users to sign up for memberships with us, and it seems that the option already exists in "Advanced Settings" to allow a user to create a Joomla user account at the same time.  I don't know that I necessarily need CiviUser, but I do know that when I'm using the standard Joomla login module, it seems that users can still sign up for a Joomla account (because of the Create an account link in the module, standard for Joomla).  Can you suggest the best settings to achieve what I describe above, using what's already available?

I should also state that I know there's a lot of talk in this thread about dealing with users already existing in CiviCRM (either through importing or other means) and that doesn't exist with me, we're starting out fresh and I just want to know the best way to get users in both databases safely and easily.
« Last Edit: February 12, 2010, 05:08:16 pm by NLCF »

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Matching civi mebers to Joomla contact / user
February 16, 2010, 07:11:22 pm
I would use a contribution page + profile with J user account creation turned on.

Re: the J login module, you have a couple options --

1) modify the module template with at template override so the option is removed
2) use an alternate login module (several give you the option of turning off the registration option)
3) try the first plugin on this page: http://wiki.civicrm.org/confluence/display/CRMDOC22/Plugins+for+Joomla+(registration+restricted+to+contacts,+check+membership+expiration,+force+civi+registration

The last option may be the best, but I haven't looked at it recently and don't remember if it will only let you redirect to a profile, or if you can redirect to a contrib page.

There was discussion in the J world about adding an option to enable user registration, but turn off the reg link directly through the global config so that you separated the registration function from presentation. But I'm not sure it gained any traction.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Matching civi mebers to Joomla contact / user
February 16, 2010, 07:14:02 pm
I just took a look at that plugin again -- it lets you override the default registration link with any link of your choice. So that would be the best option. That let's you retain the registration link in the J login module, but have it direct to your preferred Civi page rather than the standard reg form.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

NLCF

  • Guest
Re: Matching civi mebers to Joomla contact / user
February 17, 2010, 06:56:40 pm
Quote from: lcdweb on February 16, 2010, 07:11:22 pm
I would use a contribution page + profile with J user account creation turned on.

Re: the J login module, you have a couple options --

1) modify the module template with at template override so the option is removed
2) use an alternate login module (several give you the option of turning off the registration option)
3) try the first plugin on this page: http://wiki.civicrm.org/confluence/display/CRMDOC22/Plugins+for+Joomla+(registration+restricted+to+contacts,+check+membership+expiration,+force+civi+registration

The last option may be the best, but I haven't looked at it recently and don't remember if it will only let you redirect to a profile, or if you can redirect to a contrib page.

There was discussion in the J world about adding an option to enable user registration, but turn off the reg link directly through the global config so that you separated the registration function from presentation. But I'm not sure it gained any traction.

lcdweb,

Thanks again.  I like the Joomla authentication plugin that doesn't let a user log in (and redirects to our membership page) unless they're a CiviCRM member, which is great.  I have started using YOOLogin to remove the registration link, so that's good too.  One last problem.

I've gone ahead and uninstalled CiviLogin and CiviUser, they only seemed to be causing problems for me.  I have the settings right now (Global Config is turned on for users, using the Account creation required in Advanced Settings) but when a user confirms their registration, I get this.


Warning: require_once(joomla/com_user/controller.php) [function.require-once]: failed to open stream: No such file or directory in /home/nlch1888/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/CMSUser.php on line 574

Fatal error: require_once() [function.require]: Failed opening required 'joomla/com_user/controller.php' (include_path='.:/home/nlch1888/public_html/administrator/components/com_civicrm/civicrm:/home/nlch1888/public_html/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/nlch1888/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/CMSUser.php on line 574

This is that known error you were talking about, isn't it?  Is it possible to get around this error by downgrading to an earlier version of CiviCRM?

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Matching civi mebers to Joomla contact / user
February 17, 2010, 07:20:14 pm
yes, known error. it's slated to be fixed in 3.1.3
http://issues.civicrm.org/jira/browse/CRM-5809

if you want to fix it yourself, get into that file and replace:

joomla/com_user/controller.php

with

components/com_user/controller.php
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Pre-installation Questions (Moderator: Dave Greenberg) »
  • Matching civi mebers to Joomla contact / user

This forum was archived on 2017-11-26.