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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Automatically Create Joomla User from CiviCRM Admin?
Pages: [1]

Author Topic: Automatically Create Joomla User from CiviCRM Admin?  (Read 1938 times)

bwold

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
Automatically Create Joomla User from CiviCRM Admin?
July 21, 2010, 01:47:17 pm
Hi all,

Our org creates all new contacts through the CiviCRM admin (so there is no public registration form on the site). When a new contact is created, there is no corresponding Joomla account that would allow the user to log in. I know the admins can jump over to Joomla User Manager and also create the new user there, or first create the user, then sync users to contacts to pull the new account back to CiviCRM... but is there an automatic way for that account to be created?

Thanks in advance,

-B

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: Automatically Create Joomla User from CiviCRM Admin?
July 21, 2010, 07:50:21 pm

you can do the below by adding the username field via the buildForm hook and then create the user via the postProcess hook on the contact create/edit form. A fair amount of the code you want is available at: CRM/Core/BAO/CMSUser.php

if you are not a programmer, consider hiring someone from http://civicrm.org/professional/

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

bwold

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
Re: Automatically Create Joomla User from CiviCRM Admin?
December 29, 2010, 09:48:05 am
Folks,

I have several clients that would really benefit from this, and I bet we're not the only ones. Is anyone else working on this (or, better yet, completed a solution)? It seems like a simple solution, and frankly one that should have been included long ago.

I'm not a programmer, but would gladly support a project to get this done. Anyone else interested?

tdrguy

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.4.4
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.x
  • PHP version: 5.3x
Re: Automatically Create Joomla User from CiviCRM Admin?
July 24, 2011, 05:12:52 am
@bwold: we are facing the same problem (need to generate joomla users for huge list of existing Civicrm Contacts), did You solve the issue?
Quote from: bwold on December 29, 2010, 09:48:05 am
I'm not a programmer, but would gladly support a project to get this done. Anyone else interested?
I am currently evaluating writing  a script which generates missing joomla users for selected contacts,
regards,
Toby

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Automatically Create Joomla User from CiviCRM Admin?

This forum was archived on 2017-11-26.