We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    /*
    module:pommoexporter
    by Bruno [email protected]
    v.05
    Module to export webusers to pommo
    
    Installation:
    1. Upload the files in /assets/modules
    2. Save this code as a new module with name pommoexporter
    
    Usage:
    1. Start the module
    2. Select the Usergroups and Fields you want to export and save your config
    3. You can filter the result with extra sql-where-input
    4. Run Export to Pommo
    
    Features:
    Export and Update selected usergroups (and with sql filtered users) and selected userfields incl. webloginPE-custom-fields to Pommo-Newsletter-subscribers.
    Creates Pommo-custom-fields for Usergroups and Userfields on export.
    Saves your selection in config.txt - file.
    Extra-Feature:
    Add and Remove Users vom Usergroups in a easy way with checkboxes in usertable.
    */
    
    $basePath = $modx->config['base_path'];
    $pommoPath=$basePath.'pommo/';//where you have pommo installed
    $modulePath = $basePath.'assets/modules/pommoexporter/';
    $use_sqlwhere = '1';// set this to '0' on sql-errors in your custom sql-Where Line, alter your Line +Save it and set to '1' again 
    
    include_once $modulePath.'pommoexporter.php';
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!