New extension for BlogEngine.net

14. October 2007 09:32 by rtur.net in BlogEngine, mp3player  //  Tags: ,   //   Comments (20)

OOk, I'm not much of a blogger, but I did try several blog engines on Microsoft platform and beyond before settling my mind on BlgogEngine.net. I like it a lot for simplicity and elegancy of the code base. May be I'm an old school, but I do prefer applications which code I can comprehend in it's (almost) entirety - it gives me (false) sense of security. The other thing that I like about it is support for extensibility - so you can make that simple elegant code base bloated with tons of stuff that you can package so that it pretends to be an "extension". One problem though is that BlogEngine is relatively new player and there are not too many extensions yet present. So I decided to fix it a bit…

Jokes aside, one thing that BlogEngine is missing is multimedia support. Sure, it's not a core feature and it does belong somewhere in plug-ins directory. And I really needed audio support for one of my projects. After some looking around I found that there quiet a few free flash players you can use in HTML pages (may be Microsoft will come up with knocking-your-socks-off free SilverLight player some day and it will take over the world?). By far, the most popular and slim in-line player I came across is the one used in WordPress blogs. I decided that this is the best candidate for adoption and wrote a little wrapper around this flash player to hook it up with BlogEngine. Extension that I resourcefully named "mp3player" you can download here. There are also some instructions on how to install and use it, and all code is available for you to use and change at will. I intend to maintain and enhance it over the time so any feedback on bugs/issues or suggestions for improvement are greatly appreciated.

Below is an example what it looks like – most likely you’ve already familiar with the picture, which is another advantage of using this particular player. Just click an arrow to test it:

Comments (20) -

alexb
alexb
10/15/2007 8:53:00 AM #

Thanks, just what i needed!

Miron
Miron
10/15/2007 8:35:11 PM #

Thanks for the extension, but I couldn't make it work on the hosting server.
On my local machine it works perfect.
In the hosting server, the page is loading for a l o n g  time, and nothing happen. the control is invisible
:-(

Miron
Miron
10/16/2007 6:42:39 AM #

Update, I made it work, and it works just perfect.
Was permission on the folder "audio"
Good work, man! Thanks!

rtur.net
rtur.net
10/16/2007 8:33:57 AM #

Great, I glad you’ve made it work. I’ll add a note about permissions to the download page, thanks for your feedback.

Andre Tagesgeld
Andre Tagesgeld
5/8/2008 12:39:59 PM #

Wow - I just installed it and it works like a charm. Thank you very much!

Fonds
Fonds
5/15/2008 12:52:06 PM #

thank you for your report...it´s new for me but i will try it out and hope, it fits:)

Siam Sunshine
Siam Sunshine
5/27/2008 9:37:10 PM #

Like it, nice. Good looking theme too! well done on a good blog.

zaidler
zaidler
11/25/2008 12:46:51 PM #

Wow it works great, very cool theme
everyone got attracted
Regards
<a href="http://www.zaidler.com/landscape/">Abstract Landscape Paintings</a>

Lhincy Dress Up
Lhincy Dress Up
11/25/2008 9:03:23 PM #

Thanks for sharing this addons. thanks alot rtur. you have a lots of info. i love you blog site.

SinglesDigest
SinglesDigest
12/1/2008 4:07:16 PM #

I am extremely thankful to you,
these addons really helpmed a lot
thank you
<a href="http://www.singlesdigest.com/">SinglesDigest</a>

so great!
so great!
12/16/2008 5:06:06 AM #

so great! thanks!

John
John
12/17/2008 10:31:59 AM #

Installed BlogEngine.Net 1.4.5.

Followed your steps for installation of the mp3 player and receive an error on line 190.

The 'mp3player.cs' is in the 'Extensions' folder.
The 'audio' folder is located in the root of my blog and I granted 'ASPNET' full permissions.

The Source Error reads...saying line 190 is

Line 188:        _cnt++;
Line 189:
Line 190:        return String.Format(s, AudioRoot(), _cnt, sFile, "No",
Line 191:            _settings.GetSingleValue(_bgColor),
Line 192:            _settings.GetSingleValue(_bg),

Enjoying BlogEngine and would like to have this mp3 functionality as well.

Thank you for your posts and information, hope to hear from the community soon.

rtur.net
rtur.net
12/17/2008 9:29:01 PM #

John, try to add this before line 190:

if (_settings == null) SetDefaultSettings();

John
John
12/19/2008 8:08:56 PM #

Hi,

The error is gone.
Your code above resolve that...Thank you.

Now in 'Extension', I see 'mp3player 1.3.0.0', but do not see the 'Edit' link on the right side.
In my 'audio' folder (which has the appropriate permissions, I believe)...there are 5 files.

Admin.aspx
Admin.aspx.cs
player.js
player.swf
test.mp3

When I add [mp3:test.mp3] to my blog, I do not get the player...any thoughts.

Thank you for your efforts.
My blog will be at http://blog.elmsoftware.com (It will be officially launched on my site in a few days...)

Pankaj
Pankaj
12/22/2008 9:31:26 PM #

Thanks for sharing with us!!

Speed Dating NYC
Speed Dating NYC
12/22/2008 10:20:38 PM #

This is great. I was looking for a player too for one of my projects. This comes in handy. I agree that Microsoft should come out with a Silverlight player.

Firoz Ozman
Firoz Ozman
2/11/2009 8:02:16 PM #

Thanks very much.
I have 1.4 hosted. I tried including this code for extention. [mp3.test.mp] does not get converted to the player.?

Any idea?

Thanks
Firoz

Firoz Ozman
Firoz Ozman
2/11/2009 8:05:35 PM #

Forgot to mention... the player works well in the admin page.

rtur.net
rtur.net
2/11/2009 9:18:47 PM #

@Firoz: did you try "if _settings == null" trick described above? It looks like in some configurations extension loaded without settings been ever created.

Firoz Ozman
Firoz Ozman
3/24/2009 5:17:19 PM #

Cool... That worked!

Comments are closed

Recent Comments

Comment RSS