Bookmarklet for quickly adding web pages to course -- testers needed
I used a slightly different approach than the one Jan Diercks discusses here, in that mine lives over in the admin block rather than being a separate resource type.
If anyone would like to test it, you can go here (login: teacher pw: teacher). I'm particularly interested in learning if it works okay on IE under Windows, as my Windows box is being recalcitrant at the moment (time for another reinstall...sigh). It does seem to work fine in Safari, Firefox, and IE on the Mac, and Firefox on Linux.
If the code works okay for others, and there's any general interest, I'd be happy to post it here.
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Hi Tony
Excellent work, works will from your test site under IE 6.0 under Windows 2000 for me..
Can't wait for your posting of code...
Conrad
Re: Bookmarklet for quickly adding web pages to course -- testers needed
I'm going to beat on it a bit more just to be positive everything is working, but be looking for the code soon.
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Another option you should add to opening the resource in a frame and opening it in the same window, is opening it in a new window (or is it even possible to make an option to open in a new tab for Mozilla users?). As of now, if one wanted this option, one would have to go in and edit it.
Otherwise, this is an absolutely wonderful tool. Two things I would like to see possible with it in the future, giving it the ability to add links to a separate resource page, and allowing students to use it.
Oh, I used Firefox PR1.0 in Windows while testing it.
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Thanks for trying it!
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
I'd like to second n's suggestion - why not have the option to open in a new window? Actually, why not simply use the same code and interface that Moodle uses when adding a resource (Link to a file or web site)?
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Also, while I have a lot of programming experience (being a CS refugee and all) I'm fairly new to the PHP language and definitely new to Moodle code. Constructive criticism is very welcome.
Usual disclaimers about experimental code apply.
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Nice tool for students and yes, real SC !!
Small wish I: when I come from a course and enter my personal bookmarks, it would be handy to have in the navigation bar a "back to last course" like in Willams bookmarks. '(OOPS already there: the goto choice!!)
For me it are two different products: William's BM is putting "donkey ears" inside Moodle, yours will be part of a toolbox that the student will carry from course to course. (So block is the right place)
Small wish II: is it possible to get a favicon if I paste the javascript link in my favorits?
When you start you wonder about choices with the same name: New, move, delete... for folders(left en files (right) can you make a visual marker?
Question: how can I save all my bookmarks into a file with IE6?
Wish III: export bookmarks as XML?
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Ger, I think you are refering to this bookmark block based on Stefan Frech's code??
Small wish I: when I come from a course and enter my personal bookmarks, it would be handy to have in the navigation bar a "back to last course" like in Willams bookmarks. '(OOPS already there: the goto choice!!)
I used the goto button, because I wanted to be able to add bookmarks to multiple courses at once. I sometimes find a link which is suitable for all the students I have. That's why I didn't want the navigation bar to show one course...
Small wish II: is it possible to get a favicon if I paste the javascript link in my favorits?
Yes, but I think it will always be the one all the Moodle pages have.
When you start you wonder about choices with the same name: New, move, delete... for folders(left) and files (right) can you make a visual marker?
Yes, I'm thinking of using the icons Stefan Frech provides, makes translating the block easier too... Maybe different colors for folders / bookmarks?
Question: how can I save all my bookmarks into a file with IE6?
In IE click on File / Import and export...
Wish III: export bookmarks as XML?
Can't help you with that...
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
There is no step 6, actually. It's a typo. The step labeled step 6 should be labeled step 5. I'll fix that as well.
I should have Spanish and Korean translations available, too (not that those languages should be considered privileged, but those are the ones my officemates speak )
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Re: Bookmarklet for quickly adding web pages to course -- testers needed
Worked flawlessly on Firefox 0.8.
Thank you very much.
Change summary:
1) Fixed typo in README file (there is now no mysterious "step 6")
2) Tried to improve word-wrap issues in the README file, but this was difficult due to there being a few lines of code in there. If you're having trouble, maybe a text editor that handles long lines would be a better way to proceed.
3) Clarified some docs and bookmarklet installation instructions.
4) Fixed a minor bug that might cause incorrect behavior when adding a web page that doesn't have a title tag.
6) Suggested Spanish and Korean translations for the help file are now provided, thanks to my officemates.
I looked into making this use the full-blown resource display tweaking (control of window size, etc.) that you get with the standard Moodle add resource function, but in the end I decided not to do that. It would greatly complicate the instructions for adding the modification (you'd need to add code to several places in mod.php).
If Martin or someone else on the official programming team wanted to add this feature to the general Moodle release it'd be worth altering mod.php, but otherwise probably not (since you'd have to do it all over again every time you upgraded). If you really need all the cool features you can always edit the resource after adding it.
Again, you can test out the modification before installing it by going to http://teachanything.net/course/view.php?id=38 and logging in as teacher, password teacher.
This code should still be considered experimental, but so far no one has reported any serious bugs.