It would be a very handy feature to have the role names of each individual user in the CSV download for easier reference, especially if you have several roles and must select users of only one role. There is already a "role selector" in the settings page, so I think this could be easily included into the CSV download file as well!

Comments

BeMathis’s picture

Agreed, I have seen patches roaming around for this but none exist for 6.x

Any help?

BeMathis’s picture

Assigned: BeMathis » Unassigned
Priority: Normal » Minor
Status: Needs work » Active
StatusFileSize
new1.99 KB

Here is my patch that will add this feature

Edit: This patch is bad, see new patch bellow

BeMathis’s picture

Assigned: Unassigned » BeMathis
Status: Active » Needs review
kbahey’s picture

Priority: Minor » Normal
Status: Needs review » Needs work

The patch fails to apply completely. Please read http://drupal.org/patch for details on how to create a proper patch.

$ patch -p0 --dry-run < /tmp/x.patch
patching file profile_csv.module
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 110.
Hunk #3 FAILED at 236.
Hunk #4 FAILED at 280.
4 out of 4 hunks FAILED -- saving rejects to file profile_csv.module.rej
BeMathis’s picture

Assigned: Unassigned » BeMathis
Priority: Minor » Normal
Status: Active » Needs work
StatusFileSize
new2.1 KB

*scratches head*
not too sure what went wrong there.

Anyway, here is the correct patch.

kbahey’s picture

Still fails.

AliMartin’s picture

Hi there!

I really need this patched version too. Is it possible to upload the final patched module instead?

I've previously found other patches/patched versions but they appear to be buggy, e.g.

- profile_csv drops off the admin menu
- database warnings and errors

BeMathis - would it be possible to upload the patched module please?

Kind regards,

Ali

AliMartin’s picture

Hi kebahey

The patch file from BeMathis does work (thank you BeMathis) but, as a first time patcher, it took some time to find out how to do it.

The following page explains it all:

http://idonny.com/analysis/windows-diff-patch-command-prompt-drupal-GNUW...

:o)

AliMartin’s picture

I've found another way to do exactly the same thing without using the Profile_CSV module. I'm probably reinventing the wheel here but hopefully it'll help you and others out as you trawl through the forums.

You can write CSV exports using the Views and the Views Bonus Pack modules.

Once installed create a "user" view type (instead of the usual "node" view type) and pick out all the user profile fields you want to display, including those troublesome roles and hidden profile fields.

Then add a "feed" display for the view and under "style", courtesy of the Views Bonus Pack, you can now choose CSV and XLS formats. Tweak the style settings and click on "provide as file" and specify a filename.

It'd be a good idea to restrict access to the view too.

Hope this helps :o)

BeMathis’s picture

Nice though Ali! Using Views could effectively do all this.

@kbahey if you don't mind, I would like to know what, specifically, is failing for you. The patch works fine on my end. I haven't posted many of my fixes to the community and would like to learn exactly what I am doing that is causing problems for you. The patch works fine on my end so it is frustrating to hear that you are having problems :(

ksohail’s picture

Assigned: BeMathis » Unassigned
Category: feature » support
Priority: Normal » Critical

Hi,
I have just install profile CSV, Its allow me to set configuration, But I am not getting idea from where to export users profile in CSV.
Please guide me from where I can export profiles.

Thanks Regards,
Kamran Sohail

kbahey’s picture

Category: support » feature
Priority: Critical » Normal

Do not divert issues to another topic.

Anonymous’s picture

StatusFileSize
new1.19 KB

I've made a patch for the 6.x-1.1 version (without some while)

Anonymous’s picture

StatusFileSize
new1.08 KB

Sorry, have an extra line. This is the clean code

dandaman’s picture

In #13 and #14 the patch is not a unified diff so it doesn't apply in my application.

Gareth10’s picture

Can anyone confirm that this patch works?

serialbob’s picture

It doesn't works.

serialbob’s picture

Assigned: Unassigned » serialbob
Status: Needs work » Needs review
StatusFileSize
new3.81 KB

Hi,

I've made them.

Another problem, Microsoft Office Mac doesn't support very well the UTF-8 formatting. I will try to solve this problem.

Regards

serialbob’s picture

StatusFileSize
new2.69 KB

Format date fields in a readable display.