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?

Using mootools in ariquiz
(1 viewing) (1) Guest
component
Go to bottomPage: 12
TOPIC: Using mootools in ariquiz
#40284
Using mootools in ariquiz 11 Years, 7 Months ago Karma: 0
Hello;

I'm trying to use mootools library with ari quiz to show a popup when a link is clicked.

I added the line
JHTML::_( 'behavior.modal' );
inside the view.html.php in \components\com_ariquiz\views\question and in the link I added the class="modal" (<a class="modal" href="/images/im1.gif">link</a>)

But it's not working

I tryed in joomla articles and it works...

Could you help me?

Regards
The administrator has disabled public write access.
 
#40287
Re:Using mootools in ariquiz 11 Years, 7 Months ago Karma: 760
Hello,

Do you want to use lightbox into questions or show a static link which will be available for all questions on frontend?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#40291
Re:Using mootools in ariquiz 11 Years, 7 Months ago Karma: 0
The link is the statement of each question. I tried to use ari lightbox (free version) without result

Regards
The administrator has disabled public write access.
 
#40298
Re:Using mootools in ariquiz 11 Years, 7 Months ago Karma: 760
Sorry, but it is not clear you use the lightbox in a question text or place a link in question.html.php template file?

PS: "ARI Sexy Lightbox Lite" is a content plugin and it works only in articles.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#40299
Re:Using mootools in ariquiz 11 Years, 7 Months ago Karma: 0
The question is how to use mootools library with ari-quiz component. To be exactly in questions and results.

What I did is add "JHTML::_( 'behavior.modal' );" on each view.html.php (in questions and in results).

In all the questions on any test there's a popup link (this is the reason for the library...). The point is to click in a image and show it bigger getting a effet similar to a fancy box. The links are like this:
<a class="modal" href="/images/big/image1.png" ><img src="/images/image1.png"></a> the "modal" class is to make that effect. I try it in articles adding the library in my index.php, and I read that If you want to use it in a component you have to add it in view.html.php (I did it in questions and and results but it doesn't works.



Regards.
The administrator has disabled public write access.
 
#40300
Re:Using mootools in ariquiz 11 Years, 7 Months ago Karma: 760
It will not work if you want to use the HTML code in question text because questions are loaded via AJAX, but code for initializing MooTools lightbox is called only on page load (questions are loaded later).

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