• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Digital Signature Not Showing Up in Email Body

teoyh

Member
Digital_Signature_Issue.jpg

Not sure why the signature in not showing up but some raw code instead.

I try using this method, it did not work as well ;

$PID=JRequest::getInt('rowid');
$orgdigi = "index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=digsig&method=ajax_signature_to_image&format=raw&element_id=9553&formid=582&rowid=".$PID."&repeatcount=0";
$message = 'Dear '.$custname.'; <br><br>We hereby issue you a total of <b>'.$qty.'</b> taxi voucher of card no <b>'.$cardstart.'</b> to <b>'.$cardend.'</b>. <br><br>Please note the validity date of the voucher will be from '.$startdate.' to '.$enddate.', thereafter the taxi voucher will not be usuable. <br>You had acknowledge the receipt of this voucher on <b>'.$today.'</b><br><br>Your acknowledgement <br><br>'.$orgdigi;
$res = FabrikWorker::sendMail($MailFrom,$FromName,$email,$subject,$message,true,$Cc,$Bcc,$attachment);

The image from $orgdigi will show when the user is login if not login it will not show

Appreciate someone can help me with this many thanks
 
Did you try to add the digsig_pdf_secret to your Url? It's used for PDF rendering maybe it will help also in email .
upload_2019-6-4_14-38-52.png
...plugins\fabrik_element\digsig\digsig.php
upload_2019-6-4_14-38-33.png


BUT
in case this is working: don't show something like this URL in the email, it would expose the "secret" and so giving access to any of your signatures to the public
 
Last edited:
I don;t think it work, i tested this by first logout and paste the link direct it does not show the image;
index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=digsig&method=ajax_signature_to_image&format=raw&element_id=955&formid=582&rowid=3&repeatcount=0&pdf_secret='abcd1234'
 
In digisig.php;
when the user is not login the value $json_sig will be null even if the pdfsecret is available
$elName = $this->getFullName(true, false);
$json_sig = $row->$elName;

I added below to get the value and then it will work, but now sure is this is a good idea as i am making changes to the core
if($json_sig==NULL){
$db = JFactory::getDBO();
$db->setQuery("SELECT signature FROM stmv3data.etaxi_voucher_registration where id='$rowId'");
$json_sig = $db->loadResult();
}
 
Do you have an ACL on the digsig element itself, as well as on the list?

Also, in your example URL in the previous post you have quotes around the secret, which (unless you actually have quotes in the secret you defined) won't work.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top