How do I add information to my profile?

How do I add profile information to a node in Drupal 7?

  • I am building a site where people can log power failures in their area on a google map in Drupal 7. I want to be able to have my site users register their location on their profile. This seems pretty straightforward to do using the Profile 2 and Location modules, however it's the next step that I'm hung up on. I want the user to be able to click an "add a power failure" button, fill in the details of the failure (time, date etc) and hit save. Once this is done, I want to be able to plot a point on the map (using views or whatever) with the location details they entered in their profile when they signed up. I've been trying to play with User reference and node reference in the power failure content type, but this doesn't really give me what I want. Does anybody have any ideas on how I can accomplish this? Thanks! G

  • Answer:

    The best bet is to allow the users to add their location during registration. Then create a power failure content type, and use the author field as the user reference you need, which is populated automatically. Then in Views, you can reference the user, and their location for map plotting. Also you can add fields to a user profile directly without the need of additional modules.

Kelso Todd at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.