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


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

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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, 3 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, 3 Months ago Karma: 746
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, 3 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, 3 Months ago Karma: 746
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