Tag Archive for 'design'

My First WordPress Theme: Unwakeable

You may have noticed the additional page up at the top. It’s home to my WordPress theme, Unwakeable. Unwakeable is basically K2 with the Unsleepable header.

It’s currently built off K2 0.9.1. I plan on keeping this theme in sync with all changes made to K2. So, when you see a new release of K2, expect a new release of this theme soon after.

This theme works with a wide range of plugins by default. The following plugins work by default with this theme, in addition to those already supported by K2:

  1. Digg Integrator
  2. WP-PostRatings
  3. WP-PostViews
  4. WordCount
  5. WP Admin Bar

This is NOT a style for K2. I’m releasing Unwakeable as a totally separate WordPress theme. One thing you should note is that this theme will inherit all the options you set for K2 in the K2 options page (assuming you were using K2 previously). Unwakeable make use of the same database options used by K2.

If you want a custom header graphic, check out Ben’s tutorial. Please let me know if you come across any problems with this theme, there are likely some things I missed.

In a related side note, WordPress.com added two new themes for users to choose from. They added Unsleepable and a stripped down K2. Coincidence? Definitely. Now would be the perfect time for WordPress.com to add Unwakeable, the combo Unsleepable/K2 theme. :)

You can download Unwakeable here or from the official Unwakeable page.

UPDATE: As the comment below says, Ben released Unsleepable 2.0. I’ll be updating Unwakeable within the week to include the new stuff from Unsleepable.

Popularity: 4% [?]

Wrapping Text Inside Pre Tags

I sometimes display little snippets of code on this site. For example, here, here, and here. To do this, I use the Code Markup wordpress plugin.

If you’re using Firefox, you may notice the long lines in my Digg Integrator fix post. It’s not really a problem for me having those really long lines in Firefox. Why? Because Firefox still displays my sidebar correctly. Internet Explorer is a totally different story though. When there’s long lines like that, my sidebar will appear at the very bottom of the page in IE.

The long lines are caused by use of the pre html tag. The pre tag preserves spaces and line breaks in a chunk of text. Perfect for displaying snippets of code. However, some lines of code are quite long and will run off the page. This is exactly why my sidebar was getting pushed to the bottom of the page in IE.

So, I set out looking for a method to wrap text contained within pre tags. Google found exactly what I was looking for. Wrapping text inside pre tags is quite easy, all that’s required is a simple addition to your css:

pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

Quite simple. After adding that CSS, the text in pre tags still doesn’t wrap in Firefox, but I don’t care because Firefox displays the rest of my page as it should. Now, when you view a page in IE with a long line, the text is wrapped and my sidebar content appears at the top of the page instead of the bottom.

For consistency sake, let’s make these long lines wrap in Firefox too. This is extremely simple. It only requires adding a few characters to the CSS shown above. For text wrapping in Firefox, use this CSS:

pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}


Notice the only difference between the first and second examples is the addition of “!important” to the third line in example 2. After adding that little bit, your text between your pre tags should wrap well in basically every browser that’s currently in use.

UPDATE 3/10/2007

If you can’t seem to get the css above to work, give the css below a shot. I just set a width on the pre tag. When the width is set to 100%, you’ll get a horizontal scrollbar when viewing in IE7. That’s why I’ve set the width to 99%. The code will display just fine in IE6, IE6, and FireFox when width is set to 99%. I have not tested Opera. Try this updated CSS if you’re having issues with the original CSS from above.

pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
 width: 99%;
}

UPDATE 6/4/2008

Markku Laine posted some css in a comment that seems to work better than the original css I posted. It works in IE, Safari, and FireFox. Try using Markku’s css below if the previous examples don’t work for you.

pre {
 overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
 white-space: pre-wrap; /* css-3 */
 white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
 white-space: -pre-wrap; /* Opera 4-6 */
 white-space: -o-pre-wrap; /* Opera 7 */
 /* width: 99%; */
 word-wrap: break-word; /* Internet Explorer 5.5+ */
}

Certification exams from cisco like 350-001 and 640-802, also from the other vendors like Microsoft having similar exams 70-290 and 70-291 along with lesser known vendors Vmware VCP-310 can help you brush up your skills on networking as well as web skills

Popularity: 26% [?]

K2 0.9.1 Released

Version 0.9.1 of the K2 WordPress theme has been released. I just upgraded and finished making all my little customizations. It’s a recommended upgrade as it fixes a number of bugs. This release comes almost 2 weeks after K2 0.9 was released.

I can’t wait for the final release of K2. I think we’ll see a number of schemes (themes) released once the final K2 is here. I am gonna buy a CSS book this weekend. Anyone got any suggestions?

Popularity: 6% [?]

Major Technorati Update

Technorati just released a new interface to the site. They haven’t just made changes to the appearance of the site however.

First, in addition to a simpler and brighter design, we’ve continued to improve our core search technologies that index new information within minutes of being posted to the Web. We listened hard to your feedback - and redesigned the search results pages to include much less intrusive (and well-marked) ads, more results above the fold, and better sorting options - including sorting by language, authority, and freshness. If you’re confused, you can get a deeper explanation of keyword results and of URL results. In addition, our link-counting mechanisms have also been dramatically improved. If you’re a blogger, you should notice that your blog is being counted much more regularly, and that your rankings and authority information is much more accurate and up-to-date.

More regular counting of inbound links is awesome! Ranking and authority updates are nice too, I never put too much weight in those numbers as they never changed very often (maybe that’s good?). They’re also trying to make it easier to discover new content, via their Discover section.

These upgrades look really great overall. They just underwent a redesign not too long ago (back in June of 2005). Wonder what we can expect next year?

Mashable has screenshots of the old Technorati versus the new Technorati.

Popularity: 3% [?]

Internet Explorer Weirdness

Some of you usuing Internet Explorer might come across some problems browsing this site, or you might not. Actually, I shouldn’t say problems, “minor defects” is more appropriate. Sometimes, when loading this site under IE, the navigation menu, everything from the “Search” on down, is pushed all the way to the bottom of the page. So, if you’re at the very top of the page, you probably won’t even see the menu until you scroll about halfway down.

I thought I had the issue tracked down at one point, but that’s obviously not true. Previously, I had a list showing the geographical locations of the last 5 visitors. The nav menu would go all the way to the bottom of the page each time I loaded longren.org in IE. I removed the recent visitors list from the page, cleared IE’s cache and refreshed. The nav menu looked normal, right up top where it should be.

Now, I can’t even get the menu to load at the bottom every time. Sometimes it will, sometimes it won’t. For example, I’m at the office right now and the menu looks fine on my PC in IE. If I move to another PC and load longren.org in IE, the menu will be at the bottom. All the PC’s here have IE 6.0 w/ SP2.

I can’t for the life of me figure this out, and it makes me very sad to say that. I’m gonna check it out while I’m here @ work so I can at least have a PC that the problem occurs on almost every time the page is loaded. If anyone’s got any suggestions, please let me know.

Linked @ Cao’s Blog, Wizbang, The Florida Masochist, Outside The Beltway, and as usual, Basils Blog.

UPDATE: Well, maybe this isn’t linked at some of the sites mentioned. I have noticed that TrackBacks on some sites aren’t working properly, Basil has all the dirt on what’s up with that. Hopefully TypePad and HaloScan get that fixed up soon, it’s sorta annoying.

Popularity: 4% [?]



cheap xbox 360 games - buy from zavvi
cheap xbox 360 games - zavvi

mobile phones - Web Design - Credit Card Consolidation - Credit Card - New York Hotels - Internet Marketing
Search Engine Optimisation - Mobile Phone - Bike Insurance - Landlords Insurance - Search Engine Marketing - Mobile Phone