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 Import (Moderator: Yashodha Chaku) »
  • Import & Link with Joomla
Pages: [1]

Author Topic: Import & Link with Joomla  (Read 906 times)

bit_man

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Import & Link with Joomla
January 19, 2012, 02:14:11 pm
Hello,

I'm trying to import a decent sized database into Civi. I need it to link to Joomla. Currently my Joomla site is set up to link with Civi so that members can have access to registered Joomla content, and in there they can also view their Civi accounts.

I guess my question revolves around what would be the best way to import this database. Should I import the users into Joomla first and then link them to Civi?

Or should I import the contacts into Civi, make them members, and them link them to Joomla somehow?

I need to send an email to everyone once they're in with their specific account info too. Can this be done in CiviContact so that each recipient gets their own username and password info?

Any help would be much appreciated.

Thanks so much! :)

Generic

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 4
  • CiviCRM version: 4.2.*, 4.5.*
  • CMS version: Joomla 2.5.*
  • MySQL version: 5.1.*
  • PHP version: 5.3.*
Re: Import & Link with Joomla
January 19, 2012, 05:35:18 pm
Hi Maxbit

I'm just going through the same thing and I've decided to import all the contacts into CiviCRM. I am then going to import the minimum fields (using mysql cli) to enable a Joomla registration for each current member (as the site I am working on is paid membership). I was going to do all the importing in mysql cli but I would have had to do this table by table and then write a script to generate hash keys for each contact, so instead I've opted to use the CiviCRM import. I still have to run it several times to get all the data in the right place, individuals, organisations, groups etc... but it will be easier to generate/populate the csv's (that I exported from CiviCRM, search -> select -> export) in Calc compared to my table table method, although I may still have to add some data using mysql cli.

Once all your DB is in CiviCRM you can send a mass mail with a direct link to contact profiles see here:   http://wiki.civicrm.org/confluence/display/CRMDOC40/Mail-merge+Tokens+for+Contact+Data
the linked profile could then include Joomla registration request.

If your doing any mysql cli imports from csv then you have to disable the foreign key checks example below.
Code: [Select]
SET FOREIGN_KEY_CHECKS = 0; LOAD DATA INFILE '/home/username/civicrm_contact.csv' INTO TABLE civicrm_contact FIELDS TERMINATED BY ',' ENCLOSED BY '"'; SET FOREIGN_KEY_CHECKS = 1;
Hope this helps.
Generic
Document everything!
Zim-Wiki

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Import & Link with Joomla

This forum was archived on 2017-11-26.