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


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


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?

Dynamic Columns
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Dynamic Columns
#2387
Dynamic Columns 8 Years, 1 Month ago Karma: 0
I want to pull $_POST info from a form from the previous page, and use that info to determine what columns will be displayed with the JDataTable. How am I able to do this with Joomla?

When I use plugins that allow PHP directly in the article, the table does not appear as the ARI Soft plugin is supposed to make it. It shows up as a regular table.

As it stands, I can either have the JData Table show up with predetermined columns (hardcoded with html) or I can use PHP (in this case, using Tiny But Strong to do the PHP) to output the proper html with the columns the user wants to see.

Examples:
Hardcoded, and it works:

<p>{arijdatatable bPaginate="true"}</p>
<table border="0">
<thead>
<tr>
<th>Select</th> <th>Name</th> <th>Birthday</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" name="option" value=" [u.contactID;block=tr] "></FORM></td>
<td>[u.FName] [u.LName]</td>
<td>[u.bday]</td>
</tr>
</tbody>
</table>
<p>{/arijdatatable}</p>

However, if I have a PHP script echo this code into the article, with FName, LName, and bday replaced with other columns chosen from the form on the previous page, it doesn't work. Solution?

Thanks,
Randall
The administrator has disabled public write access.
 
#2389
Re:Dynamic Columns 8 Years, 1 Month ago Karma: 667
Hello,

If you want to use 'ARI Smart Content' plugins with PHP code in article, check that the plugin which execute PHP code goes before 'ARI Smart Content' plugin. For this open plugin settings page on the Joomla backend and see 'Mambot Order' setting. You can also use System - ARI Smart Content plugin for Joomla1 1.5 or ARI Smart Content Anywhere module for Joomla 1.0, they help to use 'ARI Smart Content' anywhere, not only in article. You can provide temporary credentials for your Joomla! system by email(info@ari-soft.com) and we can help you configure system.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#2393
Re:Dynamic Columns 8 Years, 1 Month ago Karma: 0
Changing the order of the plugins had no effect.

Are we talking about the same thing, I wonder?

I went to extensions->plugin manager and moved ARI Smart Content both above and below TBS, with no change in the effect. If the table is coded in the article itself, it generates the Smart Content JDataTable fine, but if the html is echoed back from a script, and mergeblocked into the article, it does not generate. It shows a regular html table, and the {arijdatatable bPaginate="true"}
{/arijdatatable}
in text before and after the table. The ARISoft plugin never actually takes effect.

For posterity, I will mention, it is Joomla 1.5, and I am not using any WYSIWYG editors, to ensure that was not the problem.

I have included a printscreen of both outcomes, to explain:
Last Edit: 2009/09/07 15:26 By rand486.
The administrator has disabled public write access.
 
#2397
Re:Dynamic Columns 8 Years, 1 Month ago Karma: 667
Hello,

We have tested 'ARI Smart Content' with TBS plugin and all work fine. Could you provide temporary access to your Joomla! system by email (info@ari-soft.com) that we can investigate this issue?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#2407
Re:Dynamic Columns 8 Years, 1 Month ago Karma: 0
Again, some aspects of TBS work, some do not.

What I am saying is that if the [u.fieldname] is hardcoded, it is not a problem. If the code is echoed onto the page like:

Code:


echo "<FORM METHOD=POST ACTION=\"index.php?option=com_content&view=article&id=24\">
<p>{arijdatatable bPaginate=\"true\"}</p>
<table border=\"0\">
<thead> 
<tr>
<th>Select</th> <th>Name</th> <th>Birthday</th>
</tr>
</thead> 
<tbody>
<tr>
<td><input type=\"checkbox\" name=\"option\" value=\" [u.contactID;block=tr] \"></FORM></td>
<td>[u.FName] [u.LName]</td>
<td>[u.bday]</td>
</tr>
</tbody>
</table>

<p>{/arijdatatable}</p>
<input name=\"Submit\" type=\"submit\" value=\"Next\" />
</form>
<p> </p>";



it does not work. A regular table is generated, with the {arijdatatable bPaginate=\"true\"} showing before it, and {/arijdatatable} showing after it.
The administrator has disabled public write access.
 
#2408
Re:Dynamic Columns 8 Years, 1 Month ago Karma: 667
Hello,

Sorry, but it seems that you ignore our previous message about temporary access to your Joomla! system that we can investigate this issue. If you can't provide access, then provide full information about issue. Which component you use for inserting PHP into article, full code of your article, screenshots of plugins settings pages which you use in article. We need this information that reproduce this issue on our test server.

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