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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Contribution-related tokens
Pages: [1]

Author Topic: Contribution-related tokens  (Read 1722 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Contribution-related tokens
December 26, 2009, 07:10:40 pm
I wrote a custom token ( using hooks ) called contact.pending_payments that is very helpful in creating email or PDF statements/invoices. ( ie email or mail every person a statement/invoice showing everything they owe. )

But I am wondering the best approach for locking this down so only folks with "CiviContribute" permissions can get access to this token.  Also wondering if there is any real difference between an "invoice" and a "statement"
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Contribution-related tokens
December 26, 2009, 09:31:49 pm

you can make exposing the token conditional on the access rights of the person, i..e expose the contribution tokens only if they have "access CiviContribute"

however in joomla, all folks who have backend admin access have all rights

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

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: Contribution-related tokens
February 15, 2010, 02:07:06 pm
sarah - anything more you can share re the custom toekn you wrote?
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

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Contribution-related tokens
February 16, 2010, 05:31:07 am
I am working on packaging my code. I will upload it here in the next day or so.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Contribution-related tokens
February 16, 2010, 11:52:12 am
good stuff - thanks sarah
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

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Contribution-related tokens
February 16, 2010, 09:29:11 pm
The token for "pending_payments" can be downloaded from: http://www.pogstone.com/downloads/civicrm_extras.zip.  This has been tested under CiviCRM 2.2.8 and better, with both Joomla and Drupal.  It also contains the tokens for joint greetings that are described at http://civicrm.org/blogs/sgladstone/dealing-joint-greetings-part-2-code-provided
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Contribution-related tokens
February 16, 2010, 09:34:35 pm
Great work - will see if Eileen can get to take a look before the weekend.
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Contribution-related tokens

This forum was archived on 2017-11-26.