• 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.

Does anyone know how to display digsig in a joomla article?

rlicopoli

tester
I am trying to display digsig element in a Joomla article but it doesn't display.

1. The problem appears to be with rowid but only for the digsig plugin. All element and list view settings are set to public for now.

2. All other elements fields display nicely in the article.

3. The dig sig displays nicely in the url. Here is what is passed successfully:

https://360sportsinc.com/index.php?...ement_id=226&formid=8&rowid=538&repeatcount=0

4. Here is the eleemnt code I pasted in the article:

<p><img src="index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=digsig&method=ajax_signature_to_image&format=raw&element_id=226&formid=8&rowid={rowid}&repeatcount=0" /></p>

5. I am using JCE editor and i do notice that it removes the URL in the img src.

Much love for any help solving this problem.


System Information:
Fabrik 3.52 brand new git update of all files within the past 48 hours
PHP Built On Linux 3.12.18-clouder0 #6 SMP Thu Sep 15 14:00:54 EEST 2016 x86_64
Database Version 5.6.28-76.1-log
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 5.6.30
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
 
It is not coming from the article. However, the logic of your question makes me realize it needs to. Is there an easier way to call the digsig item since it appears it can not be called like the other items? I am not a coder, so it's a huge learning curve for me.
 
Last edited:
Well, I don't know what you are trying to do. When displaying a single element in an article, you'll need to know what row ID you want to show.

Usually you'd use the Fabrik content plugin, like ...

{fabrik view=element list=123 rowid=123 element=yourtable___yourelement}

... but you still need to know what rowid you need.

If you explain what you are trying to do, I'll try and help.

-- hugh
 
I am trying to require users to sign a document using digsig plugin. The key elements for the purchase agreement are then stored in the database where 1) they can refer to it at a later time and 2) to allow manage see all signed documents. The document will change from time to time so i need to create a new custom page for each new document rather than creating a new details view template which is not feasible.

I have set up a tester account if interested in seeing it in action. Everything works fine except the digsig. I am guessing it has to do with rendering as an image. I haven't found any documentation that clearly states how to display the signature in custom article.

Ironlically, in list view, the signature appears perfectly. I can't get it to work in the document.
 
Here's the website:
www.360sportsinc.com

test account:
Login: xxxxxxxxxxx
password: xxxxxxxxxxx

Your page after login:: https://360sportsinc.com/mypage
Buy and view stock in the left hand menu
View stock by clicking on the stock links
For simplicity I pasted the code at the top of the page: You should see a signature but you don't

Stripe is in test mode. The stripe dummy credit card is 4242 4242 4242 4242

Here are my current challenges:
1. How to render digsig as an image in article. The rowid is being past in the url from the list link.
2. I fully integrated STRIPE plugin. It took a lot of time to figure it out. The address from the stripe plugin doesnt save to the database so I set it up manually.


*As fyi. the site ftp info is in my fabrikar profile in case you want to get into the cpanel and mysql
 
Last edited by a moderator:
OK, this is what I needed to know:

1. How to render digsig as an image in article. The rowid is being past in the url from the list link.

Remember that placeholders are only understood by Fabrik. They aren't a Joomla thing. So if you just embed an IMG link in your article with {rowid}, there's nothing to handle the replacement. You've just asked Joomla to render a link with the string {rowid} in it. Joomla's article component doesn't know that {rowid} is a Fabrik thing that needs replacing.

Two choices:

1) use the Fabrik content plugin to do a {fabrik view=element listid=123 rowid=[rowid] element=yourtable___digsig}, rather than directly embedding an IMG link. Fabrik's plugin should then hande replacing that [rowid] with the query string value.

2) Do your own placeholder handling with some simple PHP embedded in the article, using Sourcerer ...

Code:
{source}
<?php
$rowid = JFactory::getApplication()->input->getInt('rowid', 0);
if (!empty($rowid)) {
   echo <<<EOT
<p><img src="index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=digsig&method=ajax_signature_to_image&format=raw&element_id=226&formid=8&rowid=$rowid&repeatcount=0" /></p>
EOT;
}
?>
{/source}

I would have done it for you, but the login you gave me isn't a backend admin.

Oh, and don't put logins in the forums, as these are public. Use your My Sites, http://fabrikar.com/you/my-sites

I removed the login details from your post.

-- hugh
 
OK, this is what I needed to know:
That's awesome. Thank you.
I am having trouble with saving stripe address to the database without the buyer having to enter info twice.


Remember that placeholders are only understood by Fabrik. They aren't a Joomla thing. So if you just embed an IMG link in your article with {rowid}, there's nothing to handle the replacement. You've just asked Joomla to render a link with the string {rowid} in it. Joomla's article component doesn't know that {rowid} is a Fabrik thing that needs replacing.

Two choices:

1) use the Fabrik content plugin to do a {fabrik view=element listid=123 rowid=[rowid] element=yourtable___digsig}, rather than directly embedding an IMG link. Fabrik's plugin should then hande replacing that [rowid] with the query string value.

2) Do your own placeholder handling with some simple PHP embedded in the article, using Sourcerer ...

Code:
{source}
<?php
$rowid = JFactory::getApplication()->input->getInt('rowid', 0);
if (!empty($rowid)) {
   echo <<<EOT
<p><img src="index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=digsig&method=ajax_signature_to_image&format=raw&element_id=226&formid=8&rowid=$rowid&repeatcount=0" /></p>
EOT;
}
?>
{/source}

I would have done it for you, but the login you gave me isn't a backend admin.

Oh, and don't put logins in the forums, as these are public. Use your My Sites, http://fabrikar.com/you/my-sites

I removed the login details from your post.

-- hugh
 
I looked on the backend and don't see the Stripe plugin configured anywhere.

-- hugh
I reuploaded it. you can get in there now. I can't get it to store the customer id and address without having two database rows having to be created for the first transaction.

if you have time please walk through the process as a new user and then check to see if i have the stripe plugin configured properly.

I set a prefilter in the form so only the user can see their form and then I set another prefilter in the main menu so superuser can see all rows.
 
Last edited:
I reuploaded it. you can get in there now. I can't get it to store the customer id and address without having two database rows having to be created for the first transaction.

if you have time please walk through the process as a new user and then check to see if i have the stripe plugin configured properly.

I can't really do that kind of depth of support on a standard sub.

I had a quick look at your settings, and you haven't enabled "Collect Billing Address" under the "Payments" tab, so we won't be collecting that info or updating your customer table.

-- hugh
 
I can't really do that kind of depth of support on a standard sub.

I had a quick look at your settings, and you haven't enabled "Collect Billing Address" under the "Payments" tab, so we won't be collecting that info or updating your customer table.

-- hugh
You caught that setting while i was working on it. I fixed the issued by deleting the stripe plugin and reentering all the settings. it suddenly worked.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top