Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ok I found a little work around. Its not very clean I suppose, but I am not a coder. This works with the extra fields from cimy. I suppose it should also be easy to adjust this for Register Plus.

    Ok here we go for the modifications of the users2csv.php file (Version 1.4.2):

    Line 149 add to the following array the additional fields you would like to have:

    $fields = array('URL','E-Mail','URL','Display Name','Registration Date','First Name','Last Name','Nickname');

    example:
    $fields = array('URL','E-Mail','URL','Display Name','Registration Date','First Name','Last Name','Language','Adress','Zip Code','City','Country','Phone');

    Be sure these extra fields have been created in Cimy or Register Plus

    Line 169:
    Below this Line add a new query to query the table from cimy or Register Plus:

    Line 169
    $query = "SELECT meta_value FROM ".$wpdb->prefix."usermeta WHERE user_id = ".$results[$i]['UID']." AND meta_key = ";
    
    Added query example for cimy:
    $query2 = "SELECT value FROM ".$wpdb->prefix."cimy_uef_data WHERE user_id = ".$results[$i]['UID']." AND field_id = ";

    Now add after Line 175/176 `
    $nnquery = $query . “‘nickname'”;
    $results[$i][‘nickname’] = $wpdb->get_var($nnquery);`

    The new queries for your extra fields (example):

    $langquery = $query2 . "'1'";
    $results[$i]['1'] = $wpdb->get_var($langquery);
    $streetquery = $query2 . "'3'";
    $results[$i]['3'] = $wpdb->get_var($streetquery);
    $codequery = $query2 . "'4'";
    $results[$i]['4'] = $wpdb->get_var($codequery);

    The numbers are the field_id from cimy. Check them through phpmyadmin.
    Hope someone may understand this. At least it works for me 🙂

    Have the same problem than rhunter100

    However, data is not being saved (when updated) for the Configuration Organization screen. No error messages when updating.

    Error message: Return to the Admin screen to complete Configuration Organization, when triggering the {EVENTREG} page.

    Would be great if some could help.

Viewing 2 replies - 1 through 2 (of 2 total)