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) »
  • Lessons from creating a new custom name badge
Pages: [1]

Author Topic: Lessons from creating a new custom name badge  (Read 1253 times)

malks

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
  • CiviCRM version: 3.4.x 4.x
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Lessons from creating a new custom name badge
July 18, 2011, 11:51:45 pm
Hi,

Just a couple of observations that I didn't find documented or that documentation wasn't clear on (to me) that might save someone some time if creating a custom name badge.

1.  If using a custom logo, make sure that your editing program doesn't change the bit depth from 24bit as I was finding that the badge process would hang.  If using gimp, this means flattening image rather than merging layers.

2.  If using a custom badge class, then the name of the file that is expected to contain the class is the name of the class minus "CRM_Event_Badge_" e.g. I had the class defined as CRM_Event_Badge_Momentum therefore Civi is expecting Momentum.php in the <custom template path>\CRM\Event\Badge directory.

3.  Similarly, if using a logo Civi is looking for Momentum.png (or .gif/.jpg) in the <custom template path>\templates\CRM\Event\Badge directory.

Malks.

isabisa

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.92
  • PHP version: 5.3.6
Re: Lessons from creating a new custom name badge
July 26, 2011, 12:48:46 pm
Just wanted to note that the custom PHP file that contains the new class needs to be saved in the custom PHP directory, not the custom template directory. I just updated the documentation with this information. Thanks!

http://wiki.civicrm.org/confluence/display/CRMDOC40/Name+Badge+Administration%2C+Customization

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Lessons from creating a new custom name badge
May 10, 2013, 02:38:14 pm
Upcoming MIH for CiviCRM 4.4

http://civicrm.org/make-it-happen#Self service view, update and cancel for CiviEvent and better event badges
 
Make it Happen (MIH) campaigns are the best way to get the new features you are looking for into CiviCRM.
If you wanna push this forward, please consider contributing to make this happen.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Lessons from creating a new custom name badge

This forum was archived on 2017-11-26.