Community Server on my mind

J-O Eriksson's blog


  • Running on CS 2.1 SP 2

    See top menu for subscription options

    Technology Blogs - Blog Top Sites

    BlogRankers.com

    Add to Technorati Favorites



CSModule for MSN Soapbox

Have you seen the New MSN SoapBox? It's like MSN's answer to YouTube. You can upload your videos, comment rate etc videos.

From what I've seen of it so far it seems a pretty cool site. And if it's a cool site, you need to be able to integrate it to a cool application like Community Server. Smile

So, I put together a CSModule for you, so you can embed MSN SoapBox videos into your CS Forums and Blogs. It uses a SoapBox Text Part and inserts the proper HTML into the post at PreRenderPost time.

Download it and try for yourself from my Download area. But be aware that I just put it together this evening, so I haven't tested it very much, so if you find bugs let me know. 

Also I'll post about the source code in an upcoming post if anyone's interested. I made it as simple as I could, so there's really not much code in this version, but it shows an very easy way to implement Text Parts via CSModules.

Here's an example for you

If you enjoyed this post Subscribe to my feed via RSS or e-mail!
Posted: Friday, September 29, 2006 12:00 AM by J-O Eriksson

Comments

Community Server Daily News said:

news of the day a grab bag for what's happening in Community Server Lordy! Lordy! Look who's an Old-Timer

# September 29, 2006 2:02 PM

Announcements said:

This week... Eric Falsken puts his CS-Wiki Sandbox online. Ken Robertson provides a study on a Lesser

# October 1, 2006 8:21 AM

Michael S. Scherotter said:

Works like a charm!

Great job!

Is there any way to get it to work on the Front Page?

Michael

# October 1, 2006 9:22 PM

J-O Eriksson said:

Thanks Michael,

Well, yes, one way to do it on the frontpage, would be to wrap it into a regular ASP .NET server control which you then put in your default.aspx. Maybe the ASP .NET Server control should read the HTML from a text file in the web or similar, for easy updating.

Another alternative would be to do it via Content Parts. I haven't tried yet if it would work by just inserting the HTML into a Content Part. I suspect that some of the HTML tags would be stripped out at run time by CS. This is, I think, configurable.

I might look some more at this scenario during the week. If you work further in any of the above, let me know if you find at good solution.

# October 2, 2006 1:27 AM

J-O Eriksson said:

Did some more research on this. It seems Content Parts can be used to embed videos, but Tiny_MCE strips out the embed HTML. So if going along that road, requires you to add the HTML directly to the SQL Table for Content parts, or configuring tiny_MCE to accept the HTML tags (which opens up this for all posting on the site)

# October 2, 2006 12:13 PM

R said:

I tried to insert it in a blog and it didn't work. How do I use it? I installed as per the instructions, but don't know how to use it in forums or blogs. Do I just add: [SoapBox: c1b72697-d9aa-41eb-a72f-a71812096b8e] ? It shows up as text instead.
# October 5, 2006 2:38 PM

J-O Eriksson said:

Yes you should just use the syntax as you describe it. Appearenlty it even works in the comments herer :-)

Are your using CS 2.1 on ASP .NET 2.0? Are you adding the right row into the CSModules section of the communityserver.config and then touching the web.config?

# October 5, 2006 3:02 PM

J-O Eriksson said:

Changed the code now so it won't show as a video in a comment.

# October 5, 2006 3:16 PM

R said:

It is working now on my site. How did you change the code to work though? I didn't update the bin on my server. Does the code reside on your server? That worries me a little bit as I don't my site to stop working based on that. ps: I am using cs 2.1 for .net 2.0 framework.
# October 5, 2006 9:59 PM

J-O Eriksson said:

The code update I talk about is just installed on my web, I haven't published it anywhere yet.

So my code change had nothing to do with it working on your server now.

# October 6, 2006 1:07 AM

Monthly Newsletter said:

Welcome About this issue of Community Server Monthly Welcome to the October 2006 issue of the Community...

# October 11, 2006 7:04 AM

Michael S. Scherotter said:

It looks like there is a bug with the href code generated by the CSModule code: Take a look at http://mindjetlabs.com/cs/blogs/synergist/archive/2006/10/04/A-Tour-around-the-new-Mindjet-Labs.aspx you will see that the href attribute starts with a - instead of a ' ... Michael
# October 11, 2006 10:35 AM

J-O Eriksson said:

True! Found it in the code, don't know how it ended up there. I am in too much hurry sometimes.

It'll be fixed asap and uploaded in a new version here on my site.

Thanks for pointing that out to me! :-)

# October 11, 2006 1:59 PM

eben said:

hi, what do you mean whe you said "touch the web.config" what do i have to change

# December 25, 2006 2:37 PM

J-O Eriksson said:

Hi Eben,

One way to do this is to just open the web.config in for example notepad, and just save it so it gets a new created date. This will restart the web application and changes to the other configs are applied in that process.

# December 26, 2006 4:52 AM

Community Server Bits said:

J-O Eriksson released the first CSModule for MSN Soapbox, a new video service from Microsoft where, like

# March 12, 2007 8:18 AM
New Comments to this post are disabled