Skip to main content

Posts

Showing posts from August, 2011

For Custom Data In Event Participant

Function Below shows Following When Participating for an event Using custom data : 1) Get the custom data contact . 2) If not Get then Create new contact . 3) Create New Participant for Event . 4) Check for Organization & create if organization not exist . 5) Check for Relationship & create if previous not available . function eventType_customPath_civicrm_post( $op, $objectName, $objectId, &$objectRef ) {     if ( $objectName == 'Participant' && $op == 'create' ) {         require_once 'api/api.php';         $config =& CRM_Core_Config::singleton( );         $participantParams = $config->_customParams;         $participantFirstNameId = array( 'custom_22', 'custom_60', 'custom_62' );   /* add custom first name Id */         $participantLastNameId = array( 'custom_59', 'custom_61', 'custom_63' );    /* add custom last name Id */         $participantEmailId = array( 'cus

Create Replication of drupal using script in linux

First of all Copy the settings.php & civicrm settings.php files & paste it as settings.php.dist & civicrm.settings.php.dist. Edit the settings.php.dist :- $db_url=' '; $db_prefix = ' '; Edit Civicrm settings.php :- Replace the code from the file with the following code . 1)  define( 'CIVICRM_UF_DSN'           , ' ' ); 2)  define( 'CIVICRM_DSN'          , ' ' ); 3)  $civicrm_root = ''; 4)  define( 'CIVICRM_TEMPLATE_COMPILEDIR', '' ); 5)  define( 'CIVICRM_UF_BASEURL'      , '' ); After that create one script file as filename.sh ( for ex.  drupal-rep.sh)  &  copy the following code into the file. /************************ Script file code **********************************/ echo "Have you copy files 'civicrm.settings.php.dist' and 'settings.php.dist'       in sites/default of the source drupal ( 'y' or 'n' ) ? " read copyFil

Dedupe type in civicrm

In civicrm, there is Dedupe functionality which check the duplicate contacts & merge it . It check contacts for contact type ( like Individual, Household, Organization )  . To open dedupe click on Contact . It gives condition on which civicrm checks duplicate contact . If we add the rule just go to edit rule or create new dedupe . Default Dedupe Rule Settings Fuzzy Rules for Individual => First Name AND Last Name AND Email Organization => Organization Name OR Email Household => Household Name OR Email Strict Rules for Individual => Email Organization => Organization Name OR Email Household => Household Name OR Email