Any chance of a port to drupal 6.x? this is exactly what i'm looking for.

CommentFileSizeAuthor
#18 pdfidcard.module.patch2.48 KBtutumlum

Comments

tassoman’s picture

Maybe I'll work on it in a maybe upcoming project

jredding’s picture

Unfortunately I don't have any plans for Drupal 6 port at the moment. Perhaps if I find sometime over the next week or so but at the moment my schedule is pretty booked up. If anyone has time and would like to submit a patch I'm willing to commit and/or provide assistance.

The upgrade should be fairly straightforward. Upgrade the menu system, add theme registry entries and some very slight change to the admin settings. I don't think there are major changes to be done.

tassoman’s picture

I don't like very much the choice of showing a select box into user panel. Better, would be having a custom page shown only to registered users.

lkacenja’s picture

Due to demand by some of the pilot stations, the Open Media Project has created the initial PDF-ID card Port for 6.x. In the next few months we will probably release a patch with expanded functionality, allowing posters/fliers and other PDF documentation to be filled in online.

PDF-ID Card 2.1 for 6.x

jredding’s picture

If you send me your CVS account ID I'll grant you maintainer access so you can create a 6.x branch and keep these changes on d.o.

kreynen’s picture

Added both of you to the list of developers directly contributing to the Open Media Project!

http://www.openmediaproject.org/content/open-media-partners

lkacenja’s picture

Link to the 6.x port is now fixed for public access. Sorry about that.

I am currently requesting a CVS account. Thanks.

jredding’s picture

Great! Let me know when your CVS Account is approved and I'll add you as a maintainer. Create a 6.x branch then post up your code and create a stable tag for it if you think its stable.

Glad to have you contributing!

shrill’s picture

This is great. Will it include the ability to pull fields from Civicrm (ie. the code I sent to jredding)?

Thanks,

Shrill

shrill’s picture

whoops: hit save twice

marcus178’s picture

I can't seem to get this to work, it creates a pdf but it's blank. Here's my code

//print horizontal first name
$pdf->SetFont('freemono', '', 60);
$pdf->setxy(52,178);
$pdf->SetTextColor(100,100,100);
$pdf->Cell(10,40,strtoupper($account->profile_firstname),0,0,"left",0,0);

//Print expirydate exactly one year from date printed.
$pdf->SetFont('freemono', 'b', 20);
$pdf->setxy(79,202);
$pdf->SetTextColor(0,0,0);
$expirydate = date('n/j/Y', mktime(0, 0, 0, date("m"),   date("d"),   date("Y")+1));
$pdf->Cell(10,40,$expirydate,0,0,"left",0,0);

//Print vertical firstname
$pdf->SetFont('freemono', '', 40);
$pdf->Rotate(-90, 270, 0);
$pdf->setxy(321,9);
$pdf->SetTextColor(100,100,100);
$pdf->Write(10,strtoupper($account->profile_firstname), NULL, 0);
ginc’s picture

Title: drupal 6.x port? » Port for drupal 6.x
Component: Miscellaneous » Code
Category: feature » task
Status: Active » Needs work

any progress? we need 6.x version of this module too, soon 7.x will be out there and we don't even have 6.x branch here

i'm willing to maintain the 6.x branch if you guys have no time...

jredding’s picture

As you can see from the above comment I've been looking for a maintainer. I have no time to maintain this project and won't have time for the next several months.

If you're up for it, you're a maintainer but first you'll need a CVS account. Let me know when you have one and I'll add you as a maintainer.

ginc’s picture

thank you for your quick response, i'll apply for it and will let you know

AjK’s picture

GA CVS account approved and added to this project as per jredding's #13 comment above.

ginc’s picture

Assigned: Unassigned » ginc

thanks Andy, my CVS username: ga

ginc’s picture

Version: 5.x-1.1 » 6.x-1.x-dev
Status: Needs work » Needs review

added 6.x development branch

tutumlum’s picture

Status: Needs review » Patch (to be ported)
StatusFileSize
new2.48 KB

Current 6.x dev version is not working with Drupal 6.15 with PHP 5.3. Here is the working version. What about releasing it as a stable version? And I'm curious about printing ID card for all users together, or role by role.

browlands’s picture

+1 Where's the correct sourceforge download? - only shows for PHP4

tutumlum’s picture

If you guys don't have time, I can maintain this module. This module is one part of my project. I'm working on D7 version of this module now.

jredding’s picture

CVS access granted. Thanks for helping out.

ginc’s picture

tutumlum, current development release of 6.x has several bugs and isn't ready for a stable release, please apply your patch and then you may release a beta, as you are interested in D7, it will be great if you add a 7.x development branch. thank you for helping out.

tutumlum’s picture

Status: Patch (to be ported) » Fixed

Ok. Thank you for CVS access. I applied the patch.
D6 beta release will be ready after a while...

tassoman’s picture

Sorry but I gave up. I've written an hardcoded module without interface, it just spits pdfs based on tcpdf library

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.