If you're interested in the idea of Mahara as an LMS, check out my brainstorming thread about that from last April: https://mahara.org/interaction/forum/topic.php?id=6242
Cheers,
Aaron
]]>And the Mahara community rocks too!
]]>I'm the maintainer of Embed.ly plugin (new version available at https://mahara.org/view/blocks.php?id=35826 BTW).
I've looked into your issue and discovered, that Embed.ly only supports "card" of Hackpad. That means it creates sort of a block/card that displays only the link to your Hackpad document.
As Kristina suggested you also cannot use iframes since the Hackpad embed code includes <script> tags.
The solution is to write custom filter for HTMLPurifier. You can find custom filter here: https://wiki.mahara.org/index.php/File:Htmlpurifier-hackpad-filter.zip
The zip file contain two files: Hackpad.php (this is the actual filter) and filters.xml (the file which lists all the available filters - this is the updated version of the file which also contains reference for Hackpad filter).
Installation instructions:
Usage instructions:
HTH, Gregor
]]>You cannot embed Hackpad with the "Allowed iframe sources" functionality in Mahara because the embed code is not an iframe. ;-) Mahara strips out any <script> code that it does not understand. You could create a simple filter to allow Hackpad code through (similarly to how we allow YouTube and some others to be embedded by URL and not only iframe code).
Cheers
Kristina
]]>
Thanks to both of you for your replies. Dirk's workaround looks like the best option right now so I'll go with that, at least for a test case.
What I am attempting here is to have my content archived and kept up to date in one place (one that allows for multiple editors and authors) - that's the function of Hackpad in this case - and then to be able to post this content using embed code in multiple locations - Moodle being one, Drupal another (on our public website) and Mahara the other (in Mahara I can allow readers to comment on each page if they so wish - I can't do that with Moodle but I do need the tracking aspect of Moodle to know what student are reading and what they leave out ...
I am probably one of those who really appreciates the thought that Mahara might extend into a simple LMS one day - it only needs a few additions to work like that for me and, I am already prototyping a use scenario that allows Gaia U to host other congruent organizations that are more focussed on project management than portfolios ...
The more I work with Mahara the closer I think it could get to be a much needed, almost all singing and dancing platform for informal but extensive world-change oriented networks ... other folks favor Drupal but I've been down that track and got burned before ...
Anyway, thanks for the Hackpad work-around - will report how it goes here later ...
]]>my work around is below. Unfortunately it's completely useless to most mahara users, but perhaps a good demonstration that embedding into mahara is still a pain.
Under Administration->Extensions->Allowed iframe sources, add bit.ly as a allowed source. Then got to bitdotly and shorten your URL
Then, use a textbox and in the HTML, enter this <p><iframe src="http://bitdotly/1pMOf99" width="800" height="1200"></iframe></p>
Here is the end result: http://www.portfoliocommunities.com/user/admin/hackpad-workaround
ps. bitdotly seems blacklisted
]]>
I don't have much experience neither with embed.ly, hackpad nor with the plugin. But I noticed that the plugin introduces a new blocktype where you have to enter an api-key (if you didn't enter that in the configuraiton) and an url of the site you are displaying. From your example I would say you have to use https://lol_learningonline.hackpad.com/3oHBi2rSKLu as an url.
The response from the embed.ly-server, however, is in link format and that's displayed as a pure text by the blocktype.
I guess, the blocktype could render the link into something more fancy, though I'm not sure how uniform the output from the different sites is. And the load of text (that's hidden in the javascript-file from the embedd-code you provided) doesn't appear in what's sent to the plugin.
Not sure, if that's all that you get from hackpad or if you can change the output of the hackpad-element to something else. Whats the output that you get in moodle, is it the text with a link below or do you get the complete content from hackpad embedded in to the page?
Tobias
]]>Here is one embed code example from Hackpad (it is set as open to public) - <script src="https://lol_learningonline.hackpad.com/3oHBi2rSKLu.js?format=html-notitle"></script><noscript><div>View <a href="https://lol_learningonline.hackpad.com/3oHBi2rSKLu">1.1 Adaptive Un/Learning</a> on Hackpad.</div></noscript>
Using the same code I CAN have this page show up in the Book in Moodle 2.6.
If anyone can solve this for me I'd be delighted and would happily make a contribution for your time and effort.
]]>Why don't you just use the Allowed iframe feature? Or do you want to allow any iframe that embedly allows?
Cheers
Kristina
]]>
I have checked the Embed.ly plugin against Mahara 1.6 and 1.7 and it worked.
I haven't tested it under Mahara 1.8 and 1.9 but it should work (except that this plugin would need new icons - in the view/page editor).
HTH, Gregor
]]>I see it hasn't been updated since Mahara 1.5, but maybe it doesn't need to be?
]]>