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) »
  • Name Badge Customization
Pages: [1]

Author Topic: Name Badge Customization  (Read 2200 times)

nmudgal

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
    • It's Really Me
  • CiviCRM version: civicrm 3.3
  • CMS version: Drupal 6.20
  • MySQL version: mysql 5
  • PHP version: php 5
Name Badge Customization
March 19, 2011, 08:58:57 am
I am getting this error even I am doing everything fine while creating a custom badge http://fpaste.org/k0C1/
I have given the url of the custom file which I am using in the CRM/Event/Badge with the name "CRM_Event_Badge_NameTitleOrg4x3.php" & in civicrm administration I am creating badge with class name "CRM_Event_Badge_NameTitleOrg4x3" .
But still getting error . Please help!
Using this file http://wiki.civicrm.org/confluence/download/attachments/35684406/NameTitleOrg4x3.php?version=1&modificationDate=1288742501000 for custom badge.
GPG Key Fingerprint: 8B97 082A D923 2860 E0BE 3ED3 8F81 0702 6AE9 2A57

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Name Badge Customization
March 19, 2011, 09:19:47 am
You have created
CRM_Event_Badge_NameTitleOrg4x3.php
but the error says that it's searching for
CRM/Event/Badge/NameTitleOrg4x3.php


Rename the file and it should be fine.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

nmudgal

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
    • It's Really Me
  • CiviCRM version: civicrm 3.3
  • CMS version: Drupal 6.20
  • MySQL version: mysql 5
  • PHP version: php 5
Re: Name Badge Customization
March 19, 2011, 10:28:53 am
I tried renaming the file too but still same error, Cleared the cache even using drush , browser cache too!
Using civicrm-3.3.5-drupal
Tried everything still no luck?
Do you need any other info to sort out problem ?
GPG Key Fingerprint: 8B97 082A D923 2860 E0BE 3ED3 8F81 0702 6AE9 2A57

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Name Badge Customization
March 19, 2011, 11:10:59 am
Hi,

Do trust the error message (that has expired on pastebin btw) when it says that the file isn't there, that's the case:

Either that's not
NameTitleOrg4x3.php

or not in the right folder or that apache user doesn't have read access...

My strategy is usually to bang my head on the wall for a while, open a bottle of wine, drink a glass, then explain the problem to my cat, and then realise that the dash was a semi comma, or whatever stupid reason these stubborn computers refuse to do what they should ;)

Good luck!

X+


-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

nmudgal

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
    • It's Really Me
  • CiviCRM version: civicrm 3.3
  • CMS version: Drupal 6.20
  • MySQL version: mysql 5
  • PHP version: php 5
Re: Name Badge Customization
March 19, 2011, 11:23:57 am
Okay yeah got it.
I banged my head on my machine rather than wall & got it. :-)
One more thing I made a barcode module for drupal here http://code.google.com/p/regbar & like to integrate this into civicrm with the "Name Badge" thing, means I don't have much coding experience with civicrm except I customized the process of event generation [As you save any tab while event creation you jump onto next tab with saving everything to db as usual. for e.g save "location" class & then you jump onto next tab "fees", no requirement of clicking on each tab.]
Thanks

GPG Key Fingerprint: 8B97 082A D923 2860 E0BE 3ED3 8F81 0702 6AE9 2A57

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Name Badge Customization
March 19, 2011, 11:35:14 am
Quote from: nmudgal on March 19, 2011, 11:23:57 am
I banged my head on my machine rather than wall & got it. :-)


That's not my strategy: you quick on the machine with the foot, not the head (mostly backpain reason, I think). But if it works for you... ;)

Quote from: nmudgal on March 19, 2011, 11:23:57 am
One more thing I made a barcode module for drupal here http://code.google.com/p/regbar & like to integrate this into civicrm with the "Name Badge" thing, means I don't have much coding experience with civicrm except I customized the process of event generation [As you save any tab while event creation you jump onto next tab with saving everything to db as usual. for e.g save "location" class & then you jump onto next tab "fees", no requirement of clicking on each tab.]



There is a barcode generation in the pdf library we use. it shouldn't be complicated to generate it while you are printing the other items on the badge. (and that's as far as I looked at it: I know it exists)

Let us know if you have found out the way of integrating the code bar, that's been requested previously.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

nmudgal

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
    • It's Really Me
  • CiviCRM version: civicrm 3.3
  • CMS version: Drupal 6.20
  • MySQL version: mysql 5
  • PHP version: php 5
Re: Name Badge Customization
March 19, 2011, 01:52:32 pm
Okay what files do I need to hit for this integration and which pdf library civicrm is using? As it would be helpful to know exact things :-)

And one more thing admin of civicrm website should consider putting "trailing slash" in this url http://en.flossmanuals.net/CiviCRM => http://en.flossmanuals.net/CiviCRM at this page "http://civicrm.org/help" in the first point of Support Resources.
Thanks
GPG Key Fingerprint: 8B97 082A D923 2860 E0BE 3ED3 8F81 0702 6AE9 2A57

nmudgal

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
    • It's Really Me
  • CiviCRM version: civicrm 3.3
  • CMS version: Drupal 6.20
  • MySQL version: mysql 5
  • PHP version: php 5
Re: Name Badge Customization
March 22, 2011, 04:56:24 am
I have put 1Dbarcode in the name badge [ Logo.php default file] that a user can print out, right now this barcode follows "C128A" standard but can be converted into any standard barcode format by changing barcode standard name for e.g. in the below file.
Quote
$this->pdf->write1DBarcode( $participant['first_name']. " ".$participant['middle_name']. " ".$participant['last_name'], 'C128A', '', '', '', 10, 0.2, $style, 'N')
and currently barcode contains participant's first, middle & last name [so it is easier to search for any participant].
 I have attached the file, replacing it with default logo.php ( civicrm/CRM/Event/Badge/logo.php ) file would work [Don't forget to change the extension to 'php'.]
Hope it helps :-)

GPG Key Fingerprint: 8B97 082A D923 2860 E0BE 3ED3 8F81 0702 6AE9 2A57

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Name Badge Customization
March 22, 2011, 08:37:19 am
Hi,

Cool

How do you use the bar code ?

Wouldn't it be easier to store the participant id so you can use it to directly access the participant, and for instance change the status from "registered" to "attended" ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

nmudgal

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
    • It's Really Me
  • CiviCRM version: civicrm 3.3
  • CMS version: Drupal 6.20
  • MySQL version: mysql 5
  • PHP version: php 5
Re: Name Badge Customization
March 22, 2011, 09:15:21 am
Yes I used to search people by their name not by their id, any non-technical won't give much to id thing, their display name can be searched by civicrm search & then from that search result status can be changed by exposed filter given above, I think. I tried this & was successful.
I have put first name-middle name-last name in the barcode.
All I have to do was to call tcpdf 1Dbarcode method & passing arguments in it and do some styling to adjust it to the place.
It can be generalized more by making admin interface in civicrm to use different standards & using any template easily the same as this drupal barcode module does http://code.google.com/p/regbar
I would have done this too but not much familiar with civicrm apis, if you [@xavier] can help, I would do!
GPG Key Fingerprint: 8B97 082A D923 2860 E0BE 3ED3 8F81 0702 6AE9 2A57

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Name Badge Customization
May 10, 2013, 02:28:06 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. 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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Name Badge Customization

This forum was archived on 2017-11-26.