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) »
  • Using custom Drupal username token in CiviMember
Pages: [1]

Author Topic: Using custom Drupal username token in CiviMember  (Read 354 times)

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Using custom Drupal username token in CiviMember
February 11, 2015, 08:20:01 am
Using the code from http://wiki.civicrm.org/confluence/display/CRMDOC/Customized+%28and+Custom%29+Tokens I've been able to get the custom token for the Drupal username to work in CiviMail, but not in CiviMember. The custom token appears on the list of available tokens for both CiviMail and CiviMember, but it doesn't output anything in the CiviMember scheduled reminder. In CiviMail, it works fine.

Membership records were imported from their old site and Drupal usernames were automatically generated in the import process; insofar as the usernames are system-generated, it's unlikely that members will remember them.

Logging into the site is an essential part of the renewal process, so both the (username.drupal} (custom token) and {membership.end_date} are really necessary for successful renewals - any idea why the referenced module code wouldn't work in CiviMember? Any ideas greatly appreciated… thanks!

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Using custom Drupal username token in CiviMember
February 11, 2015, 01:56:52 pm
Unless you have specifically changed something in Drupal, people can use their email address rather than their username to log in.

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Using custom Drupal username token in CiviMember
February 11, 2015, 02:14:46 pm
Thanks, Joanne - that's what I thought, too; it would alleviate the issue.

I don't know if it's a CiviMember thing or not - I haven't changed anything in Drupal. But the login page specifies the username only and entering the email address doesn't work - I've tried it twice again just now. Very strange…

http://usgbc-li.org/user

Thanks!

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Using custom Drupal username token in CiviMember
February 11, 2015, 02:54:55 pm
So, it actually looks like there is something you need to turn on to allows users to log in with their email address.

I am not sure what it is, but I imagine there are lots of Drupal people out there who will know. 

It may be easier to pursue that option rather than trying to getting recalcitrant tokens to behave.


bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Using custom Drupal username token in CiviMember
February 11, 2015, 03:33:00 pm
Thanks, Joanne - that's a good idea. The Email registration module does the trick nicely!

A big "Duh" over here - that's what happens when you bang your head against the wall for too long. Thank you for the fresh perspective and… onwards!  ;)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Using custom Drupal username token in CiviMember

This forum was archived on 2017-11-26.