How to edit & translate course welcome mail

  • innoads
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 8 months ago - 11 years 8 months ago #1 by innoads
Hello,

how can I edit and translate the welcome mail for courses?

Thanks,
Andreas
Last edit: 11 years 8 months ago by innoads.
The topic has been locked.
More
11 years 8 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic How to edit & translate course welcome mail
That email is sent by Moodle, so you I guess you will need to modify moodle language files. I don't remember now how to do it, as I think last time I did it it was on 1.9.
The topic has been locked.
  • innoads
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #3 by innoads
Replied by innoads on topic How to edit & translate course welcome mail
Hi Antonio,

I found out that the text is actually set in the Joomdle backend. I could change it there, but I noticed another problem with that course welcome mail:

There is a link attached and that link opens a page like

mydomain.com/index.php?option=com_joomdle&view=wrapper&moodle_page_type=course&id=

and the problem is:

- If user is not logged in the Joomla site it shows the moodle login inside a wrapper instead of the joomla login

How can this be changed?
The topic has been locked.
  • innoads
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #4 by innoads
Replied by innoads on topic How to edit & translate course welcome mail
It is set under joomdle>configuration>shop>E-mail content and the placeholder for the link is COURSE_URL
The topic has been locked.
  • innoads
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #5 by innoads
Replied by innoads on topic How to edit & translate course welcome mail
Maybe it is because of the missing &Itemid= in the link?
The topic has been locked.
  • innoads
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #6 by innoads
Replied by innoads on topic How to edit & translate course welcome mail
Any help would be appreciated!
The topic has been locked.
More
11 years 7 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic How to edit & translate course welcome mail
You can set up an alternate URL for Moodle login as described here:
www.joomdle.com/wiki/Installing_Joomdle_...page_to_Joomla.21.29
The topic has been locked.
  • innoads
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #8 by innoads
Replied by innoads on topic How to edit & translate course welcome mail
I am going to try that.

I set a default item ID for Moodle links in Joomdle. That ID is not included in the link that is send in the mail. I guess with the solution you suggest above the item ID will still be missing or is it included then?
The topic has been locked.
More
11 years 7 months ago #9 by Antonio Durán
Replied by Antonio Durán on topic How to edit & translate course welcome mail
No, you are right. We should include the itemid.

Please try this: edit administrator/components/com_joomdle/helpers/shop.php, function send_confirmation_email().
After:
Code:
$url = $url.'/index.php?option=com_joomdle&view=wrapper&moodle_page_type=course&id='.$course_id;
Add:
Code:
$default_itemid = $comp_params->get( 'default_itemid' ); $url .= "&Itemid=".$default_itemid;
The topic has been locked.
  • innoads
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #10 by innoads
Replied by innoads on topic How to edit & translate course welcome mail
Thanks, it works now when the user is logged in before opening the link.

When the user is not logged in he/she is redirected to Joomla login page. After logging in however, the standard after login page opens and not the link in the mail. Is it possible that the user is directed to the link from the mail after logging in?
The topic has been locked.