Usability, MVC, ASP.NET

26. October 2008 01:11
by Henrik Stenbæk
3 Comments

Stardust theme ready for BlogEngine

26. October 2008 01:11 by Henrik Stenbæk | 3 Comments

On request made by Jay Smith I have adapted the Stardust - Wordpress Theme - for BE.

CropperCapture[41]

Startdust is original made by Tommaso Baldovino.

Updates

November 1, 2008
    Highlight of selected menu tab added – thanks to rtur.net

Preview and download

    * Preview the theme
    * Download: stardust.zip (54.46 kb)

Setup tip

  1. Go to [yoursite]/admin/Pages/Controls.aspx
  2. Change the Button text from (default=Search) to . (just a dot) this will fix a IE7 problem with a button that will not look transparent.

CropperCapture[40]


Comments (3) -

Ben Amada

I like this theme & your others.  With this Stardust theme, when I'd post a comment, I was getting a bunch of garbage on the screen above the new comment when BE was re-populating the comments.  The problem was in CommentView.ascx where the localCounter variable was being outputted.  Apparently, the Response.Write() was the problem, but only when posting a new comment.  It's fixed now by replacing that line.

OLD/ORIGINAL line of code:
<%if (localCounter > 0) Response.Write(string.Concat(localCounter.ToString(), "."));%>

REPLACEMENT line of code:
<%= localCounter > 0 ? string.Concat(localCounter.ToString(), ".") : " " %>

At least for me, this fixed the problem.  Thanks!

Ben Amada

An alternative to changing the Search Button text on the Controls admin page to a "." as a workaround for getting the search text to be transparent in IE7, you can also remove the Search Button text via JavaScript when the page loads.  The main advantage to this is not having to change the Search Button text in case you switch between themes sometimes.  I registered the script below via the Page.ClientScript.RegisterStartupScript() method in the site.master.cs file (or you can insert it directly into the site.master file and run it when the page has loaded).

<script type="text/javascript">
  var oSearchBtn = document.getElementById('searchbutton');
  if (oSearchBtn && oSearchBtn.value)
    oSearchBtn.value = "";
</script>

Ben Amada

I noticed when the day of the month is a single digit and not very wide (like Dec 1 or Dec 2), the day and year show up on the same line in the calendar image.

Screenshot
allben.net/.../...calendar_date_wrapping_issue.png

Adding "display: block" to either "div.date p span.anno" or "div.date span.giorno" in styles.css fixes this.  I think "anno" is year and "giorno" must be day :- )

Pingbacks and trackbacks (2)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading