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?

Terminate Button
(1 viewing) (1) Guest
component
Go to bottomPage: 1
TOPIC: Terminate Button
#56859
Terminate Button 8 Years, 9 Months ago Karma: 0
Hi,
How i need to change this code to make when user click terminate button and then system ask him: Do you like to take this quiz again and the user click No to redirect him to the home page of that specific quiz?

Code:

<a href="#" class="btn aq-button" onclick="YAHOO.ARISoft.page.pageManager.submitForm('gotopage'); return false;"><?php echo JText::_('COM_ARIQUIZ_LABEL_NO');


Right now is redirecting the user to the Category page where he can see all the quizzes

Thanks
The administrator has disabled public write access.
 
#56860
Re:Terminate Button 8 Years, 9 Months ago Karma: 760
Hello,

See "gotopage" method in <joomla_directory>/components/com_ariquiz/controllers/terminate.php file.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#56862
Re:Terminate Button 8 Years, 9 Months ago Karma: 0
Thank you.
I found this

Code:


JRoute::_('index.php?option=com_ariquiz&view=quiz&quizId=' . $quizId . ($itemId > 0 ? '&Itemid=' . $itemId : ''), false)




Can you tell if i can change the link the way i want? When they click "no" to redirect to different page? What are my options? What about if i want to redirect them to mywebsite.com/new.html

What will be the link?
Last Edit: 2016/02/03 23:51 By niki.
The administrator has disabled public write access.
 
#56864
Re:Terminate Button 8 Years, 9 Months ago Karma: 760
See "Redirect URL" parameter on "ARI Quiz -> Config" page.

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