How To / General

[Solved] User Registration Group with sync Moodle to Joomla!

  • Cedric Boscher
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago - 11 years 1 month ago #1 by Cedric Boscher
Good morning !

I just activated Joomdle option sync Moodle to Joomla, and it works.
My problem is that I'd like to add new users automatically from Moodle to Joomla! and also assign them automatically to my "Students" group (which is already set as New User Registration Group on Joomla! )

Well, it works when a new user subscribes directly on Joomla!, but when a new user subscribes on Moodle, his account is also created on Joomla! , but it's in "Registered" group, and not in "Students" group as I'd like :(.

Does any solution exist ?
Thanks :)
Last edit: 11 years 1 month ago by Antonio Durán.
The topic has been locked.
More
11 years 1 month ago #2 by Antonio Durán
Replied by Antonio Durán on topic New User Registration Group with sync Moodle to Joomla!
Thanks for the bug report, I have now fixed it for next release.

If you want to fix it right away, it is easy. Edit administrator/components/com_joomdle/helpers/users.php , function create_joomla_user ().
Change:
Code:
$user->groups[] = $system;
By:
Code:
$user->groups[] = $newUsertype;
The topic has been locked.
  • Cedric Boscher
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #3 by Cedric Boscher
Replied by Cedric Boscher on topic New User Registration Group with sync Moodle to Joomla!
Fixed it ;) It works now, thanks for your help
The topic has been locked.