Request: Custom Fields & note/task dropbox
  • chuwiey June 2011

    Dear Ofuz,

    First off let me say, you are doing a wonderful job... thank you!

    I have a request: would it be possible to add custom fields for contacts? I need additional stuff in there which doesn't already exist... preferably with a required boolean. Thanks.

    As for the note/task dropbox: I looked in the forms and saw that you state that "ofuz_catch_new.php" is the script which handles these things, and that you use procmail. Would it be possible to get an explanation on how to use it with the open source version? (0.6.2)

    Thank you very much

  • philippephilippe June 2011

    I you have a bit of php programming knowledge I can explain how to customise the contact edit page and how to display back the additional data.

    Often we are tempted to add new fields but most of the time its about classification of contacts and it can be done with the tags.

    For the ofuz_catch.php (old one) you can use procmail to pipe the messages into it.
    But the code is ugly and a lot of ofuz.net string are hardcoded.

  • chuwiey June 2011

    I have php knowledge.. Would you be able to direct me toward the files? This would need alteration to the DB wouldn't it?

    Regarding ofuz_catch.php, I was actually addressing the new one... which I understand to be better suited for the open source version... where should procmail be installed?

    Thank you

  • philippephilippe June 2011

    @Abhik may help on getting the new one working for you.

  • chuwiey June 2011

    Thanks,

    Would you be able to point me toward the files for adding custom fields? Would this require a DB update?

  • abhikabhik June 2011

    @chuwiey the old email fetch script is

    ofuz_catch.php, as mentioned by @Philippe could be used procmail to pipe the messages into it. All you need to change hard coded domain name and set the database connection stuff in that file.

    The new version is more object oriented and its ofuz_catch_new and here the emails could be read in 3 ways :
    1. As stream
    2. The Row email
    3. From the text file

    // Take any one as per convinience
    $OfuzEmailFetcher->fetchEmailText('http://dev.ofuz.net/files/ofuz_catch.log');
    //$OfuzEmailFetcher->fetchEmailRow($rowEmail);
    //$OfuzEmailFetcher->fetchEmailStream($stream);

    You can see these on the top of the file.

    Now regarding adding more custom fields we do not have that yet on the system where user can add their own using a GUI like V-tiger CRM.

    But yes to add more fields we need the database alter.

    Contact table will contain the contact data and all child data is from the child tables like ContactTelephone, ContactAddress etc.

    If you need too add more fields on the contact table then add the field in the table and then to have them appear in the add/edit page you may need to add the registry for the new fields on registry/contact.reg.xml file and registry/ofuz_add_contact.reg.xml

    and finally in the form
    form/ofuz_add_contact.form.xml

    and for the edit page you can add something like


    <?php echo _('Custom Field);?>

    <?php echo $_SESSION['ContactEditSave']->custom_field_name ?>


    on contact_edit.php file

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Tagged

P.O. Box 121, Culver City, CA 90232, 310-765-4632
Copyright © 2009 - 2013. All rights reserved.
Terms of Service
Privacy Policy