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) »
  • List current memberships on an event form
Pages: [1]

Author Topic: List current memberships on an event form  (Read 797 times)

swettling

  • Guest
List current memberships on an event form
August 25, 2010, 04:04:27 pm
I want to be able to just simply list any current memberships that an individual has at the top of an (or all) event registration form.  There is already something at the top of a membership renewal/registration form (membershipblock.tpl) that will list if you are a member and if so, when you expire.  I just want that content to show on an event registration form for all logged in users.

I am not terribly familiar with the templating system, but do know that it's the form CRM/Event/Form/Registration/Register.tpl that i want to update.  I have a custom template created for it and can add static information easy enough (i.e. my custom templates are working), but I just don't understand how I would list the membership infomration.

There is never a circumstance where a person should have more than 1 membership, but just incase, I would like to give the system the ability to list any and all current memberships just incase.

Based on what I saw, the Register.tpl file isn't receiving any membership information by default.  If it was, I could use the membershipblock.tpl just fine.  I either need to just write a custom query and style it on that register template, or figure out a way to start pulling a user's membership information to the registration form and then use it.



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: List current memberships on an event form
August 25, 2010, 04:15:38 pm
not sure what it is you are trying to achieve by listing their memberships on an event form - but if this proves to be horribly tricky - and you are just wanting to ensure they can check the membership status - a quick cheap option would be to provide a link to their dashboard where Memberships will be listed. May help.
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

swettling

  • Guest
Re: List current memberships on an event form
August 26, 2010, 09:55:09 am
it's for a state organization that is a subset of a national organization.  People can be a lifetime or emeritus member of the parent org, but not have the same membership with the state organization.  We were hoping to list their membership type so they know what registration type to select for state events.

Is it possible to just embed a sql query and the results on a template page?  If so, i could just bypass the smarty stuff and pull the raw data.  They will never have more than one active membership, so we will always only get one result.

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: List current memberships on an event form
August 26, 2010, 11:37:24 am

check:

http://en.flossmanuals.net/CiviCRM/DevelopIntro

you might be able to use the crmAPI smarty function and get the memberships of the current user and embed that in

you might also want to check the smarty manual at: http://smarty.net/manual/en/

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) »
  • List current memberships on an event form

This forum was archived on 2017-11-26.