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 Profiles (Moderator: Dave Greenberg) »
  • Show additional contact info on Drupal account page
Pages: [1]

Author Topic: Show additional contact info on Drupal account page  (Read 1323 times)

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Show additional contact info on Drupal account page
March 21, 2011, 10:19:10 pm
Hello

I am successfully using a profile in conjunction with my Drupal site.  As you know, the values set in the profile appear on the user's drupal account page.  This is working great.  However, I would like additional info that are not fields in the profile to appear on the drupal user account page if they are entered into a contact's record.

For example, gender is not a field in the profile, and most members will not set this.  However a few members want to specify their gender, which is easily accomplished by them editing their record.  How can I then get gender to dynamically appear on their drupal user page?  Note- gender is just one example, i would like for any additional fields that are set in the record to appear.

Hope this makes sense,
thanks!
« Last Edit: March 21, 2011, 10:22:01 pm by everything »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Show additional contact info on Drupal account page
March 22, 2011, 02:44:54 am
If i understand you, you just need to add those fields to the Profile that is being used on the Drupal reg page. Have you read the chapter on Collecting Data in the CiviCRM book - or am i misunderstanding you?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: Show additional contact info on Drupal account page
March 22, 2011, 11:01:09 am
Hey Petednz

Actually i am trying to get around adding the fields to the profile.  Basically what happens is we have limited info in the profile field, for sake of simplicity we will say first name and last name are in the profile.  Client wishes to only have this data in the profile, but does allow the contact to add additional info to their record if they want.

So, some members will want to enter more info into their actual contact record.  Being as there is SO much info that a record can hold (gender, work fax, home fax etc etc) I dont want to add these all of the contact record fields to the profile as i would essentially have to add everything, which would make a cumbersome profile form.  So what i would like to do is show the profile (first and last name), then if the contact has added more info beyond the fields in the profile (gender, work fax etc), show these values below the profile.

Im thinking I could write a php query in a block that would select * from the contact table(s), then if a row is not empty or null, print that row(s)

Hope that helps to clear things up

thanks!


petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Show additional contact info on Drupal account page
March 22, 2011, 11:27:09 am
Yes explains it well. I have no suggestions. Sorry
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: Show additional contact info on Drupal account page
March 22, 2011, 03:23:14 pm
Thank you for your time!  I appreciate it.  I will reply back after doing some tests with php, also, if anyone else has some suggestions Id love to hear them

thanks!!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Show additional contact info on Drupal account page

This forum was archived on 2017-11-26.