- Posts: 15
Image not showing in Joomla from moodle course
- Székely Zsolt
- Topic Author
- Offline
- New Member
-
Less
More
11 years 8 months ago #1
by Székely Zsolt
Image not showing in Joomla from moodle course was created by Székely Zsolt
Dear Antonio!
We using:
Joomla version: 3.3.3
Joomdle version: 0.95
Moodle version: 2.6
My problem is when I import the content placed in the label elements on a course’s front page in moodle the text and the HTML content come through, but the images are all broken in Joomla, perheps because the src values look like: src="~dem/@@PLUGINFILE@@/vocabulary.jpg".
Do you vahe any idea show I could get Joomdle to import the images, too in joomla?
Thanx.
Zsolt
We using:
Joomla version: 3.3.3
Joomdle version: 0.95
Moodle version: 2.6
My problem is when I import the content placed in the label elements on a course’s front page in moodle the text and the HTML content come through, but the images are all broken in Joomla, perheps because the src values look like: src="~dem/@@PLUGINFILE@@/vocabulary.jpg".
Do you vahe any idea show I could get Joomdle to import the images, too in joomla?
Thanx.
Zsolt
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
11 years 8 months ago #2
by Chris
Replied by Chris on topic Image not showing in Joomla from moodle course
You are importing the html from? Is the path relative to something? What is the path from Joomla's perspective ie if you do a show page source, what is the path that Joomla is trying to show?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
11 years 8 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Image not showing in Joomla from moodle course
Thanks for the bug report, I checked and can confirm the problem.
We will fix it for next release, but you can fix it now by adding a single line to moodle/auth/joomdle/auth.php, get_label() function. Before the return statment, add:
We will fix it for next release, but you can fix it now by adding a single line to moodle/auth/joomdle/auth.php, get_label() function. Before the return statment, add:
Code:
$mylabel['content'] = file_rewrite_pluginfile_urls ($mylabel['content'], 'pluginfile.php', $context->id, 'mod_label', 'intro');
Please Log in or Create an account to join the conversation.