Banner Home

Module focus - Mahara Facebook Like & Twitter Tweet

In this module focus, we look at two relatively new additions to the Mahara plugin directory - Facebook 'like' and Twitter 'tweet' buttons.

Facebook Like and Twitter Tweet.

Last time, we reviewed the embed.ly block and saw how good it was at pulling in all sorts of different content from a plethora of Web 2.0 services, including the hugely popular social networks twitter and facebook. 

Now, you can push updates to these social networks, using facebook like and twitter tweet buttons.

In the past few years, facebook like and twitter feed buttons have been springing into life all over the web, enabling users to share the content in a micro update on their profiles. You've probably seen them many times before, but here's what they look like for those who don't know:

twitter-facebook-buttons

Clicking the facebook like button sends an update to facebook showing the content and identifying that the user likes it. Similarly the twitter button tweets the content. You need to be logged in for the api to connect and create the update.

These plugins allow you to add the buttons to your Mahara pages as block types. Once again, these plugins are the work of Gregor Anželj to whom the Mahara community must be very grateful.

 

PDF print functionality for Mahara

As part of the Leadership in Technology project funded by LSIS, we have developed a plug in for Mahara allowing individual pages to be saved or 'exported' as PDFs

Preamble

One barrier to adoption of Mahara in schools is that it doesn't provide a hard copy of the 'views' (pages) where the evidence of learning is displayed. Some assessors and verifiers insist this is available for marking.

Developing the functionality to download a view as a PDF serves as a solution to this.

Implementation

It is not necessary to create the PDF functionality from scratch as the wkhtmltopdf open source utility already exists. So only an interface is needed within Mahara for this.  This might be developed as another export plugin type which would allow for more flexibility if later iterations required more features etc.

The user will have the option to print only a single view at a time for the initial version of PDF export. This can be done either from the view page itself via a link at the bottom of the page or from the My Portfolio/Export page.

A simplified template for the PDF view will be created. This will remove certain elements of the view that aren't necessary in a hard copy such as editing links, site navigation, collection navigation, feedback input boxes etc. This view might either be implemented using CSS, in much the same way as the existing print functionality, or with the use of blocktype functions similar to the render_self functionality like default view rendering. Or both.

This means that we can control the printing of non-static items such as “Wall posts” to display in a nicer format and remove unnecessary elements like input boxes if they exist. Downloadable files will be stripped off 'Download' links and the details content could be moved to the main listing instead. 'Blog' and 'External feed' instances could only print the number of posts set in their configuration and not print any pagination links etc. Likewise for anything else that has a 'limit' attached.

If using the render_pdf solution then like the existing render_self function the parent blocktype class will have a default simplified version for those blocktypes that don't specify their own. This will simply print the title of the element and will serve mostly to preserve the views basic layout structure for columns where no other printable format for an element exists.

Using this simplified view we can also offer the user a 'Preview of the view as it is going to be printed in PDF. Clicking on the 'Export to PDF' button from the view or Export page will take the user to a separate page and display this compiled view. The user can then confirm the export or return back to the previous page.

Technical details

PDF export must interface with the wkhtmltopdf utility which means that the code will have to check this is installed before offering the 'Export to PDF' option to users. Further to this there will be an administration option for enabling/disabling this functionality for all users.

There will be a new config record for determining the status of PDF export within the site – enabled/disabled.

 

21 3/4 ways to get involved with Mahara e-portfolios

Mahara e-Portfolios: 21 ways to get involved with the Mahara e-Portfolio project

  1. Use the software
  2. Ask questions to the community
  3. Bookmark mahara articles/help/videos/resources
  4. Report bugs
  5. Give feedback from students/tutors/admins
  6. Spread the word about Mahara
  7. Translate for Mahara
  8. Write tutorials for Mahara - mahara wiki, video tutorials, podcasts etc
  9. Create screencasts
  10. Answer questions in the Mahara Community forums / Twitter (not just technical, but pedagogical / support etc too)
  11. Squash bugs - small or big, easy or difficult. Essential for mahara development
  12. Provide training
  13. Test features - local server, git and test new features
  14. Design Themes - CSS / HTML / DWOO knowledge. Themes override a raw theme, so you can play around with it! You don't need amazing web development skills
  15. Write unit tests
  16. Write books - eBooks, paperbacks, online documentation
  17. Plugin development
  18. Review the code - ensure security, quality, functionality
  19. Develop cool features
  20. Become a Mahara partner - ability to use the Mahara trademark
  21. Sponsor features - fund development with a partner

21 3/4. Make contributors smile - It's the people behind the community that makes the community. Talk with them!

 

Courtesy of Kristina Hoeppner, Catalyst IT NZ presentation at #maharauk11 conference

Thanks Kristina!

 

Module of the month - Mahara embed.ly

Welcome to the first edition of the TDM Module of the Month. Every three months we will nod you in the direction of our favourite new Open Source module/extension.

Mahara Embed.ly blocktype - embed content into a Mahara view

Mahara's View (now known as Page) framework is its standout feature that sets it apart from other ePortfolio systems, but a long-standing niggle has been it's lack of flexibility when it comes to the embedding external content. HTML purifier has been a good temporary solution but it's lack of filters/support for a variety of services has been the cause of some frustration for users and system admins.

 
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 


Page 1 of 3
maharapartnersmalltotaralpi-58skillsfundingagencyesf_logo_smallapprenticeships