BlogEngine Multi-Blog Dog Food

by BizTron 11. March 2010 07:36

Current Multi-blog enabling LINQ to SQL BlogEngine.NET Provider. (Updated 3/12/10)

I have been asked for this code so that we can share the multi-blog solution that has been working for me for almost a year now.  This is the time to check it out and help make it work for yourself and others.  I’m going to continue to “dog food” this here.  Current version of BlogEngine.NET supported by this provider, as of this post, is 1.6.0.3.  Although I need to update my own site(s) from 1.6.0.1.

 

How will I update?

Mine is easy.  Drop in the new DLLs.

If I do a code “diff” and find the Web code to have changed recently (which I’m sure it did) I will copy those specific files to the Web folder.

 

How do you update from a clean BlogEngine.NET 1.6.0.3 code base?
  1. You should download the latest BE.NET code from codeplex and create a folder for the solution. 
  2. Extract the code from the zip into your solution folder. (…and follow the directions for setting up a stand-alone SQL Server Blog)
  3. Copy and unzip the BlogEngine.Linq2SQL.3-12-10.zip folder into the solution folder with the Core and Web projects.
  4. Add an existing Project to the solution, select the BlogEngine.Linq2Sql project.
  5. Verify the References (to project “BlogEngine.Core”)
  6. Add a reference to “BlogEngine.Linq2SQL” from the “BlogEngine.NET” Web site.
  7. Change Target Framework on BlogEngine.NET Web site to “.NET Framework 3.5
  8. Execute the SQL build script “Linq2SqlUpdate.sql” to add schema to support Multi-Blogs.
    • Make sure to run against the Database you created in Step 2.
  9. Assuming you are using the correct connection string, modify the Web.Config
    • blogProvider, membership, roleManager
    • See: Web.Config.xml
More...

Tags: ,

.NET | ASP.NET | BlogEngine.NET | LINQ | SQL Server

BlogEngine.NET SqlBlogProvider has Post update issue

by BizTron 10. August 2009 01:32

This is what you see when attempting to rate a new post. Click on a Star to rate the post.  Notice the infinitesimally small rating that is generally added when creating a first post.  This may be something I did myself while trying to “fix” the Add a new Blog script.

image

 

These are the symptoms I could find so far, but I cannot isolate the DateTime property that is causing the Exception.More...

Tags: ,

BlogEngine.NET | Blogging | Architecture | LINQ | SQL Server | ASP.NET | .NET

Add Custom DateTime Format to Blog Posts

by BizTron 11. September 2008 04:42

 

DateTime Format for Blog Posts for BlogEngine.NET

...or wherever you want to standardize output formatting.

Here is a rather simple solution to my issue of Date Time formatting on my blog posts.  I noticed that as of a recent version of BlogEngine.NET, the Date looked something like this: "29. June 2008 09:00"  I wanted to change it to something more readable to my target readers, some very local, such as: "Sunday, June 29, 2008 09:00 AM".  Well, I might want to change it sometime, AND I would like to drop it into multiple Themes, so I decided to place the format in Web.Config AppSettings. I looked up my specific Format and added an appSetting.  Then I just replaced the code used in "PostView.ascx" and tested away.

Here's what you can do to implement this yourself.

  1. Go to .NET Framework Developer's Guide, Custom Date and Time Format Strings and/or locate your format string.
    • I used "dddd, MMMM dd, yyyy hh:mm tt"
  2. Create an appSettings key such as: Custom.DateFormat and assign your format to the value.
    • <add key="Custom.DateFormat" value="dddd, MMMM dd, yyyy hh:mm tt" />
  3. Now add the code to use the format string.
    • <%=Post.DateCreated.ToString(ConfigurationSettings.AppSettings["Custom.DateFormat"])%>
    • original: <%=Post.DateCreated.ToString("d. MMMM yyyy HH:mm") %>

 More...

Tags: ,

.NET | ASP.NET | BlogEngine.NET | Web

So you want a new BlogEngine.NET Theme?

by BizTron 17. August 2008 17:45
A simple way to adjust or tweak a theme to your liking can be as simple as a few lines of css code in styles.css. I made a couple very minor changes to achieve the affect of a new background color, content on the right when it was always on the left, and a font color change to go along with the background better

clip_image001

A simple way to adjust or tweak a theme to your liking can be as simple as a few lines of css code in styles.css.  I made a couple very minor changes to achieve the affect of a new background color, content on the right when it was always on the left, and a font color change to go along with the background better.  This is what it looked like:

/* I replace the Standard body formatting:
body {
    background-color: #F1F1F1;
    color: #444444;
    font-family: Verdana;
    font-size: 11px;
    margin: 0 auto;
    width: 980px;
    position: relative;
}*/

/* With the following: */
body {
    background-color: #6699FF;
    color: #444444;
    font-family: Verdana;
    font-size: 11px;
    margin: 0 auto;
    width: 980px;
    position: relative;
}

 More...

Tags: ,

ASP.NET | BlogEngine.NET

WCF Essentials

by BizTron 10. June 2008 01:00
Join us for our last meeting before our summer break as Andrew Badera introduces us to Windows Communication Foundation. The current plan is that we won&#39;t have another meeting until September &#39;08, but we might have a special meeting if we can get an INETA speaker in the area. Let&#39;s put it to a vote next week!

TVUG Presentation - June 10th, 2008 (Now June 17th)  

This event was postponed due to serious weather advisories.

Be sure to check the TVUG Website for any updates.

TVUG President wrote in an e-mail to the Tech Valley .NET Users Group membership.  Please join us...

Join us for our last meeting before our summer break as Andrew Badera introduces us to Windows Communication Foundation. The current plan is that we won't have another meeting until September '08, but we might have a special meeting if we can get an INETA speaker in the area. Let's put it to a vote next week!

WCF Essentials


Speaker: Andrew Badera, CTO, Change Round-Up
When: Tuesday June 10th, 2008 - 6:30-9PM
Where: VersaTrans Solutions, Latham, NY


The global acceptance of Web services, which includes standard protocols for application-to-application communication, has changed software development. Windows Communication Foundation (WCF) is designed to offer a manageable approach to distributed computing, broad interoperability, and direct support for service orientation.

In order to simplify development of connected applications through a service-oriented programming model, Windows Communication Foundation bundles a lot of powerful features in one easily configured package. A couple notable features, as service architectures grow more complex and support greater workload, are duplex communication and connection throttling. This presentation will review the essentials of WCF, utilizing a Silverlight GUI to demonstrate latency and scaling characteristics of a simplex polling application vs. a duplex push application.

Speaker Bio
A lifelong geek, Andrew Badera has been immersed in the software world since the age of seven, when his parents bought him a Tandy BASICA programming book instead of Chuck Yeager's Advanced Flight Simulator he had been asking for, months on end. Not to be dissuaded, he read the book three times over the following week, and immediately set about, without any great degree of success, trying to write his own flight simulator. Currently he serves as CTO of Change Round-Up in Coxsackie, NY as well as senior software engineer on the Open Systems team at Davis Vision, Inc. in Latham.

Tags: , ,

Architecture | ASP.NET | C# Development | Development

Archive