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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Community Sponsored Improvements (Moderator: Donald Lobo) »
  • copy contacts ofcivicrm to users of drupal
Pages: [1]

Author Topic: copy contacts ofcivicrm to users of drupal  (Read 9284 times)

businessbroker

  • Guest
copy contacts ofcivicrm to users of drupal
September 29, 2008, 03:42:54 am
Import tool of civicrm is for sure a good tool and many people can prefer to use it, instead of USER IMPORT module of drupal, especially because it is in alfa version for drupal 6.x.
So I would try with a russian developer to

And I think that importing into CiviCRM first and transfer users from Civi to Drupal is a good idea. Or you what to create Civi users and Drupal users in same place during import process

It is very intresting solution not only for me, but for all users of CiviCRM. =) I'll try to join CiviCRM users and Drupal users.

So i'll try to create Drupal user automatically when you create CiviCRM user and modify Drupal user when you modify CiviCRM user.

I'll try to assign the default email as login for drupal. This may be a solution.

This code ode will be undependent from version of civicrm. It is not patch. It is a plugin. If CiviCRM will not change API in future - it will work.
« Last Edit: September 29, 2008, 08:47:04 am by businessbroker »

businessbroker

  • Guest
Re: copy contacts ofcivicrm to users of drupal
September 29, 2008, 06:53:14 am
First step is done. Developer have done undo button for the last import. It is useful for roll back incidental import. It is useful, but takes me a little bit of time longer. Now i'll go to the next step.
Also is being provided select box for the filter of imported contacts by it's type - organization, individual, household.

Developer then spended some more time with first step and perform a small improvement. In import form he added checkbox to rewrite new logins in backup or rewrite backup completely. It helps to make many import operations and undo they with one click.
« Last Edit: September 29, 2008, 07:43:37 am by businessbroker »

businessbroker

  • Guest
second step started:
September 29, 2008, 08:45:38 am
First results from second step:
When you create new individual in CiviCRM, drupal user also Created utomatically.

So, it is almost done. In additional, is being done login with e-mail opportunity - not supported with drupal from the box.
Rewrite the username are left and some stability checks.
Password for the drupal users is generated randomly.
User, don't know the password, so it immediatelly at import or in a second moment will receive password by email.

Charset is Unicode. There are all sumbols in it.
Contacts can contain a country, so I'll take defined countries from existings contacts and will make a form to define mail template for each of them.

I provide special checkbox which controls the email sending. It deside - send mail to users or not.

When contacts in CiviCRM are created by import, you must run the Drupal's import.

Instructions after install of this plugin:
in admin area of drupal you have one more voice: "Import user's"

So, about importing. Everytime when you press "Import" button, all members which users is absent in Drupal adding to it. So, if you importing members in CiviCRM, you must press 'Import' button on this form.

If checkbox "Send password to imported users" is active, - emails with passwords will be sent to  members.

Anyway active this checkbox or not, - admin will get a mail with all generated passwords.

So, if you activate option "Keep users" - users did not rewrited and backup list will be extended for new imported users.
if " Keep users" is not active, - old users in backup erased and new written.
Anyway last import operation is always can be undone.

Now go to "Mail template" - submenu of "Import user's". clicking on button "Mail template" of navigation menu:

{password} will be replaced with generated password


This drupal module do not touch members.
Not modify CiviCRM, becouse it is a complex system.
I worked only on drupal's side.

« Last Edit: September 29, 2008, 02:48:30 pm by businessbroker »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: copy contacts ofcivicrm to users of drupal
September 29, 2008, 02:34:06 pm
Hi - your english is way better than my italian but I still need to do a bit of a translation so I am sure I understand this project. Sounds to me like you are making a lot of progress.

SO to clarify for my own mind. are you saying that this feature will enable users to do an import using a plugin that will
- allow an import to be undone
- allow for Individuals, Households and Organisations to be imported in the same process
- create new Drupal logins at the same time as creating the civiCRM contact record
- fires an email to the new contact with their password and login link (this can be turned on or off)

The plugin also means that
- if you create 'new individual/household/organisation' the Drupal user is created
- an email can be sent that provides a link so people can go direct to their 'My Account'
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

businessbroker

  • Guest
Re: copy contacts ofcivicrm to users of drupal
September 29, 2008, 03:11:11 pm
you are right about all!
this drupal module could be called: "Contacts import to users for CiviCRM"

very nice your idea to have one link to logon! as doing "Users import" drupal module
I hope you have some good ideas too about it, because it don't look to be so much simple option to add..

plus we add possibility to choose email of sender, and customizable text of emails sent

here a preview of inteface of this drupal module:
« Last Edit: September 30, 2008, 04:47:29 am by businessbroker »

businessbroker

  • Guest
Re: copy contacts ofcivicrm to users of drupal
November 05, 2008, 03:43:56 pm
from some week I start to really test it, then I'll ask to developer to publish it
anyway if someone need it first I can give for sure!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: copy contacts ofcivicrm to users of drupal
November 05, 2008, 04:15:55 pm
Let us know if you would like some other testing done.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

businessbroker

  • Guest
Re: copy contacts ofcivicrm to users of drupal
November 09, 2008, 05:18:22 pm
A) I think to have founded this module, it don't need to be activated in module list, could be?

B) I think could be nice to add some options when importing:

LANGUAGE
PERSONA CONTACT FORM
NATION CLOCK
Time Zone

C) I think for bette comunication coul be nice to do these changes:

1) on title in list of modules it show:

CiviCRM's users bridge to Drual's

instead of:

CiviCRM's users bridge to Drupal's
but I thik this sentence is more simple to understand:
BRIDGE from CIVICRM CONTACTS to DRUPAL USERS

2) and then also in administration interface:
Import user's
is not so esy to find, because first it is called bridge and then importer
I purpose:
Import CIVICRM CONTACTS into DRUPAL USERS

3) this is the only one module missing description that could be:
Import CIVICRM 2.x CONTACTS into DRUPAL 6.x USERS,
with undo option and you can choose type ofcontacts to import

4) bottom notes of your module have a grammar error:
contacts are of civicrm and uses of drupal, so also monkeys will understand... =)
insted of:
contacts are of civicrm and users of drupal, so also monkeys will understand... =)

5) but I think better bottoom notes now could be:
This module Import CIVICRM CONTACTS into DRUPAL USERS
and will never do the opposite, it is tested with CIVICRM 2.1 and Drupal 6.4
anyway this will remain probably compatible with Civicrm 2.x and Drupal 6.x
If you find any bugs, you can contact me at this email: max@vizh.ru

or if you prefer you can put mine email and I'll do email secretary for youfor thsi module ;)

6) to me is again not clear what the "Keep old users" option is doing
it is explained this: "Do not rewrite backup file, but append it with new users"
but i know nothing about a backup file and him format and where it is and if this is automatically or only if i check it

7) Change actual username very long and impossibile to remember (because very difficult as a pasword) modifying it with the email of contacts imported

---------

LINK DOWNLOAD OF MODULE:
http://www.ho-re-ca.biz/sites/all/modules/cd.zip

« Last Edit: December 06, 2008, 08:32:26 am by businessbroker »

businessbroker

  • Guest
Re: copy contacts ofcivicrm to users of drupal
November 22, 2008, 08:31:58 am
I have done by my hands these points:
1,2,4,5
and updated version to 0.1.1 from 0.1
http://www.hotelsupplies.us/cd_0.1.1.zip

Alan.Guggenheim

  • Guest
Re: copy contacts ofcivicrm to users of drupal
January 07, 2010, 07:39:49 am
This link is not working. Is the module available? Where? I am interested.
Thanks

businessbroker

  • Guest
Re: copy contacts ofcivicrm to users of drupal
January 07, 2010, 08:33:37 am
sorry, the website is changed from drupal normail site to drupal 6.15 in "multisite" usign domain access and path of files put bu hand is changed, I attach it here. to open i, just cut the .pdf extension, in real it is a .zip file.

Alan.Guggenheim

  • Guest
Re: copy contacts ofcivicrm to users of drupal
January 07, 2010, 08:57:18 am
Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Community Sponsored Improvements (Moderator: Donald Lobo) »
  • copy contacts ofcivicrm to users of drupal

This forum was archived on 2017-11-26.