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) »
  • membership info for drupal user
Pages: [1]

Author Topic: membership info for drupal user  (Read 1305 times)

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
membership info for drupal user
December 16, 2013, 05:42:12 pm
How do I get a logged-in drupal user to see his membership information? eg expiry date.

I tried using profiles for this but it doesn't seem to show up.

Am I missing something?

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: membership info for drupal user
December 16, 2013, 06:25:43 pm
in drupal we would tend to use a View with a block eg at /user

if you want to go that approach the attached might help - let me know how you go
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

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: membership info for drupal user
December 16, 2013, 07:33:33 pm
Also a webform (with membership section enabled) will do it.

FYI the non-drupal-centric way is to use the CiviCRM contact dashboard.
Try asking your question on the new CiviCRM help site.

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
Re: membership info for drupal user
December 17, 2013, 02:35:21 am
Ok, I'm fairly new to drupal.

I created a view with a block element.

Where can I go to read up on what to do next?  ???

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: membership info for drupal user
December 17, 2013, 10:53:30 am
hi - if you have used the above view to make a block, now you need to 'configure' the block via /admin/structure/block

and set it to show eg in sidebar right either on all pages, or just eg user and users/

this is a fundamental concept of drupal so worth becoming familiar with blocks and regions.
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

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
Re: membership info for drupal user
December 17, 2013, 04:28:47 pm
What filter should I use so that it only shows the record for that particular member and not everyone?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: membership info for drupal user
December 17, 2013, 04:54:50 pm
I believe you would do this with relationships - user <-> civicrm_contact
Try asking your question on the new CiviCRM help site.

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: membership info for drupal user
December 17, 2013, 05:03:43 pm
it was in the view i gave you

User = Active = Yes
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

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
Re: membership info for drupal user
December 17, 2013, 05:33:12 pm
Ok, seems that I was using a civicrm view and not a user view.

I have since changed it and it shows the user = active as one of the filters.

However, the output still shows all active users.

I tried adding the CiviCRM Contacts: Drupal ID relationship but it still shows everyone.

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: membership info for drupal user
December 17, 2013, 05:33:58 pm
why not just import the View i gave you as a starting point?
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

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
Re: membership info for drupal user
December 17, 2013, 05:42:36 pm
How do I do that? I don't see an option for importing coding.

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: membership info for drupal user
December 17, 2013, 06:00:21 pm
in D7 i think only user/1 can import views

so maybe best approach is install Masquerade module and use that to become user/1

Then under 'Views' you should see the option for Import or see if you can get to

/admin/structure/views/import
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

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
Re: membership info for drupal user
December 18, 2013, 07:02:12 am
heh, I am user 1. Ok, found it.

Seems that I need to find User : Active (yes) and User : Current (yes).

The  User : Current (yes) filter was what I was missing earlier.

Problem solved! Thanks for all your help.

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: membership info for drupal user
December 18, 2013, 10:26:06 am
cool - did supplying the .txt for the View work (once you had the helpful instructions) - i am thinking of making more of these available so feedback would be useful
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

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
Re: membership info for drupal user
December 18, 2013, 01:53:32 pm
Yes, it worked. Though I also got another view to work without specifying the relationship portion. CiviCRM Contacts: Drupal ID

Not too sure whether I'm missing something.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • membership info for drupal user

This forum was archived on 2017-11-26.