Moodle

Podcasting based on first link in the message not only in attachment

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8
  • Fix Version/s: None
  • Component/s: RSS
  • Labels:
    None
  • URL:
    cvs:mod\forum\rsslib.php
  • Affected Branches:
    MOODLE_18_STABLE

Description

Now you can send a new podcast only attaching a file, but to do this you need to open the course to all (ohterwise you need a podcast client with an authentication system: that is no so common) and to need to upload media files in your Moodle server. I developed a patch to catch the first link in the message and podcast that.

On file cvs:mod\forum\rsslib.php line 269:

// Adding link system

$descriptionlink = ereg (".href="(.)".+",$item->description,$regs);
if ($descriptionlink != false) { $attachment = new stdClass; $attachment->url = $regs[1]; $attachment->length = filesize($attachment->url); $item->attachments[] = $attachment; }

Activity

Hide
Dan Poltawski added a comment -

Hi Domenico, could you explain what this modification achieves in more detail so it can be considered for inclusion?

Show
Dan Poltawski added a comment - Hi Domenico, could you explain what this modification achieves in more detail so it can be considered for inclusion?
Hide
Domenico Pontari added a comment -

Hi Dan,
this modification has 2 aims:
1. when you attach something through forum activity, your file is stored in moodledata subdirectory. If your course is not public (requires an authenticated user), you'll need to login before download the file attached. Although what you expect for a RSS attachment is that you can download it without authentication (easily using iTunes or another RSS client).
2. linking a file insted of embedding it for each post save space on your server and allow you to do a better maintenance of your files.

these 2 aims are reached giving the possibility to the teacher to create an RSS attachment by defining a link in his post in the forum. The target of the first link will be the RSS attachment and it could be a file stored in another public course or everywhere on the net.

PS: these were my considerations more than one year ago; I didn't test if the behavior is still the same.

Show
Domenico Pontari added a comment - Hi Dan, this modification has 2 aims: 1. when you attach something through forum activity, your file is stored in moodledata subdirectory. If your course is not public (requires an authenticated user), you'll need to login before download the file attached. Although what you expect for a RSS attachment is that you can download it without authentication (easily using iTunes or another RSS client). 2. linking a file insted of embedding it for each post save space on your server and allow you to do a better maintenance of your files. these 2 aims are reached giving the possibility to the teacher to create an RSS attachment by defining a link in his post in the forum. The target of the first link will be the RSS attachment and it could be a file stored in another public course or everywhere on the net. PS: these were my considerations more than one year ago; I didn't test if the behavior is still the same.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: