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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Having problems getting CiviCRM Profile entries to appear for new Registrations
Pages: [1]

Author Topic: Having problems getting CiviCRM Profile entries to appear for new Registrations  (Read 4962 times)

Bumbaclaat

  • Guest
Having problems getting CiviCRM Profile entries to appear for new Registrations
April 29, 2007, 08:37:14 pm
Hi

Thanks for creating CiviCRM, I can tell it's going to be great once I get get it working

I've set up a copy of Drupal 5.1 and CiviCRM 1.7.beta.9327 Drupal PHP4 running on Apache 1.3.29 & OpenBSD 3.9 and basically it works.. But this is the problem I'm having:

The Name and Address is not showing up in the new user registration screen, and neither are any custom CiviCRM profiles I've defined.
When an anonymous user clicks on "Create new account" and gets taken to the URL /user/register, the questions from the CiviCRM profiles are not rendered - only the standard 'Account information' box gets drawn, asking for username and e-mail address.

* Both CiviCRM Profiles (the standard Name and Address with some extra fields I added, and the custom profile I added) are listed as Status 'active'  when I'm looking at the URL   /civicrm/admin/uf/group/?action=browse
* The anonymous user role in the Drupal permissions table has 'access all custom data' and 'add contacts' checked ON in the civicrm module permissions

I turned off caching in the Drupal performance settings so it's not an old cached copy.  I know this is sort of vague but does this ring a bell with anyone?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Having problems getting CiviCRM Profile entries to appear for new Registrati
April 29, 2007, 10:23:22 pm

Bumbaclaat:

  • Can u make sure that the profile is set for "User Registration" in the profile settings page
  • Can u also make sure that all the fields are of type Individual. i.e. you are not mixing Individual/Organization/Household fields in that profile
if the above two are not the issue, can u get on IRC and we can chat and figure it out

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Bumbaclaat

  • Guest
Re: Having problems getting CiviCRM Profile entries to appear for new Registrati
April 29, 2007, 11:27:11 pm
Hi lobo

thanks for your quick response!

The problem in the "Name and Address" section was one of your suggestions - mixing Individual/Organization/Household fields in that profile.  Perhaps CiviCRM should give a warning about mixing them to avoid further confusion?  Once I fixed that, then Name and Address works again. 

However another profile I set up which is (now) all Organization fields doesn't show up at registration time, even though it is set up the same as the Name and Address section - (Used for Profile, User Registration, and View/Edit User Account)

strange.. maybe I am misunderstanding the point of the different types of fields ?  I wanted an organization group of fields to pop up for a person's organization data when they register

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Having problems getting CiviCRM Profile entries to appear for new Registrati
April 30, 2007, 12:39:35 am

Bumbaclaat:

We use that profile on demo.civicrm.org from the generated data without any problems. I suspect things might have changed a bit while you or someone was playing with the system. I just tried it on my local sandbox and things work fine

The main problem with what you are attempting to do is drupal does not have different registration flows for organization vs individual. So when CiviCRM is invoked by default we present only the Individual profile. (kinda hard to figure out what a potential user is going to register as)

However, this has come up before :) and we have a hack to get around this. If you invoke the drupal user registration with the following url:

user/register?ctype=Organization

i.e. add the GET param ctype with value Organization, then we present the Organization profile. The contact created will also be an Organization contact for that drupal user

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

venkat-rk

  • Guest
Re: Having problems getting CiviCRM Profile entries to appear for new Registrati
May 01, 2007, 08:42:25 am
Quote
If you invoke the drupal user registration with the following url:user/register?ctype=Organization

i.e. add the GET param ctype with value Organization, then we present the Organization profile. The contact created will also be an Organization contact for that drupal user
In other words, we can hardcode the links to different registration pages and it will all work?

Thanks,
Venkat

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Having problems getting CiviCRM Profile entries to appear for new Registrati
May 01, 2007, 10:25:36 am

Yes

To be clear, There are only three possible registration pages (default, ctype=Organization, ctype=Individual)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

venkat-rk

  • Guest
Re: Having problems getting CiviCRM Profile entries to appear for new Registrati
May 02, 2007, 02:07:13 am
Quote from: Donald Lobo on May 01, 2007, 10:25:36 am

Yes

To be clear, There are only three possible registration pages (default, ctype=Organization, ctype=Individual)

lobo


Sorry to be a bother, but default=drupal user registration and any profile I might create and expose for user registration would have to confirm to one of the two ctypes, correct?

Thanks,
Venkat

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Having problems getting CiviCRM Profile entries to appear for new Registrati
May 02, 2007, 10:31:35 am

default is ctype=Individual which is the default behavior when u do user/register

u get the other two when u do user/register?ctype=Organization

It will also pick the Organization profile only which has been checked for User Register

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Having problems getting CiviCRM Profile entries to appear for new Registrations

This forum was archived on 2017-11-26.