CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Sorry, another Drupal user fields / CiviCRM fields integration question
Pages: [1]

Author Topic: Sorry, another Drupal user fields / CiviCRM fields integration question  (Read 1210 times)

aaronchow

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla
  • MySQL version: 4
  • PHP version: 5
Sorry, another Drupal user fields / CiviCRM fields integration question
April 20, 2011, 04:16:26 pm
My goal is to create a "My account" page with tabs that will display basic drupal user fields and some CiviCRM fields.  I know this question has been asked many times, but most of the answers are geared toward developers, which I am not quite there yet  ::)

Anyway, I've followed the instructions on giving my Drupal db user the 'select' right on my CiviCRM db, and I've added the table prefixes into the 'settings.php' file.  I read some post recommending to use Advanced Profile Kit / Views combination, so I installed both modules but I am too dumb to use it.

I go to "Views" and "Add" to add a new view.  I give it a view name, type "Advanced Profile Kit" on the View tag textbox, then I select "CiviCRM Contacts" as the View type.  Under the "default" tab (listed on the left panel), I added a "Relationships" with "CiviCRM Contacts: Drupal ID," then I added some CiviCRM fields, like phone numbers, etc., from those drop down menus.

I looked at other Advanced Profile Kit views, and I saw that they have a "page" tab on the left panel as well, so I also added a "page," and under the page settings, I added a path of "user/%/user_information" and a menu of "Tab: Contacts"

I thought everything is fine.  But when I save the view and go to the "My Account" page, I see a my new tab (woohoo~), but that tab basically lists all the phone numbers from my entire CiviCRM database...  :-[

Do you know what steps I missed?  Or am I doing completely wrong?  Thanks for bearing with me!

ZenLax

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • Not an engineer, but I play one on TV.
  • CiviCRM version: 4.8
  • CMS version: Drupal 6.x/7.x
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Sorry, another Drupal user fields / CiviCRM fields integration question
May 19, 2011, 04:57:46 pm
I'm no Civi expert either, but I do know you are taking the wrong approach. You don't need the Advanced Profile Kit to accomplish it.

If you want to display custom CiviCRM fields (created using the Custom Data option in Civi), you first need to create a CiviCRM Profile and enable it for User Registration and/or View/Edit Account.  Then add the custom fields you want users to see in Drupal to that profile.

See http://wiki.civicrm.org/confluence/display/CRMDOC40/How+to+Create+Profiles


brizone

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: Sorry, another Drupal user fields / CiviCRM fields integration question
August 03, 2011, 12:09:51 pm
Did the trick for me!  I did notice that I needed to create the custom fields under contacts. If I did it under Members, I couldn't see them in Drupal Views.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Sorry, another Drupal user fields / CiviCRM fields integration question

This forum was archived on 2017-11-26.