Hi all,
can i redirect a user to course directly after signup. I am using Moodle 2.9 and currently the user goes to the user preference page after signup. I would like to redirect the user to a course page. Is that possible?
Thanks
I finally managed to do it after editing the URL in edit.php. i hope this the correct way. it works
Hello,
will you share the change you made in the edit.php
Thank you
I edited the edit.php in moodle/user.
// Remote users cannot be edited.
if (is_mnet_remote_user($user)) {
if (user_not_fully_set_up($user)) {
$hostwwwroot = $DB->get_field('mnet_host', 'wwwroot', array('id' => $user->mnethostid));
print_error('usernotfullysetup', 'mnet', '', $hostwwwroot);
}
redirect($CFG->wwwroot . "/user/view.php?course={$course->id}");
}
i added the URL to the redirect statement above, i will only be using moodle for assessment after signup. so it might not be convenient for different scenarios. it works for me
I want redirect the user to profile After registration.
But I don't t know the solution. Please more explain about your solution.
Hi,
please see my post above
oh i am no expert... that is as far as i knoww ... i think you need a more experienced person .
You could ensure that users are sent to their Dashboard when they Login, and then it's easy for them to get to their Profile.
I don't really understand why you would want to force people to go to their Profile page when they Login? What do you expect them to do? Directing to the Front Page or their Dashboard seems a lot more logical and useful
It's up to you but I wouldn't recommend making changes to core code. Will you remember what you did when it comes to upgrades (and will the code be the same)?
If you send someone the link to the course page they will be asked to log in and then will be sent to the course page without any code changes.