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?

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... 4 Years, 1 Month ago Karma: 0
I did... Check my email.
thanks!
The administrator has disabled public write access.
 
#44188
Re:a Virtual Keyboard for the answers... 4 Years, 1 Month ago Karma: 667
Try now.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#44207
Re:a Virtual Keyboard for the answers... 4 Years, 1 Month 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/05 19:30 By 191simone.
The administrator has disabled public write access.
 
Go to topPage: 12