TOPIC:

Missing signature field in custom PDF attachment 1 week 4 days ago #250868

  • Topic Author
  • Sitar
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 16
  • Thanks: 0
Hi,

I have two custom PDF templates for my two forms that are saved in the folder /public_html/media/breezingforms/pdftpl

Both templates have this code to insert signature field in the PDF:
<?php echo $data[_FF_DATA_TYPE] == 'Signature' && file_exists(JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE]) ? '<img style="margin: 5px;margin-top: 10px; display: block;" src="'.JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE].'" height="100" width="125"/>' : nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE])

Everything was working fine until today. Suddenly where the signature should be there is nothing. Signature gets uploaded to the signatures folder and is attached in the email. So the picture exists. I've checked permissions for the signatures folder and everyone has read permissions. So I dont know why suddenly there are no signatures inserted in the PDF? And also we havent installed any updates on our site.

If anyone has a suggestion on what could cause this problem I would appreciated it very much.


Sandra

Please Log in or Create an account to join the conversation.

Missing signature field in custom PDF attachment 1 week 4 days ago #250870

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2267
  • Karma: 3
  • Thanks: 210
Hi,

try something like this:
<?php echo $data[_FF_DATA_TYPE] == 'Signature' && file_exists(JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE]) ? '<img src="'.JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE].'" />' : nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8')); ?>
I tested it and with this code I have signature in PDF

Hope this helps

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Missing signature field in custom PDF attachment 1 week 4 days ago #250873

  • Topic Author
  • Sitar
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 16
  • Thanks: 0
Tihana thank you for your fast reply. Im sorry, I see that somehow the end part of my code is missing in my question. I do have the : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8')); ?> part at the end in my template. The only difference between your code and mine is style, width and height attribute for the image element. But I already had them yesterday when everything worked ok. This is so strange :/

Please Log in or Create an account to join the conversation.

Missing signature field in custom PDF attachment 1 week 4 days ago #250875

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2267
  • Karma: 3
  • Thanks: 210
Hi,

weird.
Please try to clear cache from System->Clear Cache

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Missing signature field in custom PDF attachment 1 week 1 day ago #250981

  • Topic Author
  • Sitar
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 16
  • Thanks: 0
Tihana, hi. Under Clear Cache there was no group for breezing forms. I also did not delete the expired cache because later we decided to remove signature from PDF. So thank you for your help and sorry for my late reply.

Please Log in or Create an account to join the conversation.

Missing signature field in custom PDF attachment 1 week 1 day ago #250984

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2267
  • Karma: 3
  • Thanks: 210
Hi,

okay.

If you need anything else, feel free to ask :)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.049 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!