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) »
  • Birth Date - Field on Drupal User Creation/Profile displays two input fields
Pages: [1]

Author Topic: Birth Date - Field on Drupal User Creation/Profile displays two input fields  (Read 2392 times)

wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Birth Date - Field on Drupal User Creation/Profile displays two input fields
May 04, 2012, 08:27:18 am
On  a new install of Drupal 7.14, and CiviCRM 4.1.2 I am having a problem with the Birth Date field.  Specifically it is displaying two strange input fields on the Drupal user registration page.  Please see attached image.  Seems like a bug in CiviCRM?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
May 05, 2012, 01:21:01 pm
What theme is this? Can you see if using Bartik is better?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
May 05, 2012, 01:24:13 pm
Thanks for the reply.  In Bartek the input fields actually don't even show up.  With the seven theme the same problem.  If you think you can help me fix the issue I don't mind paying for your time.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
May 05, 2012, 01:31:06 pm
You can send me offline details to login and I will look at it and see if I can determine what's wrong.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
May 05, 2012, 02:54:21 pm
Ok.  Just sent you a email.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
May 06, 2012, 02:52:16 am
The CSS rule not being triggered is:

Code: [Select]
#crm-container .hiddenElement
from css/civicrm.css line 9, and that is the problem.

The reason is because on your user/register page that HTML object (i.e. the input with class hiddenElement is not inside of a DIV with ID of crm-container. I can not test this on the demo site because user/register doesn't exist there, but it would appear to me this is a bug.

I think one of the team members will respond here to confirm.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
May 06, 2012, 08:37:18 pm
Thanks for looking into this for me.  So it sounds like I need to add this DIV (#crm-container) to my Drupal Style Sheet as a temporary work around?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
May 07, 2012, 03:19:13 am
I would add to your Drupal css file this:

Code: [Select]
.hiddenElement {display:none;}
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

vhilly

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: php 5
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
June 19, 2012, 04:09:07 am
This is my problem too. When i add drupal user, the civcrm birth date field displays two input box.. i am using civicrm 4.1

wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
June 19, 2012, 06:09:31 am
Here is the CSS I added to my theme to fix the issue.  Take a look in your civicrm folder for the cal.gif file, and then move it to somewhere in your drupal theme folder.  In this case I copied the civicrm calendar icon to my images folder in my drupal theme.

Code: [Select]
/** Resolve issue with two input fields displaying for birth date **/
#birth_date_display {
background-color: white;
    background-image: url("../images/cal.gif");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: right center;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    padding-right: 16px;
    width: 9em;
}
.hiddenElement {
display: none;
}

vhilly

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: php 5
Re: Birth Date - Field on Drupal User Creation/Profile displays two input fields
June 24, 2012, 06:21:37 pm
Quote from: wrender on June 19, 2012, 06:09:31 am
Here is the CSS I added to my theme to fix the issue.  Take a look in your civicrm folder for the cal.gif file, and then move it to somewhere in your drupal theme folder.  In this case I copied the civicrm calendar icon to my images folder in my drupal theme.

Code: [Select]
/** Resolve issue with two input fields displaying for birth date **/
#birth_date_display {
background-color: white;
    background-image: url("../images/cal.gif");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: right center;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    padding-right: 16px;
    width: 9em;
}
.hiddenElement {
display: none;
}

Thanks! it works fine for me!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Birth Date - Field on Drupal User Creation/Profile displays two input fields

This forum was archived on 2017-11-26.