Posted by gateone on February 16, 2009 at 11:26am
| Project: | Profile CSV |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
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
#1
Agreed, I have seen patches roaming around for this but none exist for 6.x
Any help?
#2
Here is my patch that will add this feature
Edit: This patch is bad, see new patch bellow
#3
#4
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.patchpatching 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
#5
*scratches head*
not too sure what went wrong there.
Anyway, here is the correct patch.
#6
Still fails.
#7
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
#8
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)
#9
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)
#10
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 :(
#11
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
#12
Do not divert issues to another topic.
#13
I've made a patch for the 6.x-1.1 version (without some while)
#14
Sorry, have an extra line. This is the clean code
#15
In #13 and #14 the patch is not a unified diff so it doesn't apply in my application.