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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • PDF Letters for participants
Pages: [1]

Author Topic: PDF Letters for participants  (Read 1445 times)

DizzyMissLizzy

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5.3
PDF Letters for participants
November 15, 2013, 05:06:20 am
For some reason you can't send pdf letters to participants after a search.
I wrote an extension that adds this functionality. Would be nice if people would install it, try it out and give some feedback.

https://github.com/DizzyMissLizzy/be.dizzymisslizzy.pdfletterevents/tree/dev

Thanks!

Lies

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: PDF Letters for participants
November 15, 2013, 07:19:34 am

would be good for you to add the extension to our extensions directory, so more folks can see it etc (after the code review)

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

Detlev

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
    • Software für Engagierte e.V.
  • CiviCRM version: 4.5
  • CMS version: Drupal
Re: PDF Letters for participants
November 15, 2013, 07:37:58 am
Lobo,

I truly understand, that the core team tries to "outcource" code into extensions. In many cases, this speeds up improvements and reduces the testing effort for the core team when new releases are published.

However, this one is a functionality that fits logically into the core of CiviCRM - everybody would expect it there...
Any chance to get this extension into 4.5 ?


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: PDF Letters for participants
November 15, 2013, 08:02:29 am

agreed :)

so for 4.4, we should keep it as an extension and integrate this into 4.5

lies: any chance you can add this to core and submit a PR. Should not be too hard since u've already done this as an extension

thanx

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

DizzyMissLizzy

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5.3
Re: PDF Letters for participants
November 15, 2013, 08:36:27 am
Putting it into core, hmm, ok, that's a bit scary.  ;)

I'll give it a try, but i'm getting php warnings in my extensions from core civicrm classes, so it would be nice if someone could give a suggestion how to deal with that before i try to put it into core.

 :)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: PDF Letters for participants
November 15, 2013, 12:45:10 pm
Lies - why don't you paste the messages here so people can see & comment
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

DizzyMissLizzy

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5.3
Re: PDF Letters for participants
November 16, 2013, 05:10:10 am
Good idea Eileen. Here they are :

Quote
  • Strict warning: Declaration of CRM_PdfLetterEvents_Form_Task_PDFLetterCommon::postProcess() should be compatible with CRM_Contact_Form_Task_PDFLetterCommon::postProcess(&$form) in CRM_Core_ClassLoader::loadClass() (regel 126 van /var/www/persoonlijk/civi4.4/sites/all/modules/civicrm/CRM/Core/ClassLoader.php).
  • Strict warning: Non-static method CRM_Contact_Form_Task_PDFLetterCommon::formatMessage() should not be called statically in CRM_Contact_Form_Task_PDFLetterCommon::formatMessage() (regel 311 van /var/www/persoonlijk/civi4.4/sites/all/modules/civicrm/CRM/Contact/Form/Task/PDFLetterCommon.php).
  • Strict warning: Non-static method CRM_Contact_Form_Task_PDFLetterCommon::createActivities() should not be called statically in CRM_Contact_Form_Task_PDFLetterCommon::createActivities() (regel 22 van /var/www/persoonlijk/civi4.4/custom/extensions/be.dizzymisslizzy.pdfletterevents/CRM/Pdfletterevents/Form/Task/PDFLetterCommon.php).

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: PDF Letters for participants
November 16, 2013, 08:33:07 am

hey lies:

the last two warnings are from civicrm core and i've fixed them for 4.4.2: https://github.com/civicrm/civicrm-core/pull/2004

the first warning is from your code. You might want to make the signature of the function match the signature of:

CRM_Contact_Form_Task_PDFLetterCommon::postProcess(&$form)

thanx

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

DizzyMissLizzy

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5.3
Re: PDF Letters for participants
November 18, 2013, 05:48:18 am
Hey Lobo,

i based this functionality mainly on the same functionality for memberships and I get the warning too when i sent an pdf letter for memberships but then on the postprocess function in CRM_Member_Form_Task_PDFLetterCommon. So i'm a bit puzzled whether it is a core code problem or a problem in my code.

Quote
Strict warning: Declaration of CRM_Member_Form_Task_PDFLetterCommon::postProcess() should be compatible with CRM_Contact_Form_Task_PDFLetterCommon::postProcess(&$form) in CRM_Core_ClassLoader::loadClass() (regel 126 van /var/www/persoonlijk/civi4.4/sites/all/modules/civicrm/CRM/Core/ClassLoader.php).

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: PDF Letters for participants
November 18, 2013, 07:58:48 am

ok, i've fixed this for 4.4.2 also. Renamed the postProcess function in that file. Should be merged soon

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

DizzyMissLizzy

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5.3
Re: PDF Letters for participants
November 19, 2013, 07:24:42 am
Allright, I added the extension to the extensions directory, and i'll try to put it into core this weekend.

francescbassas

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.28
  • MySQL version: 5.3
  • PHP version: 5.1
Re: PDF Letters for participants
February 13, 2015, 03:48:58 pm
This extension is very interesting and not just to send letters to the participants but also, in our case, to enable the ability to print receipts registration that are made in person and require to be signed by the participants at the same time.

What is the current status and plans for the extension to be integrated into the core of CiviCRM?

kestermuller

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: CiviCRM 4.4.6.
  • CMS version: Wordpress 3.4.2.
  • MySQL version: 5.5.21-
  • PHP version: 5.4
Re: PDF Letters for participants
February 26, 2015, 04:35:08 am
Hi all,

I wondered if you can help us?

We are a small veterans charity that organises and runs a huge number of events. We already have an installation of Civi that is being used for several things within the organisation, but the next major step is to move the administration of the events side onto Civi.  We’d love to be able to generate letters against lists of participants, using custom tokens relating to custom data created against Participants, and generate mailing labels too - but of course these options are missing from the actions menu if you are working from the 'Find Participants' results list.

We have tried installing the ‘PDF Letters for participants’ extension, but it didn’t work for us – we got the following error:

Parse error in extension: Failed to parse info XML: File=/var/www/vhosts/nfassociation.org/httpdocs/civiextensions/info.xml Line=3 Column=3 Code=5: Extra content at the end of the document.

We are using Wordpress 3.4.2. and Civi 4.4.6. Has anyone else seen this error?

I noticed that there is talk of adding this to core, so I'd like to reiterate the query posted below by francescbassas! I even went so far as to email DizzyMissLizzy, but have yet to hear back so I thought I'd re-post here.

If there has been issues with this project, it's be great to hear as we may try to get some funding or ‘make it happen’ because we think it’s great functionality which would greatly help our organisation. We'd like to suggest also adding the complementary ‘Actions menu’ choice of Mailing labels.

Any advice anyone may have would be greatly appreciated.

Cheers

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • PDF Letters for participants

This forum was archived on 2017-11-26.