Need a new web 2.0 style logo

by Henrik Stenbæk 21. February 2008 22:40

Generate it at http://creatr.cc/creatr/

OneSoft6

alternative make one at ***NO LONGER ONLINE*** http://www.logogenerador.com/

Untitled

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: Resources

work-in-progress: Illacrimo theme for BlogEngine

by Henrik Stenbæk 21. February 2008 00:30

I couldn't help it, I have started another "theme adaption" ... take a sneak peek on my work-in-Progress:

Yet another WordPress theme on it's way to BlogEngine.NET. This one also original designed by Design Disease.

UPDATE 22. OCT 2008

The BE version of this theme is finally ready - please visit this post

 

Currently rated 5.0 by 9 people

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

New BlogEngine Theme - Dilectio

by Henrik Stenbæk 20. February 2008 00:58

I got so much positive feedback for the last theme I adapted for BlogEngine.NET that I decided to do one more. This time I took one of the nicest WordPress themes and “translate” it to BlogEngine.NET… and now its finally ready:

Dilectio was originally designed by Design Disease, and I have –as usual- tried to be true to the original. This means that I haven’t created styles for some of the special BlogEngine.NET elements (tagcloud, calendar,...) when those elements wasn’t in the original design.

Hope you like it.

UPDATE 27. OCT 2008

I have finally updated this theme for BE 1.4.5 - if you already using this theme please download the updated stylesheet:  Dilectio_style1-4-5.zip (5.22 kb)

Notice: this theme is still not supporting widgets

 


Currently rated 5.0 by 5 people

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

FlickrRSS user control (for BlogEngine.Net)

by Henrik Stenbæk 19. February 2008 23:42

When I started out creating this control my idea was to create a Flickr photo plug-in for BlogEngine.Net but after a while I realised that I could just create a traditional ASP.NET user control for reading RSS streams from Flickr. So here it is:

FlickrRSS.ascx the user control that allows you to display Flickr photos on your weblog, homepage or wherever you have an ASP.NET based web application.

The user control supports user, public and group photostreams.

 

How to use the control

Download the control FlickrRSS.ascx.zip (1,96 kb) and unzip the files to your project (FlickrRSS.ascx and FlickrRSS.ascx.cs).

Register the control in the page where you want to show the pictures:

<%@ Register src="FlickrRSS.ascx" tagname="FlickrControl" tagprefix="onesoft" %>

Add the control to the page:
<onesoft:FlickrControl ID="FlickrControl1" runat="server" />

Properties

RssType The type of rss read from flickr the options are: User, Group, Allpublic
FlickrId Optional if RssType=Allpublic. Required if RssType is User or Group. This must be a valid Flickr userid or groupid, this is not the same as username or groupname the format is something like 12345678@00,
Tags Optional. a comma separated list of tags with no spaces eg.: Tags="adam,laura" – find photos tagged with Adam AND Laura
NumberOfImages The maximum number of images to appear in the control.
CacheDuration The time in minutes that the RSS result is cached on the server

Output

The control returns a list of thumbnails in the format:

<ul>
   <li>....</li>
   <li>....</li>
</ul>

And can easy be formatted with CSS ;-)

<onesoft:FlickrControl ID="FlickrControl1" runat="server" RssType="user"
        CacheDuration="10" FlickrId="34434281@N00" NumberOfImages="8"
        Tags="celina" />

returns this (after some formatting):

flickr

 

Download

FlickrRSS.ascx.zip (1,96 kb)

 

Improvements

This control could be better - but how? Any comments and suggestions are welcome.

  • The XML read must be asynchronous

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Source code | Featured

StringComparison with .Equals

by Henrik Stenbæk 4. February 2008 08:21

Based on http://vadmyst.blogspot.com/2008/02/when-stringtolower-is-evil.html

void DoBadAction (string val)
{
if (val.ToLower() == "somevalue")
{ //do something
}
}

Best method to do such kind of case insensitive comparison is using string.Equals(...) method.

void DoGoodAction(string val)
{
if (val.Equals("somevalue", StringComparison.OrdinalIgnoreCase))
{ //do something
}
}

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: snippets