Pictures in Course Maretial contents?

Pictures in Course Maretial contents?

by Mike Costa -
Number of replies: 4

Hi..

I have spent the last couple of days trying to figure out how to put an
image in Moodle.  I have my "add a resource" put on HTML programming and
have uploaded a jpg file into my course.  I have written the following code:

<img src="http://moodle.polytechnic.edu.na/mod/resource/view.php?id=363">  by
opening the file and copying the URL, but I can't get it to come up.

Any ideas?

Average of ratings: -
In reply to Mike Costa

Re: Pictures in Course Maretial contents?

by Tom Murdock -

Are you on a Mac and using Safari? I'm guessing that your browser isn't using the Moodle HTML editor which makes placing images REALLY easy. If this IS your situation, you might want to download the excellent (and free FIREFOX) browser which lets you use the HTML editor... You could use IE, too, but who wants to? wink.

If you want to code HTML by hand (and not use the editor), your best bet is to go to uploaded file list, hover over the jpg's name, and copy its moodle link. Uploaded files look like this: /moodle/file.php/4/bigfish.jpg. Once you have the real link name, you can use the img src html code to paste it into various places in Moodle.

Good luck,

Tom


p.s. If I've guessed wrong on the OS and browser, you might check the site settings and the user settings to ensure that you've made the HTML editor available to you.

In reply to Mike Costa

Re: Pictures in Course Maretial contents?

by Bryan Williams -

Mike,

Image resources are stored in Moodle within the moodledata folder you set up during installation. Examining this directory reveals folders named 1, 2, 3 etc., with a group, sessions, temp and user folder.  The numbered folders correspond with a course number, starting with the site homepage designated as course 1. When you upload an image or say a backup resource from within the "Files" block area on the site homepage, it will be located in folder 1. When you upload using the Files feature within a course (Administration block), it will be located in that courses folder in moodledata. This is typically how images are stored, although you could place them anywhere.  If you do store them in this fashion, they will appear in the HTML editor when you place an image.  If the HTML editor does not appear, follow Tom's advice on browsers.

Hope this helps,
Bryan 

In reply to Mike Costa

Re: Pictures in Course Maretial contents?

by Paul Nijbakker -

Hello Mike,

If you want to add a picture as a resource (i.e. not visible until the link is clicked), simply add the picture to your course Files folder. Add a resource and select "uploaded file" (not HTML), then choose the picture file.

If you want the picture to appear on the "front page" of the course. Add a Label and click on "Insert Image" in the HTML editor's tool bar and then link to the file in the Files folder. This of course only works if you have the proper browser.

Rgrds,

Paul.

In reply to Paul Nijbakker

Re: Pictures in Course Maretial contents?

by Mike Costa -
@ all: thanks so much! The Moodle-Community is just awesome!