<February 2012>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
MWPSKex.#008 - Codebase updated accordingly to MWPSK V1.2.2

A new release of MWPSK has been published as of November 26th, 2008. Have a look here: MWPSK homepage.

With the release of MWPSKex.#008 all changes are now available with this extended version of MWPSK that you can download from here: burstmode.de Download page.

These files have been updated:

  • /web.config
  • /site.master
  • /SectionControls/ContactForm.ascx
  • /SectionControls/ContactForm.ascx.cs
  • /SectionControls/Guestbook.ascx.cs

Existing users of MWPSKex can easily update to the #008 release: Just copy the affected files from the downloadable archive over the existing #007 files. But be sure you have a backup at your hands before you begin to make any changes / updates!

Merry Xmas and a wonderful new year for all the MWPSK/MWPSKex users out there!

MWPSKex.#007 - Raimy´s HitCounter2 And 2 Blog Extensions

MWPSKex.#007 is now available for download. Three additions have found their way into it:

  • Raimy´s HitCounter2 EasyControl is now included. Please visit Raimy´s homepage to read further information about it.
     
  • The "EMail On New Comment" extension for MWPSK´s default blog module will allow you to get an Email message each time somebody adds a new comment to your blog. This Email will contain the whole text of the new comment. This way you can decide instantly wether it contains information that will need rework in any way. The credentials of the default mail server will be used when sending the Email (same as for the contact form). You will be able to supply a specific recipient Email address as well as the subject line for that Email.
     
  • "Prevent New Comments" is another extension to MWPSK´s default blog module. This one will allow you to prevent users to add new comments to your blog. This can be useful when you´ll be away from your computer for a longer time (vacation or so) and you therefore cannot monitor new comments.

!!! Important update instructions !!!
For the blog extensions to work some new settings had to be added to a blog´s configuration data. If you already have a (MWPSK default) blog and intend to update to this MWPSKex version then you´ll have to update your blog´s configuration data! This is how you can do it: After installing the complete MWPSKex.#007 package or just the desired files (see below) log in as administrator. Go to your blog, choose edit mode, edit configuration and click "Save". This way the new columns will be added to the configuration data. If you have several blogs within your website, you´ll have to repeat this for every blog!
If you do not update your configuration data as described then MWPSKex will throw an exception every time somebody will try to view old comments or add a new comment.

All of the new blog settings can be set up in a blog´s configuration data.

The following list enumerates all the files that had to be changed to get the Blog extensions running. HitCounter2 is an EasyControl - see Raimy´s homepage for installation instructions if you don´t intend to use the whole MWPSKex.#007 package.

"EMail On New Comment" extension requires the following files to be modified (watch out for "MWPSKex.BlogEx.#001.I" comments in the source files):

  • ~/App_Code/Sections/Blog.cs
  • ~/SectionControls/Blog.ascx
  • ~/SectionControls/Blog.ascx.cs
  • New resource keys: MWPSKex_BlogEx_ctl_EmailOnNewComment, MWPSKex_BlogEx_ctl_EmailRecipientOnNewComment, MWPSKex_BlogEx_ctl_EmailSubjectOnNewComment

"Prevent New Comments" extension requires the following files to be modified (watch out for "MWPSKex.BlogEx.#001.II" comments in the source files):

  • ~/App_Code/Sections/Blog.cs
  • ~/SectionControls/Blog.ascx
  • ~/SectionControls/Blog.ascx.cs
  • New resource keys: MWPSKex_BlogEx_ctl_PreventNewComments
MWPSKex.#006 - FCKEditor updated: new version is V2.6.3

This release of MWPSKex includes all previous modifications plus the most up-to-date version of FCKEditor: V2.6.3.

You can download the whole project from my download page.

You can also update your installation manually: The update procedure is pretty much the same as described here: MWPSKex.#001.

Have fun!

Users of MWPSKex.#005 and MWPSKex.#004 please update!

First releases of MWPSKex.#004 and MWPSKex.#005 contained a bug, that might hit you at some point. See this discussion at codeplex:

http://www.codeplex.com/MyWebPagesStarterKit/Thread/View.aspx?ThreadId=28781

Please update file ~/App_Code/Controls/TemplatedContent.cs as described in that discussion or download the complete solution again.

You will have to make function CreateChildControls() look like this:

protected override void CreateChildControls()
{
    
if (_template != null)
    {
        
PlaceHolder ctl = new PlaceHolder();
        _template.InstantiateIn(ctl);
        
try
        
{
            Controls.Add(ctl);
        }
        
catch
        
{
            ctl.EnableViewState =
false;
            Controls.Add(ctl);
        }
    }
}

MWPSKex.#004 - "PageTheme Selector" extension

Sometimes it can be essential to have different layout or even different overall look & feel for special pages in a website.

By default "My Web Pages Starter Kit" (MWPSK) Version 1.2.1 offers the ability to set a theme at website level. This theme will apply to all pages forming the website.

With the release of MWPSKex.#004 you will be able to set the desired theme at page level. If you wish to you could assign a different theme for every single page in your site. "Theme" in that context means layout and look & feel.

MWPSK Version 1.2.1 ships with 16 different themes out of the box. You will be able to choose from them instantly. If you have developed your own themes you will also be able to select one of those for your page(s).

Take a look at the new MWPSKex Demo page. For that page I changed the default "SwishBlue" theme to "SwishViolet". You will notice the difference ;)

You can download the whole project from my download page and use it as it comes with all the other extensions. Alternatively you can just have a look at the files that had to be modified and update your running site. Take care though if you opt to do so: you should really compare my files to yours with a tool like WinMerge (see links page). There are some other modifications in those files due to older extensions I decided to include. And of course: Always have a backup at hand prior to making any changes ;)

These files have been modified:

  • ~/App_Code/Controls/PageBaseClass.cs
  • ~/App_Code/Controls/TemplatedContent.cs
  • ~/App_Code/WebPage.cs
  • ~/Administration/Navigation.aspx
  • ~/Administration/Navigation.aspx.cs

Additionally in file ~/App_GlobalResources/StringsRes.resx take care to add these new entries:

  • MWPSKex_adm_Navigation_CurrentPageTheme
    (fieldlabel to display currently selected page theme)
  • MWPSKex_adm_Navigation_ResetPageTheme
    (caption for reset button)

Hope you have fun with that extension! Feel free to let me know how it works for you.

What will be up next? ... Some time ago Rickard Magnusson offered an extension he called "PageThemeAdmin". At first look it seems this is much the same like my "PageTheme Selector". But there are some differences. Rickard would not change the default theme that would have been selected at website level. Instead he opted to change the underlying master file and thereby applying different SkinIDs. I like this approach too for this reason: It allows you to stay with the default theme of the website which certainly has a certain look & feel. All the CSS resources and images get served from the same set of files. No need to duplicate them. In one of the next releases of MWPSKex I will take care of something that will be based upon his PageThemeAdmin extension.

2 3> >>|
Rss



 



 

Tag Cloud