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?

Change button position
(1 viewing) (1) Guest
component
Go to bottomPage: 1
TOPIC: Change button position
#56514
Change button position 9 Years, 5 Months ago Karma: 0
Haai there,

Ari-Quiz works perfect !


Only my CSS skills aren't

How can I modify the buttons to change position in /components/com_ariquiz/view/question/tmpl/default.php ?



I want to have them in the following order: 1 Back 2 Next 3 Skip (maybe all in the middle of page rather then on the left?)
Found another entrie on the forum, but cant decode/understand how/why

Also found the colours etc of the menu's etc, but not of the Next (previous save) button to change.

Thanks again!
Last Edit: 2015/12/15 19:33 By Hophop.
The administrator has disabled public write access.
 
#56518
Re:Change button position 9 Years, 5 Months ago Karma: 764
Hello,

See <joomla_directory>/components/com_ariquiz/views/question/html/default.php template file. Order of buttons can be changed in this file.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#56519
Re:Change button position 9 Years, 5 Months ago Karma: 0
I found the tmpl/default.php ? (correct?)

There I see the section: <div class="aq-button-panel">

What should i change there?

switch places with these lines?:

<a href="#" class="btn btn-primary disable-onsubmit" onclick="if (YAHOO.util.Dom.hasClass(this, 'disabled')) return false; if (ariQuizQueManager.validate()) ariQuizQueManager.savePage(); return false;"><i class="icon-pencil"></i> <?php echo JText::_('COM_ARIQUIZ_LABEL_SAVE'); ?></a>
<?php if ($quizStorage->get('CanBack')): ?>

switch place with :

<a href="#" class="btn disable-onsubmit" onclick="if (YAHOO.util.Dom.hasClass(this, 'disabled')) return false; ariQuizQueManager.prevPage(); return false;"><i class="icon-arrow-left"></i> <?php echo JText::_('COM_ARIQUIZ_LABEL_BACK'); ?></a>
<?php endif; ?>

Sorry don't understand the language.
The administrator has disabled public write access.
 
#56520
Re:Change button position 9 Years, 5 Months ago Karma: 764
Use the following code:

Code:


<?php
if ($quizStorage->get('CanBack')):
?>
<a href="#" class="btn disable-onsubmit" onclick="if (YAHOO.util.Dom.hasClass(this, 'disabled')) return false; ariQuizQueManager.prevPage(); return false;"><i class="icon-arrow-left"></i> <?php echo JText::_('COM_ARIQUIZ_LABEL_BACK'); ?></a>
<?php
endif;
?>
<a href="#" class="btn btn-primary disable-onsubmit" onclick="if (YAHOO.util.Dom.hasClass(this, 'disabled')) return false; if (ariQuizQueManager.validate()) ariQuizQueManager.savePage(); return false;"><i class="icon-pencil"></i> <?php echo JText::_('COM_ARIQUIZ_LABEL_SAVE'); ?></a>



instead of the following one:

Code:


<a href="#" class="btn btn-primary disable-onsubmit" onclick="if (YAHOO.util.Dom.hasClass(this, 'disabled')) return false; if (ariQuizQueManager.validate()) ariQuizQueManager.savePage(); return false;"><i class="icon-pencil"></i> <?php echo JText::_('COM_ARIQUIZ_LABEL_SAVE'); ?></a>
<?php
if ($quizStorage->get('CanBack')):
?>
<a href="#" class="btn disable-onsubmit" onclick="if (YAHOO.util.Dom.hasClass(this, 'disabled')) return false; ariQuizQueManager.prevPage(); return false;"><i class="icon-arrow-left"></i> <?php echo JText::_('COM_ARIQUIZ_LABEL_BACK'); ?></a>
<?php
endif;
?>



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