WP-Members: Membership Framework
Registration Fields Export Extra Columns with Commas (3 posts)

  1. bk_design
    Posted 4 years ago #

    I wanted to know if anyone else has run across an issue when people fill out the registration form and they add commas in the fields that those commas get turned into extra columns. Since WP-Member's use comma delimited to create the .csv file. I tried adding the str_replace code below the “// get the fields” line in wp-members-export.php to replace the comma’s with a space. But it doesn’t seem to work.

    // get the fields
    $wpmem_fields = get_option('wpmembers_fields');
    $wpmem_fields = str_replace (","," ",$wpmem_fields);

    My goal would be to replace all commas in the $wpmem_fields with a space before it’s exported as a .csv file.

  2. thesalmon
    Posted 3 years ago #

    I just ran into that problem, too. I'm wondering if I can export data separated by Tab or semi-colon instead of comma.

  3. Chad Butler
    Plugin Author

    Posted 3 years ago #

    That is in interesting dilemma. There may be a way we can work around that, but I'll need to look into it.

    The entire export process is on the project list for some overhaul anyway, so this will be added to the list.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic