Code For Slide.Show Extension for BlogEngine.Net

by Bill Beckelman 1/5/2008 3:59:00 PM

Earlier in the week I posted a working example of a BlogEngine.Net extension for Slide.Show. A few people requested that I post the code so here goes.

Note: I modifed the SilverLightPlayer.cs file I found on flawless code.net and all the credit for SilverLightSlideShow should go to Sean as I can follow c#, but think I write vb much better ;).

 

1. To start with you will need to move the SilverlightSlideShow.cs file found in the dowload to your App_Code\Extensions directory. That really takes care of the extension for BlogEngine.Net.  


 

2. To get the Slide.Show part working, copy the SilverlightSlideShow folder found in the download to the root of your website. Note that all of the files found in the SilverlightSlideShow folder are stock from Slide.Show except for those in the SilverlightSlideShow\Example folder. Please visit their website for additional examples and for help with using Slide.Show.


3. Next, you will need to modify the the Configuration.xml file found in the SilverlightSlideShow\Example folder to correctly point at the Data.xml file in the same folder. Change "yourwebsite" to your domain name in the dataProvider element.

For additional changes you can make to the Configuration.xml file to change the look, feel and operation of your slide show see the Slide.Show project.

 

4. Next you need to modify the Data.xml file found in SilverLightSlideShow\Example folder so that each of the images has the correct path to the image stored on your website. Change "yourwebsite" to your domain name.

5. Now create a new blog post and enter the  token [ silverlightslideshow:example ] in the body of the post without any spaces between the brackets and silverlightslideshow:example. Save the post. It should now display the example that I posted earlier in the week.

 

6. To create your own slide show, just make a new folder in the SilverlightSlideShow folder such as familychristmas. Copy over the Configuration.xml and Data.xml from the SilverLightSlideShow\Example folder and modify as necessary so that Configuration.xml file points at the Data.xml file and Data.xml points at your images depending upon where you have placed them on your website. In your post the token you will enter will be [ silverlightslideshow:familychristmas ] without the spaces between the brackets and silverlightslideshow:familychristmas.

 

There are many things that could be done to improve this extension. I will post any update I make to improve it. Please let me know what direction you go with it as the person that starts something is never the one to think of the coolest feature.

 

SilverlightSlideShow.zip (390.05 kb)

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

BlogEngine.Net | Slide.Show

Related posts

Comments

2/15/2008 4:02:28 PM

Penfold

Hi

Really great extension and would really like to use it, I have followed your instructions but all I get displayed is the text [silerlightslideshow:example] the gallery doesn't display. I know this is probably a simple question but if you can help I would really appreciate it.

Pen

Penfold gb

2/15/2008 4:21:43 PM

Bill Beckelman

Pen,

Thank you for the comment. Please check your spelling of "silverlightslideshow." If your code is the same as in your comment it looks like you are missing a "v." Please let me know if this solves your problem. If it doesn't we can dig into it further.

Bill

Bill Beckelman us

2/17/2008 11:42:27 AM

Penfold

Hi Bill

Oops....No it is spelt right in the page and post, however I think the problem is more widespread as I have tried other extensions and I am getting the same result. I cant get any extension to work Frown all I get is the text.

Pen

Penfold gb

2/17/2008 2:24:55 PM

Victor

Hi Bill,

Thanks for the cool extension. I seem to run into the same problem that Pen had. I'm pretty sure that I had the code spelled correctly.

Victor us

2/18/2008 3:21:23 AM

Penfold

Hi Bill

It seems to be a wider problem with ALL extensions, any that I have tried just print the test in the post or page... Sorry about the spelling I have checked on the pages and it is spekt correctly.

Will try the Forums for help..

Cheers

Pen

Penfold gb

2/26/2008 7:11:44 PM

Euo

Hi Bill,
I play around with this great extension and everything works fine except than when I view my post (as individual post like this page of yours), I got an error ErrorCode 4001 ImageError. I can not figure out why.

Euo ph

2/26/2008 10:11:54 PM

Bill Beckelman

mastereuo,

Please check out www.codeplex.com/.../View.aspx?ThreadId=18790 on the slide.show discussion as the error is mentioned there. Hopefully it will get you started in the right direction. Please share if you solve the problem.

Bill

Bill Beckelman us

2/26/2008 10:14:01 PM

Bill Beckelman

Pen,

I'm sorry I haven't had a chance to look into your error. Have you solved it by chance before I give it a go?

Bill

Bill Beckelman us

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

5/11/2008 4:18:35 PM



Powered by BlogEngine.NET 1.3.0.29
Theme by Mads Kristensen

About the author

Name of author Bill Beckelman
I live and work in South Jordan, Utah

E-mail me Send mail

Calendar

<<  May 2008  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

Pages

    Recent posts

    Recent comments

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in