Podcasting: New activity module Podcast

Podcasting: New activity module Podcast

by raphael Apard -
Number of replies: 171
Hy, i have developped a Podcast activity module for module.
Only in french from now, but if you are interested, i can make a translation in english.

You can download it here
Average of ratings: -
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Peter Easton -
I'm having a little problem with the podcast.
Everything works great untill you try to subscribe to to the podcast.
Something seems to be wrong with the paths that are created in the rss#.xml file.

http://www.pratt.edu/moodle/mod/podcast/media///Pratt_Video/PrattVideo.mp4

As you can see the paths have /// when it should have folder names:


any ideas where I can fix this?
thanks
Pete
In reply to Peter Easton

Re: Podcasting: New activity module Podcast

by raphael Apard -
Do you have fix your problem, i don't know what happenning but if it s just in the RSS file, the function who write in the rss file is in the file "lib.php" function "make_xml".

Try with this file.

Say me if it works.

Raphael

In reply to Peter Easton

Re: Podcasting: New activity module Podcast

by terence armentano -
Hello,
This is an awesome plugin, but I am having the exact same problem as Peter. I am getting the /// instead of the correct path. I tried the new lib.php file but it still didn't work. Has anyone figured this out yet. I am using Moodle 1.7+

Thanks for any help
Terence
In reply to terence armentano

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Hello,

I've just joined this thread, installed the Podcast module and it was so easy...but I'm getting the /// instead of the correct path as well. I can listen to my audio from within my Moodle install but when I try to add the rss to iTunes I get an error with a path that has the three ///

Any help will be appreciated.

Jason
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Andrea Rappa -
Sorry but i have same problem (///) someone can help me?
i think that the problem is make_xml but i don't know like resolving it. thx
In reply to Andrea Rappa

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Hello everyone,

I see some very nice replies here but none seem to address the /// path issue (unless I don't know what I'm reading which is possible smile )

I'm using Moodle 1.8 and the Podcast mod works fine from within Moodle but when I try to access via iTunes etc. I get an error with a path that has three slashes in it /// when I check the location of the actual file that I am able to listen to from within Moodle, that is not the correct path.

Seems like there is probably an easy fix for this but unfortunately I don't even know where to start sad

Jason

P.S. Should I download the newest version posted here in this thread? Or is that a fix for a different issue?
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Well I downloaded the most recent updated Beta version posted here in this thread and tried using it but now instead of the /// path error I get the following error:

"Could not find or create a directory var/www/mod/podcast/media/1

The site administrator needs to fix the file permissions"

when I try to upload an audio file (before I can even select the file)

Since this is within my Moodle root shouldn't Moodle already have 'permission' to create directories?

Any help will be greatly appreciated smile

Jason
In reply to Jason Hollowell

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Peter Easton

Re: Podcasting: New activity module Podcast

by Deb Greaney -
Have installed the module on 1.7.  Created and uploaded mp3 file, but when Quicktime opens to play, just get a "?" on the Q.  What am I doing wrong this time? smile  The file plays in iTunes and Audacity.  Thanks.
In reply to Peter Easton

Re: New activity module Podcast in 1.91?

by E. L. Cooper -

Is this module supported in 1.91? I installed it but when I try to add a pocast and upload the file it just sits there and does not upload.

WHen I turn on error reporting I get

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/moodle/public_html/moodle/mod/podcast/config.html on line 3

Warning: require_once(http://www.mysite.org/moodle/mod/podcast/lib.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/moodle/public_html/moodle/mod/podcast/config.html on line 3

Fatal error: require_once() [function.require]: Failed opening required 'http://www.mysite.org/moodle/mod/podcast/lib.php' (include_path='/home/moodle/public_html/moodle/lib/pear:.:/usr/lib/php:/usr/local/lib/php') in /home/moodle/public_html/moodle/mod/podcast/config.html on

I may have fixed IT guy was working in root when I was working on podcast mod.

In reply to E. L. Cooper

Re: New activity module Podcast in 1.91?

by E. L. Cooper -

even though file appears it will not play error reporting says;

Notice: Undefined property: stdClass::$action in /home/moodle/public_html/moodle/mod/podcast/view.php on line 72

Notice: Undefined property: stdClass::$action in /home/moodle/public_html/moodle/mod/podcast/view.php on line 126

Notice: Undefined variable: currenttab in /home/moodle/public_html/moodle/mod/podcast/view.php on line 207

when I go to upload it says the same thing

at add an item it says

/home/moodle/public_html/moodle/mod/podcast/lib.php on line 124

Notice: Trying to get property of non-object in /home/moodle/public_html/moodle/mod/podcast/lib.php

Notice: Undefined property: stdClass::$podcast_extensions in /home/moodle/public_html/moodle/mod/podcast/lib.php on line 444

then after adding an item from the class files folder it says:

Choose a type file :
Notice: Undefined property: stdClass::$podcast_extensions in /home/moodle/public_html/moodle/mod/podcast/lib.php on line 444
avi, mov, movie, m3u, mp3, mp4, m4v, mpeg, mpe, mpg, m4a, qt, wmv, asf


Notice: Undefined variable: currenttab in /home/moodle/public_html/moodle/mod/podcast/view.php on line 207

 

In reply to E. L. Cooper

Re: New activity module Podcast in 1.91?

by E. L. Cooper -
Other system activity must have flawed my install. Deleted in full reinstalled and it is runing like a clock in 1.91.
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers
I am interested in an English version. Please do so. This looks very interesting.

-Chris
In reply to Chris Kenniburg

Re: Podcasting: New activity module Podcast

by raphael Apard -
Normally, i have added the english version in my podcast activity.
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Mark Little -
Hi Raphael,

Is there anyway we can move the video size out of the admin area so that we can change the size per video.

Thanks
Mark


In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Jez H -
Hi Raphael,

How do you think your module compares to ipodcast-v37b3?

I will be trying both of these modules myself but would be interested to hear your thoughts on the matter.

Jeremy
In reply to Jez H

Re: Podcasting: New activity module Podcast

by Julian Ridden -
I have now used both and must say i prefer this version. Mainly becasue i find this one alot easier to use and has a much cleaner interface.
In reply to Julian Ridden

Re: Podcasting: New activity module Podcast

by Jez H -
Personal preference I suppose, I actually thought the other plug in had a cleaner interface, though that was from a users perspective, the admin side is simpler, its nice to have a choice though!
In reply to raphael Apard

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Podcasting: New activity module Podcast

by raphael Apard -
Hi,

Which file you want change ?
What you want to do ?

Maybe i can help you

Raphael
In reply to raphael Apard

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Podcasting: New activity module Podcast

by Robin Trangmar -
Hello Henry
Looking at my files for 1.6.3 and 1.6.5
/files/index.php looks like this
However I'm not running this extension so use with caution!
Hope this helps ...blush
>>>>

<?php // $Id: index.php,v 1.86.4.1 2007/03/25 14:49:07 moodler Exp $
// Manage all uploaded files in a course file area
// All the Moodle-specific stuff is in this top section
// Configuration and access control occurs here.
// Must define: USER, basedir, baseweb, html_header and html_footer
// USER is a persistent variable using sessions
require('../config.php');
require($CFG->libdir.'/filelib.php');
$id = required_param('id', PARAM_INT);
$file = optional_param('file', '', PARAM_PATH);
$wdir = optional_param('wdir', '', PARAM_PATH);
$action = optional_param('action', '', PARAM_ACTION);
$name = optional_param('name', '', PARAM_FILE);
$oldname = optional_param('oldname', '', PARAM_FILE);
$choose = optional_param('choose', '', PARAM_FILE); //in fact it is always 'formname.inputname'
$userfile= optional_param('userfile','',PARAM_FILE);
$save = optional_param('save', 0, PARAM_BOOL);
$text = optional_param('text', '', PARAM_RAW);
$confirm = optional_param('confirm', 0, PARAM_BOOL);

if ($choose) {
if (count(explode('.', $choose)) != 2) {
error('Incorrect format for choose parameter');
}
}


if (! $course = get_record("course", "id", $id) ) {
error("That's an invalid course id");
}

require_login($course->id);

if (! isteacheredit($course->id) ) {
error("You need to be a teacher with editing privileges");
}

function html_footer() {
global $course, $choose;

echo '</td></tr></table>';

print_footer($course);
}

function html_header($course, $wdir, $formfield=""){
*51* // global $CFG, $ME, $choose;

if (! $site = get_site()) {
error("Invalid site!");
}

if ($course->id == $site->id) {
$strfiles = get_string("sitefiles");
} else {
$strfiles = get_string("files");
}
In reply to Deleted user

Re: Podcasting: New activity module Podcast

by raphael Apard -
Sorry for my confusion.

In the file files/index.php :

Comment the line
require_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $course->id));

In the first part of the file.

Maybe you can replace by :
if (! isteacheredit($course->id) ) {
error("You need to be a teacher with editing privileges");
}

In reply to raphael Apard

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to raphael Apard

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Podcasting: New activity module Podcast

by Julian Ridden -

The biggest reason (I assume) for not using the moodledata folder is to make the podcast files globally available outside of moodle.

Files in moodledata are locked down by moodle and are not available unles logged in

In reply to Deleted user

Re: Podcasting: New activity module Podcast

by raphael Apard -
Yes, the Podcasts will be stored in that folder because in moodledata, itunes or other podcast reader can access to files in moodledata (file.php?file=namefile don't work).
So you need change permissions of media-folder and publication-folder.

But i search a way to fix it .

Raphael
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Stephen Ogden -
Hi Raphael

I don't think a user needs to be logged in to access discussion rss feeds, and they use file.php (e.g. http://blah.blah/..stuff../file.php/..blah../rss.xml). I deduce therefore that it should be possible for your podcast activity to store files in moodledata and use file.php or a similar mechanism to explose all the relevent files to 'the web' (podcast readers etc).

Unfortunately this sort of change has been identified as a 'requirement' by my server-side friends before this activity can be installed on our institution's Moodle, because (1) the moodledata folder is the right way to do things, and (2) because of the current design the podcast file aren't being backed up with the rest of the course.

I do want our e-learning developers to make the required alteration, I don't know if it will be considered a good use of their time, and obviouslly it's a lot easier (for me, so selfish of me!!) if you the author of the activity made the change big grin.

To change tack slightly, myself and a colleague have made a few tweaks (very minor) to the latest version of your activity to (in our opinion) improve it. I am happy to communicate these changes back to your for you to take a look at if you let me know how best to do that (I'm new here, so I hope I can get away with not knowing the right way to do things).

otherwise ...

great activity, I really like it, thank you very much for your hard work!
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by raphael Apard -
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Mark Little -
Hi,

Is there anyway we can change the name of the Activity to something like 'Simple podcast' as we already have ipodcast installed and I want to try this one as well.

Thanks
In reply to Mark Little

Re: Podcasting: New activity module Podcast

by Julian Ridden -
This is simple to do. Just open up the lang file in a text editor and change the 'modulename' variable
In reply to raphael Apard

回复: Re: New activity module Podcast

by Joanna Tsai -

I was installing it on the 1.8, there was always one notice pop out that"/home/cherrych/public_html/mod/__MACOSX/version.php is not readable - check permissions" after I do everything according to the instruction, and click the "notification". Then I opened the version.php,found there was one sentence in French, so I modified it and uploaded, activate the "Notification", then it said O.K., but then changed to the admin.php page or main page, the whole page is blank except the title, even after I deleted it right, this status keeps on, what should I do now, reinstall the moodle?

It will be a horrible work to reload the moodle, oh, Jesus, God save me!

In reply to Joanna Tsai

Re: 回复: Re: New activity module Podcast

by Julian Ridden -

Ahhh, this is easy.

There is not meant to be a _MACOSX folder. It is generated when OSX users create archives.

just delete the _MACOSX folder from your moodle. It is not needed and does nothing. Should put things back to normal

In reply to Julian Ridden

回复: Re: 回复: Re: New activity module Podcast

by Joanna Tsai -
Hi, Julian, Thanks a lot for your help, I reinstalled moodle and upload this podcast files without _MACOSX folder, but when I activated notification, page showed module is set up correctly but on the bottom of the page , there was not a "continue" button to make you forward or back to admin page, then I entered the address blank with the admin index.php, it went to the main admin page, but the same situation appears, just website title,login, language convert, the below is still nothing.
In reply to Joanna Tsai

Vast: 回复: Re: 回复: Re: New activity module Podcast

by Juha Kinanen -
This is problem with version 1.8 and third part extensions. Scheduler mod caused same problem in my moodle.

Have someone this podcast mod running well in Moodle version 1.8?
In reply to Juha Kinanen

Re: Vast: 回复: Re: 回复: Re: New activity module Podcast

by Julian Ridden -
Yup,

Mine is running quite happily in 1.8

Julian
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Julian Ridden -

I have one piece of feedback. I love this module so far. Simple, clean and easy to use.

I experimented today with adding a mov file and in iTunes it played perfectly (woohoo, video podcasts ahoy) but it did not display the file inside moodle.

I see you got the media filter integrated to play mp3 files. Could this be extended to video media as well?

Julian

In reply to Julian Ridden

Re: Podcasting: New activity module Podcast

by Mark Little -
Hi,

Some of settings in the language file for English are missing. I have changed some of them but I can't work all of them out.

podcast_directory :
writable_directory_publication
writable_directory_media
Keywords(seprated by commas) :
extension_empty


setextensions
Size of video :
Width: px Height: px

any more updates, thanks...
In reply to Mark Little

Re: Podcasting: New activity module Podcast

by raphael Apard -
Ok, i will check that when i have 5 min,
sorry that

Raphael
In reply to Julian Ridden

Re: Podcasting: New activity module Podcast

by raphael Apard -
Moodle 1.8 have a flash player for video ?
In this case, i can make modification.

Raphael
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Julian Ridden -
well yes and no.

It does have a flash player for flv video. Otherwise it uses the standard embeds needed for mov, wmv, avi, etc.

This is typically done by the media filter
In reply to raphael Apard

Problems with loading Podcast file

by Andries du Plessis -

Hi,

Thank you for this module... Much appreciated.

When I go to Browse after adding a new podcast, I get this error message


Fatal error: Call to undefined function require_capability() in C:\AppServ\www\moodle\mod\podcast\files\index.php on line 38

Thanx

A

In reply to Andries du Plessis

Re: Problems with loading Podcast file

by raphael Apard -
You use Moodle 1.6 ?
In this case, you have to delete this line.

Raphael
In reply to raphael Apard

Re: New activity module Podcast - installation problem

by Alick Brown -
Can anyone help with this problem when I try to install Podcast:

podcast


(mysql): CREATE TABLE mdl_podcast ( `id` int(10) unsigned NOT NULL auto_increment, `course` int(10) unsigned NOT NULL default '0', `userid` int(10) unsigned NOT NULL default '0', `name` varchar(255) NOT NULL default '', `author` varchar(255) NULL default '', `intro` text NULL default '', `owner` varchar(255) NULL default '', `owner_email` varchar(255) NULL default '', `copyright` varchar(255) NULL default '', `lang` varchar(2) NULL default '', `pubdate` varchar(255) NULL default '', `image_url` varchar(255) NULL default '', `image_img` varchar(255) NULL default '', `category` varchar(255) NULL default '', `timemodified` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`)) COMMENT='Podcast activity'
1101: BLOB/TEXT column 'intro' can't have a default value
 
 
 

 


(mysql): CREATE TABLE mdl_podcast_structure ( `id` int(10) unsigned NOT NULL auto_increment, `id_podcast` int(10) NOT NULL, `title` varchar(255) NULL default '', `lien` varchar(255) NULL default '', `intro` text NULL default '', `pubdate` varchar(255) NULL default '', `date_html` varchar(255) NULL default '', `duration` varchar(10) NULL default '', `length` int(10) NULL, PRIMARY KEY (`id`)) COMMENT='Podcast items'
1101: BLOB/TEXT column 'intro' can't have a default value
 
 
 

 

In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Fabricio Boechat -
Dear friends,
 I tried to install podcast in mine moodle and I did not obtain.
 They can help me with a tutorial one? my version is 1.7.1+ (brasilian Portuguese)
but, it also can be English to
Sorry for this text, it is a automatic translator.
thanks for all!
In reply to Fabricio Boechat

Re: Podcasting: New activity module Podcast

by Jez H -
What was the problem, can you explain what you dot when trying to install?
In reply to Fabricio Boechat

Re: Podcasting: New activity module Podcast

by raphael Apard -
1. Copy podcast folder in moodle-folder/mod/
2. Go to administration and click to Notification.
3. Go in a course and you will see in the list of activities the podcast.

If is not workink, tell me more about yours problems

Raphael
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by raphael Apard -
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Mayrton Bahia -

Hi! I have a problem with new beta version (beta2). The module install was ok but I have this message:

Configuration
Verification of permissions on folders 'media' and 'publication' : Permissions of folder 'publication' are not OK, set permissions to 755.
Permissions of folder 'media' are OK.
Limit extensions :
(Empty for no restriction)

Separated by commas (Example: mov, m4v, mp3)

Please! Were is the 'publication' folder? Thanks. Mayrton Bahia

In reply to Mayrton Bahia

Re: Podcasting: New activity module Podcast

by raphael Apard -
Oups, sorry for that !

Now, it ok, you can redownload it
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Mayrton Bahia -
Thank you Raphael! The podcast module is working perfectly now. It's a very nice module. Mayrton Bahia
In reply to Mayrton Bahia

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
I'm jealous smile It's not working perfectly for me (or Dietmar either) but I'm not sure why....?

If anyone (not just Raphael) has any idea how to fix the permission error problem, I would be very thankful for your input smile

Jason
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Mayrton Bahia -
Try download activity module podcast from this link http://code.google.com/p/moodle-podcast/downloads/list . The module from this link worked for me. Permission error problem was fixed.
In reply to Mayrton Bahia

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Mayrton,

WONDERFUL!!! FABULOUS big grin AMAZING wide eyes Thank you VERY much. I've been really really wanting to get this working for the past ten days or so and haven't had any luck.

I checked the permissions on both the "media" folder and "publications" folder but they were both correct.

Then I saw your post about downloading from a different link so I tried it and BAM!!! It works. I don't know what what was wrong with the first one (the one that I downloaded from the link found in the 'Modules and Plugins' link on the front page of Moodle) but it wasn't working.

Yeah!!! I'm ready to get our Podcasts going.

Thanks.

Jason
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Mark Little -
Hi,

Everything works ok until you try to browse and upload a file to the module.

Is it because we are using Moodle 1.6 and not 1.7?

We get this error

Fatal error: Call to undefined function require_capability() in d:\website\www\mod\podcast\files\index.php on line 36

Thanks
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Raphael,

I'm sorry to be a pest but do you have any information on the permissions error that has been brought up here multiple times in this thread? I had installed the first version of your mod and it looked great and worked from within Moodle but I got the path error with three slashes /// so I couldn't view it through iTunes.

Then I updated to the newer version and now I can't even add a podcast because I get a permissions error. I've searched and tried various things but I can't manage to figure it out and I would REALLY like to use this mod.

Your assistance will truly be appreciated.

Jason
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Alick Brown -
I have the Podcast module working, but...

1. In Admin >>Modules>> Podcast [admin/module.php?module=podcast]
No settings appear when I click 'settings':
podcast_error.gif
Just blank under this

2. When I add a podcast it appears in the course and will play - but I get this error:
podcast-error.jpg

I have got RSS feeds enabled in Admin.

Can anyone advise?

Can anyone tell me (spot the podcast novice) - how does the podcast get published so that students can take it as a feed that updates?

[my podcasts are here - top topic:
https://vle.oakham.rutland.sch.uk/course/view.php?id=20]

Many thanks
Alick
In reply to Alick Brown

Re: Podcasting: New activity module Podcast

by Rasul Shishehbor -
In he mod/podcast/ folder there's two folders one named publications, one named media? (I think it's media) Make sure your webserver is the owner of these folders (has write permission) should fix your permissions issue? I think.
In reply to Rasul Shishehbor

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Rasul,

Thanks a million! smile I checked the "media" folder permissions (755 right?) but not the "publications" folder. I'll give that a try later today and keep my fingers crossed.

Thanks again.

Jason
In reply to Alick Brown

Re: Podcasting: New activity module Podcast

by raphael Apard -
Hello

I think the file publication/id_course/rss.xml is not created,
check if permissions are to 0755 for folders media and publication.

For the settings, i don't know ... sorry.

Good luck

Raphael

In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Hello,

Now that I got the Podcast working (Yeah! smile) I'm wondering what I need to do to change the "Toulouse University" logo to my own? I don't have anything against Toulouse, actually I visited Toulouse a couple of years ago to see the Tour de France smile

Just wanted to put the logo of my university there if possible.

I see the image file in the Podcast folder and if I open it up it says "Put your logo here". If I replace that image will the replaced image show up when I create a new podcast or is there a little more I need to do.

Thanks in advance to anyone who can steer me in the correct direction.

Jason
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Julian Ridden -
It is as simple as you hoped.

Just replace the img.jpg with one of your own and off you go.

I would recommend keeping the same dimensions however.
In reply to Julian Ridden

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Julian,

Thanks. I should have figured as much. After getting it all working, and after posting my last post, I cleared my cache on my browser and refreshed and now get the "Place your image here" message instead of the Toulouse University image. Not sure exactly what took place there.....I guess the latest version got rid of the old logo and I just hadn't cleared my cache yet....?

Anyway, I'm headed in the right direction.

Thanks again smile

Jason

P.S. Loving your theme (clouds)! Having a very small problem with it but I'll go over to that discussion thread and see if I can figure it out there. wink
In reply to Alick Brown

Re: Podcasting: New activity module Podcast

by Juan M Torres -
I was having an identical error : "XML update NOT OK" and no settings...

So I'll just to write out the solution that worked out for me:

1) Change the permissions for the following directories within MOODLE_ROOT/mod/podcast/
media from 755 to 777
publication from 755 to 777
2) Go to Edit Items and re-save your Item
you should get the

Podcast Updated

XML update OK

message


Hope these helps!

In reply to Juan M Torres

Re: Podcasting: New activity module Podcast

by Marc Hermon -
Thanks that worked to get the (update NOT OK) to go away and the rss links to show up but...I am still having problems that it seems a lot of other people are having and that is that there are no administrative settings at the site level. Aren't there supposed to be?

Also, if I use this to podcast class lectures everyday, will this page eventually really bog down due to how many movies I put on there?
In reply to Marc Hermon

Re: Podcasting: New activity module Podcast

by Eleanor Ramsay -
Also looking at this module. Seems like it could be great.

Not getting any Admin Settings, just empty grey box.

Can upload podcasts but they do not play. Player graphic is there.

Moodle 1.9.7

Is it compatible?
In reply to Alick Brown

Re: Podcasting: New activity module Podcast

by Sharmilee T -
Hi Alick,

This has been years but I have run into the same problem. Was wondering if you got this working?
In reply to raphael Apard

Italian translation

by Carlo Gandolfi -
Hi,
here is Italian translation too (UTF-8),

Thanks for you mod.

Carlo.

P.S. I think that would be great having wysiwyg editor on "Description" field?
In reply to Carlo Gandolfi

Re: Italian translation

by raphael Apard -
Hi,

Thank you for this translation.
I have a problem to put wysiwyg in the description field, but if i find a solution, i will update it.

Have a good day.

Raphael
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Felipe Casaburi Ferreira -

Hi

I have installed the postcast "módulo" in my Moodle, 1.8 version. But when I uppeloaded an MP3 file, this message showed up:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/restricted/home/eadconsultoria:/tmp:/usr/share/pear) in /home/restricted/home/eadconsultoria/public_html/moodle/mod/podcast/files/uploadlib.php on line 323

Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/restricted/home/eadconsultoria:/tmp:/usr/share/pear) in /home/restricted/home/eadconsultoria/public_html/moodle/mod/podcast/files/uploadlib.php on line 324

ERROR: Could not find or create a directory (/)

Then I will put the message with the error.

Thanks

In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Eduardo Aspe -
Thanks a lot for this awesome module. i just have a lil trouble, the icon.gif its not showing on the activity list nor the course, but then again the rest its working fine.. as a tip for those having problems with the install, try doing it with the server in maintenance mode.
In reply to Eduardo Aspe

Re: Podcasting: New activity module Podcast

by Eduardo Aspe -
(Thanks a lot for this awesome module. i just have a lil trouble, the icon.gif its not showing on the activity list nor the course, but then again the rest its working fine.. as a tip for those having problems with the install, try doing it with the server in maintenance mode.)

Just to update. the problem was: there was no podcast dir on my template folder. i justed added the folder and icon.gif to templates/actualtemplate/pix/mod/podcast/icon.gif.

Maybe i just forgot to read a line of the instructions.


In reply to Eduardo Aspe

Re: Podcasting: New activity module Podcast

by Julian Ridden -
the issue there is that your theme has enabled the custompix function. This means that instead of using a default icon it looks to your themes folder for it instead.

If you leave custompix on, then each time you install a module you will need to also copy its icon into your theme as you just did.

Julian
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Warren Gowen -

Has anybody got this working with mssql

Tried to modify database, but "/var/www/html/markmoodle/mod/podcast/db/mssql_n.sql" doesn't exist!

In reply to Warren Gowen

Re: Podcasting: New activity module Podcast

by Andrew Atkinson -
Hi Warren,

I needed to create these two files in the mod/podcast/db directory to get this to work on MSSQL. (See attached). Then hit your moodle/admin/ url as per normal to install.

Cheers,
Andrew
In reply to raphael Apard

Installation Problems

by Guido Hornig -
Picture of Plugin developers
After doing the normal install and give 755 (I tried 777 also) to media directory and to the publication directory.
I got no admin interface and I can not upload media.

What can I do to see the admin interface?

Where are the paths for upload dir set? I guess in the admin interface.
podcast tried to ubload to the upper root of the server ( and this looks very much like "path not set")

If I get this running, I will post my german lang file immidiately.

greetings from Munich
In reply to Guido Hornig

Re: Installation Problems

by raphael Apard -
Hello

What is your Moodle version ?
Normaly, if you can edit the course, you can access to the admin part,
it's just a tab "Add item".

Have a good day

Raphael
In reply to raphael Apard

SOLVED Re: Installation Problems

by Guido Hornig -
Picture of Plugin developers
merci

I solved it: I used .htacess to prevent visits during the testing period.
podcast was the first module, that made trouble.

After I removed the access controll via .htaccess, podcast is working normal.
Now I can use the admin interface.

But there is no chance to chance pathes.

I still get this error, when I upload:

ERROR: Could not find or create a directory (/is/)

I red most of the forum but they all have other problems.
the /is/ is part of the root-path, but only the first 4 char.
In reply to Guido Hornig

NOT SOLVED Re: Installation Problems

by Guido Hornig -
Picture of Plugin developers
I switched on the debug mode and got these messages, which I can not understand 100%, but it seems to be a declaration problem.

I use PHP 5.2.3, and there changed some with the global vars - I was told.

Notice: Undefined property: stdClass::$action in /is/htdocs/......./moodle/mod/podcast/view.php on line 68

Notice: Undefined property: stdClass::$action in /is/htdocs/......./moodle/mod/podcast/view.php on line 122

Notice: Undefined variable: currenttab in /is/htdocs/......./moodle/mod/podcast/view.php on line 203

an when I tried to add some :
Notice: Undefined variable: item in /is/htdocs/..../moodle/mod/podcast/lib.php on line 98

Notice: Trying to get property of non-object in /is/htdocs/..../moodle/mod/podcast/lib.php on line 98

and while uploading:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/is) is not within the allowed path(s): (/tmp:/bin:/usr:/is/htdocs/....) in /is/htdocs/..../moodle/mod/podcast/files/uploadlib.php on line 323

Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File(/is) is not within the allowed path(s): (/tmp:/bin:/usr:/is/htdocs/....) in /is/htdocs/.../moodle/mod/podcast/files/uploadlib.php on line 324
ERROR: Could not find or create a directory (/is/)

and in the error log I found:

[Thu Jun 14 17:57:02 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/course/view.php?id=7 [Thu Jun 14 17:57:03 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/course/mod.php?update=43&sesskey=OkqH2GDQP3&sr=1 [Thu Jun 14 17:57:13 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/course/mod.php?update=43&sesskey=OkqH2GDQP3&sr=1 [Thu Jun 14 17:57:13 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/course/mod.php?update=43&sesskey=OkqH2GDQP3&sr=1 [Thu Jun 14 17:59:25 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/mod/podcast/view.php?id=43 [Thu Jun 14 17:59:28 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/mod/podcast/view.php?id=43&tab=add [Thu Jun 14 18:00:57 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/mod/podcast/view.php?id=43&tab=add [Thu Jun 14 18:01:00 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/mod/podcast/files/index.php?id=7&pod=1&choose=form.lien [Thu Jun 14 18:01:15 2007] [error] [client 82.141.49.206] ALERT - script tried to increase memory_limit to 100663296 bytes which is above the allowed value (attacker '82.141.49.206', file '/is/htdocs/***/moodle/lib/setuplib.php', line 65), referer: http://www.theater-interaktiv.net/UTILISE/moodle/mod/podcast/files/index.php?choose=form.lien&id=7&pod=1&wdir=%2F&action=upload 
Does this mean, the funktion tried do get 100 MB memory?


In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by laichai sia -
I uploaded one of Bush's speech but he sounded like chipmunks when I click on the play button. Is the problem due to the MP3 file, the local player (browser) or the Podcast module?
In reply to laichai sia

Re: Podcasting: New activity module Podcast

by Jonathan Konrad -
Did anyone find out more about this "chipmunk" sound? I have been using this podcast module for my classes and testing it with Firefox. All is good on my 1.9.2 Moodle installation.

However, today the students asked why I wanted to sound like a chipmunk. Confused I watched as a student navigated to the podcast and played the media using Internet Explorer 7. Sure enough, I sound like a chipmunk.

The problem is not in the mp3 file since it plays correctly before uploading. It also plays correctly in Firefox 2.x or 3.x. It also plays correctly if subscribed to with iTunes and then played back on a computer or an mp3 device. So ...

Why is it playing back at a faster rate when played in Internet Explorer?

Please help, students are forced to use IE within our school division so I can not tell them to "just use Firefox".
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Juan M Torres -
Great Module!! Though I have a suggestion , why not put the files or the media directory inside the course files? I think It will be easier to organize and back up courses with the media content.
In reply to Juan M Torres

Re: Podcasting: New activity module Podcast

by raphael Apard -
Thank, I now but the course files are in the directory Moodledata, and it not accessible like the directory Moodle.
In reply to raphael Apard

Re: unable to install in 1.8

by Anil Sharma -
Hi !

I am quite familiar with the process of installing modules in Moodle, but i'm unable to install this podcast module. After copying all the files in the mod directory, when i click on notifications, all i get is an empty page with these characters "  " , and the module doesn't appear in the activity list.

Any ideas why this happens ?

In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Henryk Szczudlik -
Raphael, I've looked through this post a few times but I can't seem to find an answer to my question.

Following your advice I changed permission to both 'media' and 'publication' folders. Yet, I still get the "Could not find or create a directory (/)" error and I'm unable to upload podcasts.

Is there anything else I could do. Btw, I'm running a 1.8 Moodle.

Thanks.
In reply to raphael Apard

Re: New activity module Podcast -> XML file does not get updated

by Brian Gray -
I am using the most recent version of the Podcast module I can find (lib.php dated 14 May 2007).

For the most part, it works as expected, and I can get podcast files via iTunes.

The XML file is created correctly when I first create the Podcast activity.

The problem I have run into is that if I edit the podcast information (via the "Update this Podcast" button, the changed values (title, description, category, etc) are not written into the RSS XML file.

I'm new to podcasting, so I'm not sure if there is a reason for this behavior, or if it is an indication of a problem with my installation or a problem with the code.

(I know that I can manually edit the XML file, but I would prefer that the module just re-write it for me with the updated field values.)



bkg

In reply to Brian Gray

Moodle 1.8 - mov and mpeg don't play

by Mayrton Bahia -
Hi! I have installed Moodle 1.8 and Podcast v1.1beta, all is Ok with mp3 and video wmv files. But mov and wmd video upload not play on "view podcast" tab and wmd video not play on iTunes. Someone can help me? Thanks, Mayrton Bahia
In reply to Mayrton Bahia

Re: Moodle 1.8 - mov and mpeg don't play

by Mayrton Bahia -

Sorry! the correct question is:

I have installed Moodle 1.8 and Podcast v1.1beta, all is Ok with mp3 and video wmv files. But mov and mpeg video upload not play on "view podcast" tab and wmv video not play on iTunes. Mov and mpeg videos playng on file repository Moodle but not on podcast upload repository.Someone can help me? Thanks, Mayrton Bahia

In reply to Mayrton Bahia

Re: Moodle 1.8 - mov and mpeg don't play

by Julian Ridden -
It has never been made to work with them sadly sad

Hopefully the developer will add it someday. As you have noticed, it does work when sent out to a podcasting app, just not inside moodle itself sad
In reply to raphael Apard

Re: podcast doesnt install

by Anil Sharma -
i've downloaded the podcast module dated 14th may from the google code site, and tried installing in both moodle 1.8.2 and 1.9 dev - today, it doesnt install in either of them . When clicking on notifications, nothing happens at all. If someone has an old zip, pls message me, would like to test it
In reply to Anil Sharma

Re: podcast doesnt install

by Gerry Lerner -
I have the same problem. I've copied the "podcast" folder into "mod". I've copied the /podcast.php into the "en" and "en-utf8" folders. I've replaced the v1.1 version from the plugins page with the one linked in this discussion group.
I've clicked on notification (lots of times) and absolutely nothing happens.
I'm using Moodle 1.8.2+

I would welcome any suggestions.

Thanks

Gerry
In reply to Gerry Lerner

Re: podcast doesnt install

by Kristen Walker -
I was having the same thing happen to me. I was unzipping on my machine and uploading to the server. Try uploading the .zip file to your server and unzipping it there. That solved the problem for me, but now I am having a problem of not being able to play .m4v or .m4a files that I upload.
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Donald Reiher -

Does anybody have a postgres7.sql file for this?

- Don Reiher

In reply to Donald Reiher

Re: Podcasting: New activity module Podcast

by Donald Reiher -

There is only the mysql.sql file for this, and no postgres7.sql file.  Am I missing something?   Is there some way of converting the mysql file to postres7 or else instructions for creating the tables by hand?

- Don

In reply to Donald Reiher

Re: Podcasting: New activity module Podcast

by Khawer Ishtiaq -
Hi I'm having a problem getting my podcast to play in itunes... when i try an dplay it through i tunes i get the message attach basically saying it can't find the file, but itplays ok in moodle. any help would be appreciated
Attachment Picture_2.png
In reply to raphael Apard

Changing some strings

by John Mansel-Pleydell -
Hi,

I have the latest version (from the google link above) installed on a 1.7.1 moodle installation and it is working fine.

I have been trying to change the word Catagorie where it appears on the page (in view.php) at the bottom.

Also the word "Subscribe" is spelt "Suscribe" in the en_UTF8/podcast.php file.

Can anybody point me to where the string is that displays the word catagorie: at the bottom of the page.?

Catagorie
Created By <<User Name goes here>>

thanks
John
In reply to John Mansel-Pleydell

Re: Changing some strings

by Vern Kollas -
John,

If you haven't found this yet.... do a search in the lib.php file in the podcast module file, around line 440. I also corrected the "Suscribe" misspelling as you mentioned.

I am still trying to find where the "FR" is located on the page when you create a new podcast that is automatically filled in in the Language field. Would like to change it to "EN", but not sure it really matters.

Any thoughts there??

I definitely like this module a little better than the other podcast module we have been using as the iTunes RSS feed actually works now and it seems like it will be easier for teachers to use.

Thanks!

Vern
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Robert Edwards -
I WOULD LOVE THIS IN ENGLISH!
The current one is "buggy" at best for me...
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Brian Gray -
We've been using this module heavily since school started three weeks ago. It works well for us. As teachers use it more, finding a particular file in a podcast becomes more difficult because the list is not sorted in any particular way.

I've added a request in Moodle Tracker (MDL-11246) to request some options for sorting the list of podcast entries.

In reply to Brian Gray

Re: Podcasting: New activity module Podcast

by Amanda Hefner -
Brian,
You mentioned in the Issue Tracker that you had hacked the podcast module to sort by Title/Date. Would you mind sharing that hack, since it is still unresolved?

I need to sort by Title in one podcast, and by date in another, but either would be great. I can always change valued in the db to work with the sort hack.

That would be great! Thanks.
~Amanda Hefner

In reply to Amanda Hefner

Re: Podcasting: New activity module Podcast

by Brian Gray -

Amanda -

The change is almost trivial, but finding what to change was not...

In mod/podcast/lib/view.php, at around line 449 there is an if() statement that contains a foreach() loop:


if ($podcast_item = get_records("podcast_structure", "id_podcast", $podcast->id)) {
foreach($podcast_item as $item) {
// irrelevant code deleted
}
} else {
echo '<h3 style="font-style:italic;">'.get_string("no_item", "podcast").'</h2>';
}


I modified the call to get_records() in the if() statement to include an optional 4th argument: the database table field to sort on. (That field gets added to a "ORDER BY" clause in the SQL statement build by get_records().)

if ($podcast_item = get_records("podcast_structure", "id_podcast", $podcast->id, "title")) {

In my podcast activity, I want the displayed entries sorted by date, so my "title" field contains values such as: "2007-08-27 SSES Drumline" and "2007-09-27 College Admission Panel Discussion".

By altering the arrangement of information in your podcast titles, you can make the list sort as you want it.

In reply to Brian Gray

Re: Podcasting: New activity module Podcast

by Jonathan Konrad -
Thanks for the hack to sort podcast entries. It works. Is there anyway to change the sort to is gives the largest number first?

Adding the date as you mentioned "2009-09-07" in front of the title ensures that the oldest stays near the top. I can make up numbers and keep the freshest at the top, but it only makes sense to stamp it with the date and I'd like to sort my podcast with the newest at the top. It's easier for my students to find the latest.

Thanks
In reply to Jonathan Konrad

Re: Podcasting: New activity module Podcast

by Brian Gray -
The "sort" argument (which is given the value "title" in the function call) eventually gets used in an "ORDER BY" clause in the SQL database statement that gets the list of podcasts.

If you change "title" to "title DESC", SQL will return the list of podcasts in reverse (descending) order. If you use the date as the first part of the podcast names, then they will be sorted in reverse chronological order.
In reply to Brian Gray

Re: Podcasting: New activity module Podcast

by Jonathan Konrad -
Thank you. This worked Perfectly.

Jon

P.S. Any thoughts on my play back speed issue in IE?
In reply to Jonathan Konrad

Re: Podcasting: New activity module Podcast

by Michael Corballis -
You get that chipmunk sound when flash plays an mp3 with a sampling rate which is not a simple ratio of 44.1kHz. I mean 22kHz works fine, because it is half of 44... Maybe recent flash players have fixed this...
In reply to raphael Apard

Installation Problem

by Jack Drolet -
I don't understand how to install this. I downloaded it, extracted it into my moodle/mod folder - uploaded it onto my server in the moodle/mod folder. I also copied the podcast.php file in lang/en_utf8 and put that in the moodle/lang/en_utf8 folder.

Then went to my Moodle site - directions in the readme say to click on Notifications and that's it. I did that - but nothing. I also checked under Modules and Plugins/Activities, but don't see it.

I don't think it's a problem with this Activity - I also tried to install a block but nothing happened with that either.

What am I missing?

Thanks,

Jack
In reply to Jack Drolet

Re: Installation Problem

by Nigel Singleton -
I have the same problem. I would like to delete it but can't -- any suggestions?
In reply to Jack Drolet

Re: Installation Problem

by Mat Cannings -
I think I know why you have had this problem and can provide one possible solution.

I had this same problem myself. When I downloaded one of the files from my server I noticed that instead of a neat php file with tabbed indents I had a (very long) single line of code. I believe the files for this module were saved on a Unix system, but if you unzip to Windows before uploading to your server then all carriage returns end up getting stripped out.

To resolve this I uploaded the zipped up file that is downloaded straight to a Linux server and unzipped within the server. The files then install as you would expect. This is something I have not seen before and do not know if there is a better way of dealing with this problem.

Hopefully someone may be able to follow this up with a better solution.

After all that I would just like to thank Raphael for a fantastic module that is incredibly simple to use. I had a small problem with the feeds not validating completely so have made a minor change to the function make_xml in lib.php that fixes this which i have attached.





In reply to Mat Cannings

Re: Installation Problem

by Mike Chaplin -
I had the very same installation problem until I tried the unzip-on-the-server fix.

I simply uploaded the zip file to the /mod directory and then used the "unzip zipfilename" command through the terminal connection.

Then go to notifications etc.

regards

Mike Chaplin
In reply to Mike Chaplin

Re: Installation Problem

by Colin Wheelhouse -
I have had similar installation problems, however when the block installed and I went to NOTIFICATIONS it said scroll to the continue button, but there wasn't one. So I went back to the frontpage and all of my blocks had vanished the only things left on my frontpage are my header image and the log in box! I removed the podcast folder from the server and re-installed the old language file, but to no avail. In fact if the podcast folder was still in the MOD folder all of the admin pages are blank as well. What has happened? I need help urgently.

Thanks

Wheelie
In reply to Colin Wheelhouse

Re: Installation Problem

by Colin Wheelhouse -
Solved, the podcast.php folder was still in the lang en_utf8 folder, when this was deleted all the blocks re-appeared.
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Beth Crook -
What file do I edit to get rid of the "Your Logo Here" and the Rss feed sections?
In reply to Beth Crook

Re: Podcasting: New activity module Podcast

by Nigel Singleton -
If you want to get rid of Your logo here this is a jpg image n the root of the podcast directory called img.jpg. Just create a 1 pixel image with the right background and upload it to the directory with the name img.jpg.
In reply to Nigel Singleton

Re: Podcasting: New activity module Podcast

by Carl Kennard -

Hi,

we've managed to successfully install the podcasting activity but when we try to run it from itunes we get told we do not have authorisation to access the folder the file is in. We've tried it while logged into Moodle and it makes no difference. Has anyone else had this problem?

Carl.

In reply to raphael Apard

HTML Editor for Podcast description

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Hello,

I've had this Podcast module running successfully now since May (07) and am really happy with it but as we use it more and more there has been a desire to be able to write 'fancier' descriptions for each podcast. We'd like to be able to add links, stylized text, possibly even photos etc. but the html editor does not appear where the description window is. Is there any way to use the html editor when writing the description for a podcast?

Thanks in advance for any input anyone can provide.

Jason
In reply to Jason Hollowell

Re: HTML Editor for Podcast description

by Vern Kollas -
Jason,

I would like to do this as well.... did you find out anything to add the HTML editor, or do we just need to wait for an update from the developer?

Thanks!!

Vern
In reply to Vern Kollas

Re: HTML Editor for Podcast description

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Vern,

No, sorry, actually I've been working on other stuff with my Moodle site and kind of gave up on the html editor for a while. Just posted a new podcast today and remembered the desire for fancier 'trappings' around the podcast and came back here to see that my post/request/inquiry didn't seem to get much attention.

It doesn't seem like it would/should be that hard to change from the plain text entry form to the html editor but I'm an entry level techie at best so I probably don't know what I'm talking about.

Jason
In reply to raphael Apard

OGG vorbis files are unsupported

by Roel Cantada -

Hi Raphael,

This is a great module.  I've managed to run it and upload mp3 files but when I try to upload an ogg-vorbis file with ogg extension it only showed the following:

Choose a type file : avi, mov, movie, m3u, mp3, mp4, m4v, mpeg, mpe, mpg, m4a, qt, wmv, asf

How can I include ogg in this list?

TIA,

Roel

In reply to Roel Cantada

Re: OGG vorbis files are unsupported

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Roel - I agree that I think it is important that since Moodle is an open source tool that we maintain a certain level of open source accessibility and support for open source formats like OGG. I'll check and see if we might setup a section in the tracker for making feature requests. For now, feel free to put it in the CONTRIB section's Module: {none of the above} category. Peace - Anthony
In reply to Anthony Borrow

Re: OGG vorbis files are unsupported

by Roel Cantada -
I've reported it in the tracker.  Its contrib 199.  Thanks Anthony.
In reply to raphael Apard

Re: Can't create directory, file in media folder

by Roel Cantada -

Hi guys,

I am experiencing the same problem mentioned in an earlier post, that is, when I tried to browse for file to upload I get an error "can't create directory", but my file permission for media and publication is 755.  I changed it to 777 (although I think this is dangerous) and the directories were created but the file cannot be uploaded.  I had to go in using my file manager to put the mp3 file in the directory and it showed up in the moodle file selector.

I am using cpanel in a RH linux web hosting environment.  I don't have a shell interface so I don't know if the folder owner is correct, that's why I'm having problems or something else, perhaps some security feature in core moodle code.  Is there any way I can solve this?  Please help.

P.S. It worked fine in my home win XAMPP installation.

TIA,

Roel.

In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Neill Thompson -
Hi - is there any way to remove the date added text from the summary of podcasts available? It comes after the title and I cannot see any way toi disable it.
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Alastair Hole -
Hi
Are there any plans to provide support for XMLDB? (Or at least MSSQL)
Unfortunately this is a show stopper for us.
Cheers

In reply to Alastair Hole

Re: Podcasting: New activity module Podcast

by Dean Stringer -
We're using PostgreSQL so have just created a new install.xml file using the XMLDB editor. Seems to have been picked up ok by Moodle in our install and all tables were created as expected and the module seems to be behaving.

You can download the install.xml file from the tracker item I've setup following, the file needs to be tested in environments other than PostgreSQL so if anyone is free to do that please add your feedback to the tracker entry rather than in this discussion area. Once we know its ok then we'll post back here again?

http://tracker.moodle.org/browse/CONTRIB-832
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Kristen Walker -
I installed the podcast module and it seems to work fine for mp3 files, but not for .m4v or .m4a files. It lets me upload the file but when I try to view the podcast there are no links for me to play these files. I am attaching a screen shot of what it looks like.

I also tried subscribing to the podcast in itunes and get the message in iTunes "There was a problem adding test to iTunes. The file might be corrupted or a file type that iTunes cannot play".

Also, when I try to see the settings in the admin interface I don't see anything.

Any help is much appreciated!!!! I am really happy with how this is working for .mp3 files. If I could get it to work with .m4v or .m4a files that would be great!

Kristen


Attachment podcast_screenshot.jpg
In reply to Kristen Walker

Re: Podcasting: New activity module Podcast

by John LaGuardia -
I'm having the same problem as Kristin: m4a files are listed, but the player does not appear. In the attached pic, you can see the first 2, which are m4a, have no player. But the 3rd, which is an mp3, does.

Any help appreciated.
Attachment PodcastModule.png
In reply to Kristen Walker

Re: Podcasting: New activity module Podcast

by Jonathan Konrad -
Has anyone solved the problem of .m4v files not loading? I have the podcast activity installed and it works great! The only problem I have is when I post .m4v files. The are accepted by the activity, but do not show up with a player when the podcast if viewed.

The files play well on my computer. They upload no problem. If I download them to another computer they play in quicktime, but they will not load on the screen.

The other format's I have tried are .mov and .mp3 Both play as expected. Thanks for any tips.
In reply to Jonathan Konrad

Re: Podcasting: New activity module Podcast

by Jonathan Konrad -
Sorry to reply to my own problem but I found a solution. If i change the .m4v extension to .mp4 they load with out problem. I did the change in Moodle by just clicking on "rename". Now they load. Works great.

I have another problem though. Two actually. First is there a way to have the most recent cast appear on top instead of down below?

Next, is there a way to have video or even audio load when it is clicked on, not then the page is loaded. I just uploaded five video podcasts to a new cast and it makes it impossible to load on slower connections. Even on fast ones it often hangs or crashes.

Thanks,
In reply to Jonathan Konrad

Re: Podcasting: New activity module Podcast

by Brian Gray -

Jon -

I ran into the same problem as one you mention - if there are many files (or a few large files) in the podcast, the page takes forever to load.

I've hacked the code to deal with this in my situation. (For me, the problem was caused by a large number of mp3 files that run 3 or 4 minutes each.)

The approach is to detect that there are "many" files in the podcast, and to display links to the files instead of media players for each one. I defined "many" to be 20 or more, but you can choose any number you want. (20 is way more than the number of files in any of the other "smaller" podcasts on my site.)

You could also do this by course number. I started to write it this way and then changed my mind in favor of a more general approach.

There are changes to two functions in podcast/lib.php. My changes are in red:

Near line 285, in function get_media_html():
  1. add arguments to the function header for the course ID, mp3 file name, and the number of files in the podcast.
  2. add logic above the existing code to detect the situation that requires links instead of media players, and to build the URL.

// Afficher un fichier multimédia selon le type MIME
function get_media_html($url, $cID, $fName, $pCount) {
//$cID is not used here, but could be useful to limit this behavior to a single course's podcast


global $CFG, $THEME;
require_once('../../lib/filelib.php');

if($pCount > 20){
$html = '<a href="'.$url.'">'.$fName.'</a>'."\n";
}
// Type Audio : Lecteur Flash de Moodle
else if(mimeinfo("type",$url) == "audio/mpeg" || mimeinfo("type",$url) == "audio/mp3") {



Near line 457, in function get_podcast():
  1. change the call to get_medial_html()

function get_podcast($podcast) {
...

echo "<p>".get_media_html($CFG->wwwroot."/mod/podcast/media/".$podcast->course."/".$podcast->id."/".$item->lien,$podcast->course, $item->lien, count($podcast_item) )."</p>";
echo "</div>";


I had some trouble formatting the code to make it readable...

These changes are working for me. Your mileage may vary.

bkg
In reply to Jonathan Konrad

Re: Podcasting: New activity module Podcast

by Jean-Louis Huynen -
This is caused by filelib.php array : It do not contains m4v extension :/
In reply to Kristen Walker

Re: Podcasting: New activity module Podcast

by Brian Pool -
I have it working fine except I do not get the RSS feed information below the text on the podcast. I do have RSS feeds on in the Admin section and show Rss feeds in the forums, I just don't see them on the podcast module.

Any help would be appreciated.

Brian
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Jim Remington -
I badly need this module to be able to have student podcasts.  Is this coming?
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Aznan Nagor -
Hi, i've installed the podcast on Moodle 1.7 and am quite happy with this module but i have some problems that needs to be resolved before fully releasing it for the teachers and students:-

1. MP3 files not playing

2. .mov (quicktime) files not appearing in IE but works fine on Firefox

Please help/advise
Aznan
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Travis Wilhelm -
Is there a way of letting students download the podcasts directly from Moodle rather than just having to subscribe to an RSS feed? I would like them to be able to "save as.." directly if possible...
In reply to Travis Wilhelm

Re: Podcasting: New activity module Podcast

by Jean-Louis Huynen -
You just need to change a bit the podcast module source code.
In lib.php there's a function called get_podcast in which you can find a foreach :

foreach($podcast_item as $item) {
...blabla...
echo "<p>".get_media_html($CFG->wwwroot."/mod/podcast/media/".$podcast->course."/".$podcast->id."/".$item->lien)."</p>";
...blabla...
}

Just replace the above line in this ^^ by something like :

echo "<p>".get_media_html($CFG->wwwroot."/mod/podcast/media/".$podcast->course."/".$podcast->id."/".$item->lien)."<br></p><a href='".$CFG->wwwroot."/mod/podcast/media/".$podcast->course."/".$podcast->id."/".$item->lien."'>".$podcast->title."</a>";

This would display a link called like the podcast item under the player linking to the item's media file. (Right Click -> save as)

Not tested but i think it's ok smile
cheers.
In reply to Jean-Louis Huynen

Re: Podcasting: New activity module Podcast

by Travis Wilhelm -
Thanks for that!!

Next problem - is there a way to re-order them? I don't really want to edit code manually to change the ordering structure (as someone else mentioned earlier) - but would prefer a "sort by" button or option in inserting a new podcast to "insert to top" rather than "insert to bottom"...

Is any of this in the planning? Is this module still in development or should I be looking elsewhere for a long-term solution?

Thanks.
In reply to Travis Wilhelm

Re: Podcasting: New activity module Podcast

by Jean-Louis Huynen -
I had to make some changes to this module so i asked Raphael Apard about gaining the right to commit on the project hosted on googlecode but i didn't get any answer.

So i've made a fork project on google code called moodle-podcastplusplus which is a work in progress (no doc and language files are broken) but there's no problem about changing anything.
Atm, the new module place the last media file added first btw.

The main thing i've done on this module is to give the possibility to feed the podcast without uploading any files or fill any meta in moodle. Theses things are thus delagated to an external solution like the one provided by Apple with podcast producer.
The external feed need to fill a table in moodle db with the link to the file, a description, a title... and a username.. Having a CASified moodle come in handy here smile

You can check this out here if you want:
svn checkout http://moodle-podcastplusplus.googlecode.com/svn/trunk/ moodle-podcastplusplus-read-only

cheers.
In reply to Jean-Louis Huynen

Re: Podcasting: New activity module Podcast

by Dean Stringer -
Hi Jean-louis. Great to hear that you have picked up this project. We are looking at using it this coming semester at our University. I've made a couple of tweaks to it this week so have attached a patch file, feel free to include the changes in your project. The changes include:
  • added a module help file (was none before, feel free to suggest alternative wording for it)
  • replaced static nav with calls to build_navigation (old calls are deprecated and were generating warnings)
  • set default language to EN (is there a Moodle site pref to check?)
  • fixed handling of non-existent form action methods (were generating warnings)
  • corrected tabobject active tab selection (tabs weren't working)
Have you thought about setting this project up in the Moodle contrib area, that way anyone from the Moodle community could contribute, you could also use the Tracker to manage suggestions and patches. We have LOTS of ideas for improving the module so would be happy to share those.

Dean Stringer
In reply to Dean Stringer

Re: Podcasting: New activity module Podcast

by Julian Ridden -
Great work Dean on that patch.

Jean-louis, if you contact Anthony Borrow I am sure he could set you up in the Moodle contrib area so, as Dean mentioned, we can get more Moodlers supporting your cause.

I love this module and look forward to following your progress
In reply to Jean-Louis Huynen

Re: Podcasting: New activity module Podcast

by Julian Ridden -
Any chance of a patch file of your changes?

I just started using podcast producer here and this would be awesome. At the moment we have a double step process that your code would eliminate.

Julian
In reply to Julian Ridden

Re: Podcasting: New activity module Podcast

by Jean-Louis Huynen -
I'm glad to see some people are interessed in this smile I haven't made any commitment to this code for a long time cause i have deeply modified it and it's still inelegant :/

This module is now able to act as a front end to podcast producer.
In fact, i kind of rewrote the ruby front end in PHP / AJAX (yahoo-lib) for moodle ;)

So, you can upload files, and control registred cameras directly from the module..
But you can also list your processed files and add them to a podcast activity :D (Or physically remove them from the PcP server, or remove them from the podcast activity)

You'll have some work to do in your workflow in order to make this work but it's pretty easy : All files submitted to PcP are prefixed with the login of the current user, all you need to do is to write in a table in moodle DB where the processed file is and who submitted it. Then, your file will be listed as available for being added to a podcast.

In order to delete files on the PcP server, you need to write a cron task which checks if an "alive" field is set to true or not in the table, and then take do the job of deletion. I could do this in the module, but i wanted to let people manage this sensible area themselves.

I have made a little video in order to show how it "PcP front end mode" looks atm.

There's no problem for me about pushing this in contrib area but i think there's lot of work left to do.. debugging, cleaning (rewriting) code, documenting..

ps: Excuse my English, sometimes i think it sounds good but it's totally wrong :D
pss: Thanks for your patch ^^, i have made your changes to the new version smile
In reply to Jean-Louis Huynen

Re: Podcasting: New activity module Podcast

by Jean-Louis Huynen -
If anyone want to check the podcast producer front-end, i've just uploaded the new source code ;)
In reply to Jean-Louis Huynen

Re: Podcasting: New activity module Podcast

by Dean Stringer -
Hi Jean-Louis, the changes you are making sound great. Dont worry about your English either its better than most native English-speakers/typers in my experience wink

Re the contrib area and work-left-to-do as you describe it, if its in contrib then others can help provide more patches to help you tidy all those loose ends up as a group rather than you having to do it all yourself. And if you use tracker we could all be making suggestions and helping fix other bugs and issues along the way.

One thing we are considering is adding roles/capability support to the module (so for example students can upload podcasts). Is this something on your road-map in the short term?
In reply to Dean Stringer

Re: Podcasting: New activity module Podcast

by Jean-Louis Huynen -
Two Capabilities are implemented for the moment :

podcast:use allow people to see the activity or not
podcast:edit allow people to add media item / create podcasts..
I don't plan to change these so far, but if people need more specific capabilities, why not ;)

There's no problem for me about putting this in the contrib area, i just need to read the documentation about that smile i'll take a look at it.
In reply to Jean-Louis Huynen

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Jean-Louis (or anyone) smile

I am trying to get the Podcast module to display the entries in reverse order (newest first) and tried using the hack posted in this thread but am not having much luck.

I've poked around in lib.php but can't seem to figure out how I need to modify the following code:

if ($podcast_item = get_records("podcast_structure", "id_podcast", $podcast->id)) {
foreach($podcast_item as $item) {
echo "<div style='border-bottom: 1px dashed black;'>";
echo "<h2>".stripslashes($item->title)." <span style='font-size:0.9em;font-style:italic;font-weight:normal;margin-left:40px;'>";
echo $item->date_html."</span></h2>";
echo "<p>".stripslashes($item->intro)."</p>";
echo "<p>".get_media_html($CFG->wwwroot."/mod/podcast/media/".$podcast->course."/".$podcast->id."/".$item->lien)."</p>";
echo "</div>";

To get the entries to be displayed in reverse order.

Also, how do I get the audio files that are displayed on the Podcast window to not autostart. I think I have the media filter set to not autoplay because files elsewhere on the site do not autoplay but for some reason the ones on the Podcast window do autoplay. The strange thing is that only the first one autoplays on Firefox but they all start on IE...?

Any advice or help will be greatly appreicated.

Jason
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
My apologies,

As far as the audio files playing automatically, I had forgotten that these settings are located in the config.php file located in the theme. I went to my theme and made the appropriate changes

waitforplay = yes

And was able to resolve that problem.

I am still at a loss for how to reorder the podcast audio files so that the most recent one appears at the top of the screen....

Jason
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Jean-Louis Huynen -

Hi Jason,

This should do the trick, just replace the first line by the second : (not tested)


if ($podcast_item = get_records("podcast_structure", "id_podcast", $podcast->id)) {


if ($podcast_item = get_records_select("podcast_structure", "id_podcast = $podcast->id", "id DESC" )) {



In reply to Jean-Louis Huynen

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Jean-Louis,

Magic! smile It is now tested and I can confirm that it works big grin

Thanks so much. I was adding the DESC in the wrong place sad in the echo statements but now I see why that wasn't working.

Thanks a million for your help.

Jason

P.S. Another inquiry shy I see in the code for the Podcast mod (in lib.php) that the html editor is supposed to appear but for some reason it does not. Do you know why it is not present for the text that accompanies the podcast? It would be nice to be able to format it a little. Maybe the code I saw was for something else...?
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Jean-Louis,

I have a strange problem with the Podcast module suddenly that I cannot seem to figure out.

When I try to add a new podcast and try to upload an audio file (mp3) I get an error saying:

No file was found - are you sure you selected one to upload?

But I have selected a file. I had made some changes to the Podcast Module to use a nicer multimedia player (iPixelOut) and also made the change you provided to change the display order so I thought maybe some of those changes may be causing the problem and reverted to all of the original Podcast settings (files) but still have the upload problem.

Seems like this problem may not be related to the Podcast module but I'm not sure....

Jason

P.S. Additionally, I am getting a message that the XML is not ok. I tried to force add a podcast by adding it through the webserver and then selecting it when trying to add an audio file instead of uploading but that results in the podcast audio not being fed via rss through my mp3 player (iTunes)
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Jean-Louis & all,

I managed to remedy this error by changing the permissions on the following two directories (and all subdirectories & files) from 755 to 777.

moodle root/mod/podcast/media
moodle root/mod/podcast/publication

I don't know if this is safe or not....?

I guess my problem stemmed from an attempted upgrade yesterday from 1.9.4+ to 1.9.5+ that I then aborted and reverted to a backup copy I had of my Moodle. Copying the backup to my server must have changed some of the permissions.

Jason
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Jean-Louis Huynen -
Hi Jason,

Root/mod/podcast/media is the directory where your media file is uploaded.
Root/mod/podcast/publication is the directory where the rss file of your podcast is stored.

So you need them to be writable for moodle (and it's safe).

cheers ;)
In reply to Jason Hollowell

Re: Podcasting: New activity module Podcast

by Ken Tuley -
ok, I must be blind here... I can't find these lines in any file. where specifically are they, so I can change the sort order, displaying the most recent at the top of the list.
thanks.

In reply to Jean-Louis Huynen

Re: Podcasting: New activity module Podcast

by Heidi Peter -

Hi,

how can i change the podcast, so that students can  add/upload files or media?

Regards, Heidi 

In reply to Julian Ridden

Re: Podcasting: New activity module Podcast

by Jennie Lawrence -
Hi I just tried to upload this version of your podcast and it totally took out all the Blocks and Administrative panel for the moodle I am using.

http://code.google.com/p/moodle-podcast ..

Can you advise what I did wrong or if there is a more recent updated link that I have overlooked.

Thank you .. Jennie
In reply to raphael Apard

Re: Podcasting: New activity module Podcast

by Monique HEAD -
Hi. I am in France(Antibes) and very interested in doing podcast and mobile applications as well. When I click on our link this is what I get "Record ID is incorrect". I am on a Mac computer and using the Firefox browser. Not sure what the problem is but I will return to see if it works later.
In reply to raphael Apard

Podcast module feed not working in iTunes

by Barbara Schroeder -
I really think this module has a lot of potential, but I've had trouble with certain aspects of it. We use Moodlerooms hosting, so it's not that easy to modify the default image. However, the main issue is the feed. It just won't work in iTunes. If I copy/paste the feed URL to Google Reader, it works fine, but the buttons for Google, Yahoo, NetVibes don't seem to like the feed URL either.

Anyone else having these issues?
In reply to Barbara Schroeder

Re: Podcast module feed not working in iTunes

by Steven Nelson -
I'm a developer for Global Classroom and a while ago I worked on trying to install and configure different podcasting modules. I'm not sure if I tried out this module, but I found a great solution in Podcaster, that can be found here. http://moodle.org/mod/data/view.php?d=13&rid=2160

Was really easy to install, and podcasts created in a class works for any podcasting software, as long as the software supports podcast authentication.

Do you only use MoodleRooms for hosting, or do they help manage and run your Moodle as well?