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 CiviEvent (Moderator: Yashodha Chaku) »
  • Print online registration confirmation
Pages: [1]

Author Topic: Print online registration confirmation  (Read 913 times)

goran

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 3
Print online registration confirmation
October 21, 2010, 01:45:23 am
We have been using online registration for an event we are organizing; most things work fine - one of the glitches is with printing of a confirmation.

The 'Thank you for registering...' (@ /civicrm/event/register?_qf_ThankYou_display=true&qfKey=...) renders very nicely on screen. However, when going to actually print it two things break it:

1. We have a rather big custom data section that renders nicely on screen, but on the printout it is completely missing (except the title: 'Registration Form')

2. For this page I don't think that elements with ids: side-bar, header, breadcrumb (maybe some others) need to be printed (well, come to think of it these elements probably don't ever need to be printed)

The above had been tested both with the print preview and print button (that calls window.print()). Tests done on Firefox 3.6.12pre and IE7.

This is my first time I am trying to change css for drupal/civicrm so would appreciate a pointer to proper path to fix the above? Am I right to assume that these would be set from civicrm/css/print.css? (also if there's more appropriate forum section for this kind of question please let me know).

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Print online registration confirmation
October 21, 2010, 02:13:29 pm
You wouldn't want to hack the built in css. You would lose all of your changes when you upgrade. If you think that the built in print.css has much of what you need, copy it into your theme and add an entry to your .info file. Now you can work to your heart's content without losing your work. To get the css to be added as a print css file use the following format

Code: [Select]
stylesheets[print][] = print.css
Of course, you can call the file anything you want. Maybe civicrm_print.css would be more appropriate.
Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

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: Print online registration confirmation
October 21, 2010, 02:25:14 pm

for security (and good coding, IMO) reasons, we basically delete the session and all the info used after we generate the thank you page. thus we cannot re-render this page as is.

i suspect the print button requests the page again and hence u r seeing this behavior?

loboo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

goran

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 3
Re: Print online registration confirmation
October 22, 2010, 02:41:17 am
@qjensen, thanks, I'll keep your advice in mind when I get things to work.

@Lobo

No, not a new request issue - I am simply trying to print what is displayed on screen and get nothing past the header.

More simply put - could someone confirm that this is not a general bug and that printing of custom participants fields works from the online registration page?

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: Print online registration confirmation
October 22, 2010, 07:08:18 am

goran:

can u do a quick test on the demo server and see if it is an issue there

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

goran

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 3
Re: Print online registration confirmation
October 25, 2010, 02:00:08 am
Ah, no... it works there; could not replicate.

Also the printout is much much cleaner - navigational elements are removed (also firefox's web developer's media type does nothing on my local install where on demo site it does the right thing - renders the printout on screen).

Thanks for the help, I'll try to remove some of the unneeded modules from my drupal install and also (finally) move to 3.2

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Print online registration confirmation

This forum was archived on 2017-11-26.