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 CiviMember (Moderator: Deepak Srivastava) »
  • CiviCRM + LoginToboggan = Missing Password spec help text
Pages: [1]

Author Topic: CiviCRM + LoginToboggan = Missing Password spec help text  (Read 12454 times)

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
CiviCRM + LoginToboggan = Missing Password spec help text
March 02, 2011, 06:55:42 am
We are seeing a tangle between Drupal + CiviCRM + LoginToboggan that results in a CiviMember join page not showing the correct password help text. What displays seems to come from either Drupal Core or possibly CiviCRM, as grep returned instances of both:

Code: [Select]
$ grep -r "Provide a password for the new account in both fields" *
files/civicrm/templates_c/en_US/%%98/98F/98F6DF1D%%CMSUser.tpl.php:              <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Provide a password for the new account in both fields.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
modules/user/user.module:      '#description' => t('Provide a password for the new account in both fields.'),
sites/all/modules/civicrm/templates/CRM/common/CMSUser.tpl:              <span class="description">{ts}Provide a password for the new account in both fields.{/ts}

However LoginToboggan is capable of overriding the help text for the password field in a Drupal + LoginToboggan environment. The addition of CiviCRM into the equation results in some sort of tangle, and the help text is not the LoginToboggan customized version we need.

I have already opened a support request in the LoginToboggan queue, and a module maintainer closed it specifying that special funding is required in order to get assistance.

"Min password length not showing up in help text for the field"
http://drupal.org/node/1077284

I already searched through the Civi Forum system and did not see any likely similar reports. Perhaps we are "out on a limb" of sorts with our needed configuration.

Perhaps may I even simply hand modify one of the files grep turned up (perhaps one of the CiviCRM templates) and achieve the needed change? How long would the change last... until some automated regeneration of the templates?

Please, any suggestions? Thanks!
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: CiviCRM + LoginToboggan = Missing Password spec help text
March 02, 2011, 10:44:54 am
You would copy the core template to your custom template directory (defined at Administer CiviCRM › Global Settings › Settings - Upload Directories) then customize it.  It would persist as long as you leave it in place!

On upgrade to a newer version of Civi you may need to recustomize the new core template in this fashion if you wanted to take advantage of something new - that's the only overhead.
« Last Edit: September 23, 2011, 07:57:44 am by FatherShawn »
Lead Developer, C3 Design.
Twitter: @FatherShawn

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: CiviCRM + LoginToboggan = Missing Password spec help text
March 02, 2011, 11:08:35 am
Greetings FatherShawn:

I know well how the "Upload Directories" is configured as I patched that bit of code!  ;D

"Site Name and Base Directory tangle and fight on a non-Multi-Site Drupal installation"
http://issues.civicrm.org/jira/browse/CRM-7458

So which file should I copy from to customize? The one at that same "Base Directory" path, or the one from the actual module installation directory?

And where do I specify to use this template? I went into the Profile edit screen and saw no where a pick list to select an alternate template.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: CiviCRM + LoginToboggan = Missing Password spec help text
March 02, 2011, 11:55:05 am
I came across this while searching:

"Customize Built-in, Profile, Contribution and Event Registration Screens"
http://wiki.civicrm.org/confluence/display/CRMDOC33/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens

It looks like that will give me a good start.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
Re: CiviCRM + LoginToboggan = Missing Password spec help text
September 07, 2011, 12:48:18 pm
I ran into a similar but not exactly the same problem with logintoboggan.
If your organization also offers features for which it makes sense for your members to be users of your Drupal site, you can configure CiviMember Contribution Pages to also require (or make optional) Drupal User signup. You set this up on a contribution page, on the "Membership Settings" tab, near the bottom.

One option in Logintoboggan is to require users to enter their email address twice to confirm it. This option is helpful in preventing users from entering a typo in their email address that then prevents them from accessing the password reset feature, for example.

If you are using CiviMember with account creation along with Logintoboggan's "use two email address fields" you will run unto a problem.  The CiviCRM CiviMember signup page will only render a single email address.  Your user will signup, and when they confirm their contribution/membership signup, they will be delivered to the home page of your website with a cryptic error message to the effect of "e-mail address confirmation required".

The contact wil be created.
The contribution (if you are taking a contribution in exchange for membership) will be recorded and processed
The membership (civimembership) will NOT be assigned
The Drupal user account will NOT be created
This is very problematic because the error, which is being thrown by Logintoboggan, does not indicate that the membership or user account have not been created, so the user probably will not realize that there is a significant problem, and the site administrator may not notice the problem either.
The solution is easy, disable the "Use two email address fields on registration form" option in Logintoboggan (located at admin/users/logintoboggan)

I posted about this on our blog http://civicactions.com/blog/2011/sep/07/using_logintoboggan_with_civicrm_civimember_user_account_creation_option

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: CiviCRM + LoginToboggan = Missing Password spec help text
September 08, 2011, 02:13:45 pm
any overlap with this issue/patch? http://forum.civicrm.org/index.php/topic,21092.msg88908.html#msg88908
« Last Edit: September 08, 2011, 02:55:43 pm by petednz »
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

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: CiviCRM + LoginToboggan = Missing Password spec help text
September 17, 2011, 05:56:56 pm
@GregoryHeller:

We kicked the module off of the site, and users can create simple passwords as Drupal allows. The maintainer of LoginToboggan demanded payment / funding for ANY untangle work... and this organization can not financially contribute at this point in time. I recall finding replicated password help strings in Civi code that matched the Drupal standard, and at that point I decided to boot the mod off the site for now... fight not worth waging.

Initially the new member join process was working better. (With the module off the site) However with moving from 3.3.x Civi code up to 3.4.x code, now PayPal transactions do not complete, same as Credit Card. The transactions get stuck in pending state, and we must manually force them to Completed status.

Thank you for sharing those helpful insights, however!   :)
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • CiviCRM + LoginToboggan = Missing Password spec help text

This forum was archived on 2017-11-26.