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?

How to call ariquizanywhere plugin?
(1 viewing) (1) Guest
component
Go to bottomPage: 1
TOPIC: How to call ariquizanywhere plugin?
#52464
How to call ariquizanywhere plugin? 9 Years, 11 Months ago Karma: 0
Hello,

Basicly, i get the text content as a string which has unparsed {ariquizanywhere ...} tags.
How do i get that string parsed?
Basicly, i've tried something like:
Code:

JHtml::_('content.prepare', $contentString);

But it appears the plugin doesn't belong to content group.

Thanks,
Tomas
The administrator has disabled public write access.
 
#52466
Re:How to call ariquizanywhere plugin? 9 Years, 11 Months ago Karma: 760
Hello,

"ARI Quiz Anywhere" is a system plugin and it doesn't require to call any additional PHP code. The plugin parses plugin code automatically. Check that the plugin is enabled.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#52467
Re:How to call ariquizanywhere plugin? 9 Years, 11 Months ago Karma: 0
The plugin itself works - it's no problem. I can see it working perfectly in articles.

The problem is that i get content other sources (components) and use API which probably does not run plugins on the content.
Therefore i really need to run the plugin on the text string manually.

The scenario is:
Code:

ajax call to get the content
...
$contentString = CobaltAPI::ItemsStore->getRecord(id);
$value = json_encode($contentString);
...
send back to browser 
replace container with content string
...



The content is not displayed anywhere (just - client side) - maybe that's why plugin is not run.

Tomas
The administrator has disabled public write access.
 
#52469
Re:How to call ariquizanywhere plugin? 9 Years, 11 Months ago Karma: 760
The plugin works fine in any content (not only in articles), but if plugin code is available on server side. The plugin parses code in "onAfterRender" event handler.

You can find event handler in <joomla_directory>/plugins/system/ariquizanywhere/ariquizanywhere.php file. You can try to adapt it for using in your AJAX call.

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