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?

Virtual Keyboard for free text question [Solved]
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 12
TOPIC: Virtual Keyboard for free text question [Solved]
#44175
Re:a Virtual Keyboard for the answers... 10 Years, 7 Months ago Karma: 0
I did... Check my email.
thanks!
The administrator has disabled public write access.
 
#44188
Re:a Virtual Keyboard for the answers... 10 Years, 7 Months ago Karma: 747
Try now.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#44207
Re:a Virtual Keyboard for the answers... 10 Years, 7 Months ago Karma: 0
it work very fine!!!

So I found your changes... I post here for anyone need it.
Check if it's all right..


Find this file:
site-name/components/com_ariquizlite/frontend_pages/question.php

..and find this code:
class questionAriPage extends AriUserQuizPageBase
{
function execute()
{
$this->_loadQuestion();


and modify as follow (add text):
class questionAriPage extends AriUserQuizPageBase
{
function execute()
{
$doc = JFactory::getDocument();

$keyboardUri = JURI::root(true) . '/components/com_ariquizlite/assets/keyboard/';

$doc->addStyleSheet($keyboardUri . 'keyboard.css');
$doc->addScript($keyboardUri . 'keyboard.js');


$this->_loadQuestion();


Upload these 3 files here:
site-name/components/com_ariquizlite/assets/keyboard/
keyboard.js
keyboard.css
keyboard.png


Now in order to enable the keyboard on the text area of the free-text-question, modify this file:
site-name/components/com_ariquizlite/view/questions/freetextquestion.html.php

original:
<?php defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.'); ?> <input type="text" id="tbxAnswer" name="tbxAnswer" class="ariQuizFreeText" /><br /> <script type="text/javascript"> aris.validators.validatorManager.addValidator( new aris.validators.requiredValidator('tbxAnswer', {errorMessage : '<?php AriQuizWebHelper::displayResValue('Validator.QuestionEmptyAnswer'); ?>'})); </script>


modify as follow:
<?php defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.'); ?> <input type="text" id="tbxAnswer" name="tbxAnswer" class="keyboardInput ariQuizFreeText" /><br /> <script type="text/javascript"> aris.validators.validatorManager.addValidator( new aris.validators.requiredValidator('tbxAnswer', {errorMessage : '<?php AriQuizWebHelper::displayResValue('Validator.QuestionEmptyAnswer'); ?>'})); </script>

I think that's all.

Thank you so much!
Great support!
Last Edit: 2013/09/06 01:30 By 191simone.
The administrator has disabled public write access.
 
Go to topPage: 12