Hi,
I made a block which can read rss files (one feed for each course). Maybe you like it. Just install to the block in the right dir and fill in your rss file in the block install.
Greets,
Paul
Hi,
I made a block which can read rss files (one feed for each course). Maybe you like it. Just install to the block in the right dir and fill in your rss file in the block install.
Greets,
Paul
Hello,
I think i have done everything you say in the pdf document, but when i save it, it appears this message
A required parameter (sesskey) was missing |
Sorry, if this problems is already answered but i didnt find it on any place. I only use moodle for 2 year, so i´m still a new user J .
Thanks a lot
Miguela
Hi,
Sorry, I forgot other people uses prefixes in their databases. Good point!
Well, for our Moodle sites (www.mystudyguide.nl and www.e-study.nl, test.e-study.nl for now) we use 1 block per course. We don't need more.
Programming a block is not that difficult. I won't be very hard to make it working for groups. However you have to change the whole administration area (make an apart table for the subscriptions).
Greets.
Paul
I agree that there should be more things configurable per course. I don't think it would be a good idea to add all these settings to the Settings page of the block. This page contains sitewide settings (and should be set by the admin). The number of hours newsfeeds should remain cached is probably a good example of such a setting.
The other settings (footer, name of newsfeed, url of newsfeed, number of items to fetch, etc...) should be handled by a different settings page (for the teacher of the course).
There is however not yet a standard way of printing this type of config page for blocks.
I thought of adding code that changes the footer of the block to something like 'Configure this block' whenever you log in as a teacher. Clicking on this link would open a form to type in footer, url, number of items, etc....
These could be stored in the same databasetable that is used for caching the rssfeeds. There is however one disadvantage: in the end every type of block will have its own way of configuring and this will confuse users. (Compare it with the modules: clicking on the little editing icon always shows the options for whatever module you are using. There should be something like that for every block too.)
My question to the moodle masters
Is this the way per course settings for blocks should be handled? Or should we wait until a more generic interface gets addded to the blockcode?
Hi,
I wrote the block quick and dirty. For our courses there is no need to have more than one rss file per course. Of course it's handy when teacher could attach one or more rss files to a course. For now I can't promise i'll make it. The block suits our needs and I am afraid I haven't enough time... (programmaing this block cost me 1 day; you just have to figure out how moodle works). But you never know. Feel free to change it!
The class I am using for getting the rss file also gives the possibility to get the title, description and picture of a feed (see constructor).
Greets,
Paul
Paul ... very nice block. I'm a newbie to Moodle but not e-learning and I'm a big fan of syndicated resource solutions. A much unexploited area by proprietary vendors and a big opportunity for Moodle.
It would be kind of neat if, that instead of displaying output from just one hardwired RSS channel, a number of channels were available to users. For an example of what I mean see our blog Auricle www.bath.ac.uk/e-learning/auricle.html which offers Syndicated Sites and Syndicated Learning Objects from which readers can select the resources they are interested in. If the RSS block contained a menu which accessed a list of rss channels specified in the configuration then that is one killer feature. Each 'course' in Moodle could therefore offer a wide range of syndicated resources. I could also see considerable advantages in the configuration allowing for student specified channels.
It would also be great if syndicated resources could be specified at a more granular level than the course, e.g. the week, the topic.
I'm new to Moodle so I'm not much good here but if you or anyone else could run with this it would be well worth doing.
I have installed the RSSblock code that I found in this thread in 1.4 and it seems to work fine except for 1 thing; would like the edit the Course settings to include the main page. Has anyone done this and where would I edit this.
I have placed a BBC XML link in the settings and it appears in the course, but I can't get it to work on the Main page.
Thanks in advance!
Marc
In my posting of 24 August I proposed some enhancements to Paul De Jong's excellent block. I've attempted to practise what I preach and so please find attached RSSFeedPlus.zip which is based on Paul's original work. A readme is provided in the zip file. The enhancement means that multiple RSS channels can now be specified in the block configuration form. I've used multi-line textareas to do this with pairs of lines indicating, respectively, a syndicated site name followed by its uri. Once the block is registered by Moodle and it has been added to either the home or a course page, if there is more than one site specified in the configuration form, a drop down menu will be displayed above the block. Choose another RSS site to display another set of items. If only one or no RSS site is specified then the drop-down menu should not be displayed. I'm disappointed to find that apparently only Moodle administrators and not instructors/teachers can configure Moodle blocks since the new feature I've added would be best exploited by teachers. It would also be more than useful if we could get to the happy situation where such blocks could be made available to students who could then present us with the resources they consider important. Anyway, I hope RSSFeedPlus.zip proves useful to the Moodle community. It would be really good to find out from people how it is being used.
Best wishes
Derek
Derek, I will certainly try out your improvements to the block, I haven't installed it yet (typing this from a different computer)
Just a comment on your suggestion...
It would also be more than useful if we could get to the happy situation where such blocks could be made available to students who could then present us with the resources they consider important
I've used such a mechanism to make a bookmark block. The block contains a link to a page with private bookmarks for one particular student. If this student decides to share a folder, this folder shows up in the block for all the visitors of this course. I made a screenshot which shows student2 logged in: he can access all his personal bookmarks, the bookmarks about 'buddhism' and 'general' that were shared by another student and he can remove the folder that he was sharing (Jodendom - sorry in Dutch) : the cross only shows up for folders of which you are the owner. Teachers with editing rights can remove / share all the bookmarks. Could this mechanism be added to the newsfeeds as well? Feel free to use the code ... This is social constructionism after all...
You can see it in action / download from http://www.olvrode.be/elo/course/view.php?id=31
You can login as student1/student1 or student2/student2 to see how the block changes depending on who's logged in.
Thanks for this Jan ... my team and I like this a lot so we'll certainly look at its potential for further enhancing our rssfeed enhancement.
Best wishes
Derek
Dear Derek,
I just did a fresh install of RSSFeedPlus (Moodle Version 1.4).
The install seemed to go well enough and to test the newly-installed block, I added the suggested Scotsman rss feed in the settings page as follows:
Into Course101:
[3 - max no. items to display]
[12 - hours to refresh]
Scotsman
http://thescotsman.scotsman.com/index.cfm?format=rss
Then I navigated to course101, turned editing on, and at the 'Add Blocks' box, selected 'Add
Newsfeed'. The result was the following series of error messages:
Warning: get_content(class_rss_feed.php): failed to open stream: No such file or directory in
/home/gswborg/public_html/moodle/blocks/rssfeed/block_rssfeed.php on line 140
Warning: get_content(): Failed opening 'class_rss_feed.php' for inclusion (include_path='') in
/home/gswborg/public_html/moodle/blocks/rssfeed/block_rssfeed.php on line 140
Fatal error: Cannot instantiate non-existent class: rss_feed in
/home/gswborg/public_html/moodle/blocks/rssfeed/block_rssfeed.php on line 145
Any ideas what went wrong and how to fix this problem?
Grateful for any help anyone might be able to offer.
-George Bekier
George ... can't seem to replicate your problem at this end. I used the same settings and the Scotsman uri without a problem. You may want to check the files haven't been corrupted by opening them up in a text editor. If not transfer class_rss_feed.php and block_rssfeed.php into the block directory again. I'm assuming you have post 4.1 version of php installed on your system.
Anyone else have this problem?
Best wishes
Derek
Dear Derek,
Thanks for your prompt response.
The (shared host) system I am using has php v 4.3.4 installed.
As per your suggestion, I uploaded class_rss_feed.php and block_rssfeed.php again, checked them in a text editor, removed all stray characters from the ends of the files and tried again. I'm afraid it made no difference and no news feeds were displayed in Course 101, just the same error messages.
I'm stuck.
Regards,
George
Big problems!!!
I successfully implemented the RSS block on my test serve and 2 of my production servers. However, on the third, I installed the block and edited the RSS for the main page and when I saved the changes I got a 500 server error.
The only way that I could get my sight back was to remove the rssfeed directory and language file from the installation. I cleaned up the DB using myphpadmin and removed the incidents of rssfeed. However, now I can't even install the block, it just stalls and gives me the 500 server error. The error log shows a premature end of script.
Any ideas?
Marc
Does anyone have an idea of what might be the problem here? I have installed this block locally, and on 2 production sites and everything works fine. However, this one site seems to have issues.
Marc
I can't believe it!!!!!
Just for the heck of it, I uploaded the "plus" version of this block and now everything works!!! Now, I wish we could get rid of the "GO" button and just use the drop-down menu as the selection tool. You know, make a selection and it automagically enters the information.
Marc
Patrick,
Am I to understand correctly that you have gotten the plus version of the Syndicated Feeds block to work in Version 1.5 Dev. If so, I would love a copy of the code because I have yet to get it to work.
Marc
Thanks Tim;
I finally figured out how to use it. It's a little more cumbersome than the old RSSPLUS, but it is much more professional looking.
Marc