Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

HTML table generated by PHP code
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: HTML table generated by PHP code
#52726
HTML table generated by PHP code 9 Years, 11 Months ago Karma: 0
Hi,

I have just purchased a copy of Ari Data Tables hoping that the plugin will allow me to display a table that is generated on the fly using PHP. The PHP code is embeded in an article using Nonumber's Sourcer plugin.

So far, all I have seen are references to SQL and CSV as the table data source. Are these the only sources that can be used?

--
Jaheli
The administrator has disabled public write access.
 
#52729
Re:HTML table generated by PHP code 9 Years, 11 Months ago Karma: 760
Hello,

Do you want to convert a plain HTML table to a table widget which is supported by "ARI Data Tables"? If yes, we have "System - ARI Data Tables" plugin which supports this feature. Contact us by email please and we will send it.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#52734
Re:HTML table generated by PHP code 9 Years, 11 Months ago Karma: 0
Thank you for sending the System plugin, which I used to replace the Content plugin.

Unfortunately, the System plugin does not work as expected. If I follow the example in the email instructions then it works fine. However, if I try to generate the HTML table using PHP it does not work.

The structure of my article is as follows:

Code:

<article text>
{source}
<?php
<PHP code>
echo '{' . 'aridatatables moduleId="87" type="inline"' . '}';
<PHP code to generate table>
echo '{' . '/aridatatables' . '}';
<PHP code>
{/source}
<article text>



The {source} plugin is provided by NoNumber. The above structure causes a problem with the page rendering. The template module positions are shifted from the page right to the page bottom. However, if I remove <PHP code to generate table> the page renders correctly.

I have tried exactly the same structure using Supertable and Szakitable plugins and they both work as expected.

Is Ari Data Tables able to work in the structure shown above without having to make structural changes to my articles?

Thanks in advance for your assistance

--
Jah Eli
The administrator has disabled public write access.
 
#52735
Re:HTML table generated by PHP code 9 Years, 11 Months ago Karma: 760
Check that your PHP code is executed after "System - ARI Data Tables" plugin. You can try to use "Ordering" parameter in plugin settings to set order for the installed plugins. If it doesn't help (for example if plugin which you use to execute PHP code subscribes to event which occurs after onAfterRender Joomla! event), you can try to use "DirectPHP" plugin to execute PHP code.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#52741
Re:HTML table generated by PHP code 9 Years, 11 Months ago Karma: 0
I have tried and tried but cannot get this to work. I have changed the ordering for the plugins. That makes no difference. I have replaced NoNumber's Sourcer with DirectPHP and it makes no difference. But it works perfectly if I use Supertables and Szakitable, both of which are Content (rather than System) plugins.

I wonder if anyone else has used PHP to generate HTML tables on the fly, and managed to get Ari Data Tables to successfully create a table widget?
The administrator has disabled public write access.
 
#52749
Re:HTML table generated by PHP code 9 Years, 11 Months ago Karma: 760
Could you provide a link to a page where you try to use the extension and a temporary access to your J! backend by email so we can investigate the problem?

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12