Project

General

Profile

Feature #3898

after login, if the user does not have courses, go directly to catalog courses

Added by Juan Carlos Raña Trabado almost 8 years ago. Updated almost 7 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
Global / Others / Misc
Target version:
Start date:
14/09/2011
Due date:
% Done:

80%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Después de entrar en la plataforma, si el usuario no está matriculado en ningún curso, en lugar de su página de cursos se le mostrará directamente la página del catálogo de cursos. En administración de la plataforma debería ponerse un interruptor para habilitar o no esta funcionalidad.


Files

empty_course_list.png (19.8 KB) empty_course_list.png Julio Montoya, 08/08/2012 13:23
userportal.lib.php (49.3 KB) userportal.lib.php Yoselyn Castillo, 14/09/2012 00:28
welcome_to_course.tpl (692 Bytes) welcome_to_course.tpl Yoselyn Castillo, 14/09/2012 00:28
catalog-empty.gif (26.4 KB) catalog-empty.gif Yoselyn Castillo, 14/09/2012 18:21

Associated revisions

Revision 9b35d614 (diff)
Added by Julio Montoya almost 7 years ago

Adding welcome to course block see #3898

Revision 5d0587e0 (diff)
Added by Julio Montoya almost 7 years ago

Adding lang variable see #3898

Revision 22127633 (diff)
Added by Yoselyn Castillo almost 7 years ago

Should fix bug in welcome message see #3898

Revision d59c0c1f (diff)
Added by Julio Montoya almost 7 years ago

Fixing previous commit see #3898

History

#1

Updated by Yannick Warnier almost 8 years ago

I like the idea but I think it might be a bit too fast and might confuse the user.
What I suggest is to have a Chamilo companion appear and say (in OGG/HTML5 and text) to the user:

"Hello and welcome,

As you can see, your courses list is still empty. That's because you are not registered to any course yet! Go ahead and browse our course catalog HERE to register to any course you like. Once registered, you will see the course appear right here, instead of this message." and then have a big round button that says -> "Go to courses catalog"

I'm suggesting this as part as something bigger: I would like to have a "companion" help the teacher (and maybe the student) in every place we see the user has not gone before, so that he can learn faster how to use Chamilo (I'll open a task for that later on)

#2

Updated by Juan Carlos Raña Trabado almost 8 years ago

Eso último resolvería todo :-)

#3

Updated by Bas Wijnen almost 8 years ago

Sounds good! However, make sure that there are courses to sign in for. If the student can't self-subscribe to anything, tell them to wait until a teacher subscribes them (or ask a teacher to do so). And, if they have the rights, tell them that they can create a course themselves if they want to.

Also, it should be easy to get to the companion even if they have been in a place before.

#4

Updated by Yannick Warnier almost 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Yannick Warnier

Assigning to me for the creation of another task (feel free to steal the assignation from me, I'm fighting to have the right to spend time on Chamilo development :-))

#5

Updated by Yannick Warnier about 7 years ago

  • Target version set to 1.9.2
#6

Updated by Julio Montoya almost 7 years ago

  • Assignee changed from Yannick Warnier to Julio Montoya

I will just add the conditions to show the chamilito with that text, later we could add a real mascot saying that text

#7

Updated by Julio Montoya almost 7 years ago

which message we should show if the course catalog is off?

I also added the message need testing

#8

Updated by Yannick Warnier almost 7 years ago

  • Category set to Global / Others / Misc
  • Status changed from Needs more info to Assigned
  • Assignee changed from Yannick Warnier to Julio Montoya

Message to show if catalogue disabled (show NO button):

Hello %s and welcome,<br />
As you can see, your courses list is empty. That's because you are not registered to any course yet!<br/>
Please allow us a little time to subscribe you to one of our courses. If you think we forgot you, contact the portal administrators. You can usually find their contact details in the footer of this page...

The case where the course catalogue is not empty but no course can be auto-subscribed to shouldn't be too frequent, and it shouldn't be tested from user_portal.php either (because it might put useless load on the most-commonly loaded page).

#9

Updated by Julio Montoya almost 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee deleted (Julio Montoya)
  • % Done changed from 60 to 80

Variable added

#10

Updated by Julio Montoya almost 7 years ago

  • Assignee set to Yoselyn Castillo
#11

Updated by Yoselyn Castillo almost 7 years ago

  • Status changed from Needs more info to Assigned

it works fine when the course catalog has some course, but if the course catalog is empty the message doesn,t change. Checking...

#12

Updated by Yoselyn Castillo almost 7 years ago

  • File userportal.lib.php added
  • File welcome_to_course_empty.tpl added
  • Assignee changed from Yoselyn Castillo to Julio Montoya

I found the bug! and i have created the file welcome_to_course_empty.tpl for being used when catalog course is empty. it works fine. Please Upload userportallib.php and welcome_to_course_empty in template/default/layout

#13

Updated by Julio Montoya almost 7 years ago

  • Assignee changed from Julio Montoya to Yoselyn Castillo

Some comments about those changes:

1. Don't create your own queries. This code:

$sql_get_course_list = "SELECT  * FROM $main_course_table";

already exists probably in the CourseManager library if the querie doesn't exist you can create your own function there. (You must be sure that the function doesn't exists)
You don't need to do a SELECT in order to check if there are any courses you can use "SELECT COUNT FROM ... "

2. You don't need to create a new template, just assign a flag something like this:

In your PHP code

$this->tpl->assign('count_courses', $count_courses);

Then in your tpl you can do:


{% if "count_courses"  == '0' %}
// do something
{% endif %}
#14

Updated by Yoselyn Castillo almost 7 years ago

Thanks, so i am changing the code

#15

Updated by Yoselyn Castillo almost 7 years ago

  • File deleted (userportal.lib.php)
#16

Updated by Yoselyn Castillo almost 7 years ago

  • File deleted (welcome_to_course_empty.tpl)
#17

Updated by Yoselyn Castillo almost 7 years ago

Changed. These are the files now.

#19

Updated by Yoselyn Castillo almost 7 years ago

it works fine. See the attachment when catalog is empty. This is tested in my local pc with last code

Also available in: Atom PDF