How to export member information via CSV

Permalink
I notice in 5.8 there is not a builtin function to export member information via a CSV or HTML file. Is an add-on available?

If not, In my 5.6 application I wrote several blocks that read the field names and field data, exporting as a PDF. Where can I get information on reading field names and field data for 5.8? Will the process be more complex in 5.8 than 5.6.

With appreciation...

Todd

rtcary
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi rtcary,

I recommend checking out the CSV User Import & Export add-on by community member hissy. The add-on exports users and their attributes.
https://github.com/hissy/addon_csv_user_import_export...

When installing the add-on in v8, I encountered one error that was resolved by:
- changing this line
https://github.com/hissy/addon_csv_user_import_export/blob/master/cs...
- to this
'uDateAdded' => $ui->getUserDateAdded()->format('Y-m-d H:i:s'),
rtcary replied on at Permalink Reply
rtcary
[Sorry! was not watching and posted to the wrong place!]

Michael -

Watched a movie. More tomorrow including my true blue Hell's Angel patient.

Todd

R.Todd Cary
Bend, OR 97702
Nexus 5 phone

On Dec 29, 2016 10:01 PM, "concrete5 Community" <discussions@concretecms.com>
wrote:
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Just tried to install this on 5.7.5.13 and got an error caused by lines 62 to 65 in the package controller.
public function on_start()
    {
        require $this->getPackagePath() . '/vendor/autoload.php';
    }

The error message is
Concrete\Package\CsvUserImportExport\Controller::on_start(): Failed opening required 'H:/wamp/www/packages/csv_user_import_export/vendor/autoload.php' (include_path='H:\wamp\www\concrete\vendor;.;C:\php\pear')


Any ideas?
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Same error on 5.8.0.3
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi weyboat,

Before installation, you need to run Composer to install the dependencies listed in composer.json.
http://getcomposer.org/
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
HaHa, I will have a go on my windows machine...
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Okay, I managed to run composer install which created a vendor folder with sub folders and the autoload file.
The package installed okay but when I run it, I get this error message.
include(H:\wamp\www\concrete/single_pages/dashboard/system/backup/export_user_csv.php): failed to open stream: No such file or directory
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
The error is coming from H:\wamp\www\concrete\src\View\View.php on line 205
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Okay, Finally got this working..
What finally worked for me was to shut down my wamp server whilst I ran the 'composer install' from the command line.
Then, restart wamp server, logged in to the site, installed the addon and 'bingo' it works!
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Nope, not quite...
I can successfully export the users with all the attribute data to a csv file.
But I can't discover how to import the csv file?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@weyboat

I believe the import function is on a todo list for development.