Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

The Community Blog is a personal opinion of community members and by no means the official standpoint of DNN Corp or DNN Platform. This is a place to express personal thoughts about DNNPlatform, the community and its ecosystem. Do you have useful information that you would like to share with the DNN Community in a featured article or blog? If so, please contact .

The use of the Community Blog is covered by our Community Blog Guidelines - please read before commenting or posting.


Media Module Released with Social Integration and Now in C#

DotNetNuke Media Module

I couldn’t believe it when I saw it, but the last official release of the Media Module for DotNetNuke was in January of this year!  That is way too long for this module to go without having a release.  Therefore, I am very excited to get this release out the door, and even more excited about the nature of the updates that can be found in this release.

PLEASE NOTE:  The Forge where the module is hosted will take up to 24 hours before the release is reflected.

If you are not aware, the Media Module began several years ago and was called the Image Module.  All it could do was allow you to choose or upload an image.  Not the most exciting module out there, I know.  Later, the module included support for rendering the appropriate HTML for videos and Flash and was renamed as the Media Module.  It wasn’t long after this when I took over the project.  There have (in my opinion) been some great releases since then adding things like oEmbed support, and more.  These kinds of upgrades really redefined what the module allowed you to do since now “media” could be anything.  It could be embed codes from your favorite site, or content from well over 200 websites that support oEmbed

Today, I am excited to announce some very exciting updates that have just been rolled out in this release which I hope you will enjoy to take your media integration and features to the next level…

C# Conversion

This release marks the very first release of the Media Module written in C#.  All prior versions was written in VB.  There were no ideological reasons for this.  The reason was simple…  I was about to speak at a C# user group – so I needed to either build a new module in C#, or convert an existing project to C#.  With the core of DotNetNuke being written in C# now, it made sense to convert this module due to it historically being included with the core. 

Media Module C# Conversion

I used a tool called Instant C# to convert the project, and it did amazingly well.  This project isn’t huge with only 2,600 lines of code, but I was still impressed that I only needed to resolve 18 errors in the entire project.  They were very easy things too.  Mostly, it was adding appropriate references to the class files.  The only other thing I had an issue with were the user controls.  I kept trying to build the project, but the designer files for the user controls were not properly picking up the correct types.  After way too much troubleshooting and trickery, I finally found that the class files for the user controls had been turned into abstract classes.  Once I fixed that, the module was already usable with the existing features from the earlier release.

Media now Includes SOCIAL

Part of the reasons I chose to update this module was to integrate it with the social features in the 06.02.00 release of DotNetNuke.  This means that you cannot install this release on any prior versions of DNN.  However, the integration is pretty nice (and fairly easy to do). 

Media Module Social Integration

Administrators can set a site-wide setting to determine whether updates to the media module are posted to the journal as a status update.  You can also set another site-wide setting to notify site administrators when the media module has been updated.  This could be a useful feature, if you want to keep an eye on what media people are posting on your site.

Media HTML Generation Now an API

Part of the roadmap for the Media Module has always been to take the HTML logic out of the views in such a way that it could be an API for another other module to use.  This would allow other modules to also display media in the same way this module does.  Thanks to the social features and how the integration was needed to be done, this has been done as of this release.  As long as this module is installed on your development site, you can program against the Media Module to easily display any content using a simple API call.  Just make sure when you redeploy your own modules, that you also redeploy this one too.

Get HTML from Media Module

The code sample above literally returns either a useful error, or the HTML you want to display.  This is abstracted a level further in the actual Media Module business controller class.

Other Updates

Media Module BrandingAll of the other updates are pretty minor.  The module is now branded with the DNN-colored M for “Media.”  When you choose to edit this module on your site, or add it to a page, look for this logo.

I thought I had support for MPG in the past, but as it turned out, there was a bug in a very specific spot that would actually ignore the MPG files entirely.  Now, these files are fully supported.

There was another nasty bug that I didn’t anticipate on sites where the original superuser/host account had been deleted from a site.  On any site with this configuration, the module actually wouldn’t install properly.  This issue has been fixed for this release.  However, it is not back-ported to prior releases.

Download the Media Module

PLEASE NOTE: The Forge where the module is hosted will take up to 24 hours before the release is reflected.

Comments

Comment Form

Only registered users may post comments.

NewsArchives


Aderson Oliveira (22)
Alec Whittington (11)
Alessandra Daniels (3)
Alex Shirley (10)
Andrew Hoefling (3)
Andrew Nurse (30)
Andy Tryba (1)
Anthony Glenwright (5)
Antonio Chagoury (28)
Ash Prasad (37)
Ben Schmidt (1)
Benjamin Hermann (25)
Benoit Sarton (9)
Beth Firebaugh (12)
Bill Walker (36)
Bob Kruger (5)
Bogdan Litescu (1)
Brian Dukes (2)
Brice Snow (1)
Bruce Chapman (20)
Bryan Andrews (1)
cathal connolly (55)
Charles Nurse (163)
Chris Hammond (213)
Chris Paterra (55)
Clint Patterson (108)
Cuong Dang (21)
Daniel Bartholomew (2)
Daniel Mettler (181)
Daniel Valadas (48)
Dave Buckner (2)
David Poindexter (12)
David Rodriguez (3)
Dennis Shiao (1)
Doug Howell (11)
Erik van Ballegoij (30)
Ernst Peter Tamminga (80)
Francisco Perez Andres (17)
Geoff Barlow (12)
George Alatrash (12)
Gifford Watkins (3)
Gilles Le Pigocher (3)
Ian Robinson (7)
Israel Martinez (17)
Jan Blomquist (2)
Jan Jonas (3)
Jaspreet Bhatia (1)
Jenni Merrifield (6)
Joe Brinkman (274)
John Mitchell (1)
Jon Henning (14)
Jonathan Sheely (4)
Jordan Coopersmith (1)
Joseph Craig (2)
Kan Ma (1)
Keivan Beigi (3)
Kelly Ford (4)
Ken Grierson (10)
Kevin Schreiner (6)
Leigh Pointer (31)
Lorraine Young (60)
Malik Khan (1)
Matt Rutledge (2)
Matthias Schlomann (16)
Mauricio Márquez (5)
Michael Doxsey (7)
Michael Tobisch (3)
Michael Washington (202)
Miguel Gatmaytan (3)
Mike Horton (19)
Mitchel Sellers (40)
Nathan Rover (3)
Navin V Nagiah (14)
Néstor Sánchez (31)
Nik Kalyani (14)
Oliver Hine (1)
Patricio F. Salinas (1)
Patrick Ryan (1)
Peter Donker (54)
Philip Beadle (135)
Philipp Becker (4)
Richard Dumas (22)
Robert J Collins (5)
Roger Selwyn (8)
Ruben Lopez (1)
Ryan Martinez (1)
Sacha Trauwaen (1)
Salar Golestanian (4)
Sanjay Mehrotra (9)
Scott McCulloch (1)
Scott Schlesier (11)
Scott Wilkinson (3)
Scott Willhite (97)
Sebastian Leupold (80)
Shaun Walker (237)
Shawn Mehaffie (17)
Stefan Cullmann (12)
Stefan Kamphuis (12)
Steve Fabian (31)
Steven Fisher (1)
Tony Henrich (3)
Torsten Weggen (3)
Tycho de Waard (4)
Vicenç Masanas (27)
Vincent Nguyen (3)
Vitaly Kozadayev (6)
Will Morgenweck (40)
Will Strohl (180)
William Severance (5)
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out