Decrease
Reset
Increase

JoomlaLMS Learning Management System - Support Forum

  #1  
Old 10-11-2007, 11:04 AM
smartdesigners smartdesigners is offline
Member
 
Join Date: Feb 2010
Posts: 81
Default Delete restart button on learning path

I want to disable the restart course button at the end of the course, how can I do this, thanks
Reply With Quote
  #2  
Old 10-11-2007, 01:46 PM
den den is online now
developer
 
Join Date: Dec 2006
Posts: 2,503
Default

The source of the file joomla_lms.course_lpathstu.php, where this button is added to the menu is encoded.
If you have php skills, you should edit file includes/lms_html_tmpl.php (function 'JLMS_ShowToolbar()') to disable this button.
Reply With Quote
  #3  
Old 10-13-2007, 10:45 AM
smartdesigners smartdesigners is offline
Member
 
Join Date: Feb 2010
Posts: 81
Default

Thanks den, I have no php skills (although i would love to) can you advise on what i need to change. Thanks
Reply With Quote
  #4  
Old 10-13-2007, 04:09 PM
den den is online now
developer
 
Join Date: Dec 2006
Posts: 2,503
Default

Open the file components/com_joomla_lms/includes/lms_html_tmpl.php

and change the code near line ~15
from:
Code:
		$toolbar_thml .= "<td>";
		$btn_w = "32";$btn_h = "32";
		switch ($toolbar_btn['btn_type']) {
to:
Code:
		$toolbar_thml .= "<td>";
		if ($toolbar_btn['btn_type'] == 'restart') {
			$toolbar_thml .='&nbsp;</td>';
			break;
		}
		$btn_w = "32";$btn_h = "32";
		switch ($toolbar_btn['btn_type']) {
Reply With Quote
  #5  
Old 10-13-2007, 05:10 PM
smartdesigners smartdesigners is offline
Member
 
Join Date: Feb 2010
Posts: 81
Default

That hit the spot! Great support thank you very much for your help
Reply With Quote
  #6  
Old 07-26-2010, 03:16 AM
mscherenberg mscherenberg is offline
Junior Member
 
Join Date: Jun 2010
Posts: 3
Default Restart after Fail

If the user fails the quiz, is it possible to have the restart button in the results? I would like them to restart the learning path completely.

Where would I modify the php code to allow this?

Thank You,
Mike
Reply With Quote
  #7  
Old 07-27-2010, 12:16 PM
Helga_13 Helga_13 is offline
JoomlaLMS Support Team
 
Join Date: May 2010
Posts: 75
Default

Hope we understood you correctly, but what are you talking about is not so necessary:

If users fail a quiz and cannot proceed with the learning path then they can simple navigate to the quiz step again and the failed quiz will be automatically restarted.
There is a 'restart' button to restart entire lpath, it appears after completing the entire lpath.

If in your case failed quizzes are not restarted automatically after navigating to them for the second time please check if the number of attempts for quizzes is limited (edit the quiz and check its settings). If the number of attempts for the quiz is limited to 1 then the users cannot start quiz again after failing.
Please let us know if we didn't address your question and we will try to advise some other solution.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 05:15 PM.

RSS