Aug 19

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;
}

 

image

/* I replaced these lines:
#content {
    float: left;
    width: 70%;
}

#sidepanel {
    float: right;
    width: 28%;
}

    With this...   */

#content {
    float: right;
    width: 70%;
}

#sidepanel {
    float: left;
    width: 28%;
}

 

/* I replaced these lines:
#header span {  font-weight: normal;   letter-spacing: 4px;

color: silver; margin: 0px; }

#header a { text-decoration: none;  color: white;  }

    With this...*/

#header span {  font-weight: normal;  letter-spacing: 4px;

color: #0000CC;  margin: 0px; }

#header a { text-decoration: none; color: #0000CC; }

Then there was the slight issue with the Date Time format on the Blog post.  This is an example of a minor inconvenience and a quick and dirty solution.  I'll describe an alternative approach later.

image

Notice the formatting for June 29, 2008.  This date can probably be localized, but today it's hard coded in PostView.aspx.

clip_image001[11]

Note: I changed

    <%=Post.DateCreated.ToString("d. MMMM yyyy HH:mm") %>

To...

    <%=Post.DateCreated.ToString("dddd, MMMM dd, yyyy hh:mm tt") %>

To get the following results:

image

Yeah, I know this wasn't earth shattering.  But the premise is simple.  If there's a theme you want to use, except for a couple small items, change them.  The next step from here is to create a BlogEngine.NET theme for version 1.4.5, using an open source.  The Widget Zone needs a little tweaking on some of the older 1.2 and 1.3 themes, but we've already done that once (It's just about time for a new theme and BlogEngine.NET 1.4).  I hope everyone tries that once so we can have a few more themes right away.

Here's the new theme.  I'll call it nonStandard since I'm not a marketing guy: nonStandard.zip (6.28 kb) .  Enjoy!!!

Aug 15

Here's the quick and dirty way to TURN OFF or DISABLE the "Shutdown Event Tracker" on Windows Server 2008 for all your test, development and virtual servers.

[Note: For Windows Server 2003, Look here: Turn off Shutdown Event Tracker  ]

1. Start...Run...Open: type: gpedit.msc

clip_image002

2. Of course...

image

3. Find: Local Computer Policy, Computer Configuration, Administrative Templates, System:

4. Select: Display Shutdown Event Tracker [Note: It's "Not Configured" by default.]

image

5. Double Click it and select the Disable radio button.

image 

Result: Here's what we want...

image

Aug 13

It's already mid-August and I just finished a round of BlogEngine.NET updates to take advantage of the new features in 1.4.5.x.  For a lot of folks, the need to Blog is what makes this platform so valuable.  But my clients, and my own interests also include adding Extensions and Advertising.  Now that there's  a Text box Widget, I can add simple ads like an Amazon link, Google AdSense, and affiliate links right in the Widget Zone without any special code.  Maybe this can be improved to target this medium, but I have to admit, if it works, I'm going to use it as is.  But there are a few things I'd like to see sooner than later.

Multiple Blog Support

What if I had 15 Blogs on different topics and some of them included overlapping authors?  I would like to support this configuration with One code base, One server or service layer, connecting to a Single SQL database or SQL Server farm.  I know I'd want this because I want it now and I have 8 Blogs, with 8 Web Apps, 4 AppPools, and 8 sets of XML Data.

SQL Server Express wouldn't cut it since my server started running into resource issues.  Not because of SQL Server but because I need 8 databases the way this configuration is setup.  Even if I upgrade my server (or hosting platform) to allow for more capacity, it doesn't scale.  Also, I will spend more time maintaining Blogs than writing for them.  So more Blogs = Less Blogging.  That's not a positive goal for me. Frown

See BlogEngine.NET on CodePlex: Multiple blogs in one BlogEngine.NET instance

I'm following the instructions from "Setting up BlogEngine.NET 1.4 to use SQL Server" so I can review the Provider and see if this seems practical.  I'll have to report back and add on here when complete.

Advertising the manual way

Anyone can now use a BlogEngine.NET 1.4.5 compatible theme and add a Text Box widget to the Widget Zone.  Then you can place and ad within, so long as it fits the box cleanly.  Don't forget colors, borders, iframe constraints., etc.  But this is still very clean compared with the alternative.

Using AdsenseInjector should place an AdSense ad within each blog post. I'm having problems when more than one AdSense block is configured on a page.  I still need to debug my specific issues, but it may stem from the fact that I messed with the Master file in the theme to place AdSense "elegantly" where I wanted it...of course this was just for testing the theory.  So, AdsenseInjector is a good start so I can't knock it.  It's certainly something I thought about but did no think through so now I have the benefit of someone else's labor.  However, I still would like to get it to work along side other Ads on my page.

Hacking various themes to produce Ad Friendly pages or posts may be the only way to get what I need.  Another way of looking at this could be to use the Widget or Webpart approach to building and organizing themes.

This was merely an exercise in describing what one blogger needs, but at the same time, setting in motion my attempts to achieve this and report back my R&D results.

About the Author

BizTron BizTron
(aka Dave Petronis)
"Famous" systems architect and software developer, author, and "future President of the United States." View David Petronis's profile on LinkedIn
E-mail me Send mail

Banner
Compusa (Systemax, Inc.)

Calendar

<<  November 2008  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

View posts in large calendar