Theming Serendipity

Carl discovers the world

  • RSS Feed
  • Login
  • Contact
Ning Themes
Skins 4 Ning, CSS tips, PHP hacks, howto's and theme doc's
Keyword Elite
I use Keyword Elite to find profitable
niches for my online business
Serendipity Directory
Add your site to the Serendipity
Users Directory
Welcome
Herzlich Willkommen


Hi, Welcome to my site, please bookmark me, and feel free to comment on my posts
  • Home
  • About
  • Serendipity
  • Blogger
  • Wordpress
 

Monday, June 19. 2006

Replacing sidebar titles with images

Select language: German, English
This short tutorial is about changing the text used in sidebar titles with images so that unusual fonts or artistic headers become possible. This is a really cool effect, and if you're a fan of the css Zen Garden you'll know that websites can be works of art.

The designers of Serendipity really did think of all possibilities when they gave every sidebar block its own unique style name.

Replacing the sidebar title with an image is relatively easy, start by creating your image and give it a width and height that compliment your sidebar. Read More
Posted by Carl in Theming Serendipity at 11:54   Comments (2)
Defined tags for this entry: csstechnorati, s9ytechnorati, serendipitytechnorati, smartytechnorati, templatestechnorati, themestechnorati

Tuesday, June 13. 2006

Highlight your latest entry in Serendipity blog

Select language: German, English
Have you ever thought it would be great if you could make the latest entry in your Serendipity blog stand out, perhaps use a different color, or even add some imagery to let your visitors know this entry is special?

Using some Smarty code and css we can, imagine how much more usable your blog would be. Even more so if your blog is part of a network. If you run competitions, review new products, or perhaps comment on breaking news, your site visitors will appreciate seeing at a glance which entry is most important.

So what could your latest entry or sticky post look like? Well, CSS allows us to do so much, you could literally change every single style. In my experiments I changed the background color around the entry title, in another I added a background image which reads 'Breaking News', but you could go so far as to give your entry different font settings, adjust your margins and padding, perhaps even remove the entry footer so your latest entry looks like an html box.

So how do you go about making your latest entry stand out? The key is to understand that all entries on overview pages are given a unique id starting at 0 which is the top (first) entry. Once we understand this, we also need to make sure Serendipity only changes our first entry if it also appears on the startpage otherwise the top entry of every page will adopt our new styles. Read More
Posted by Carl in Theming Serendipity at 17:43   Comments (3)
Defined tags for this entry: csstechnorati, s9ytechnorati, serendipitytechnorati, smartytechnorati, templatestechnorati, themestechnorati

Wednesday, May 31. 2006

Version checking for Serendipity templates

I've been experimenting with the new theme configurator for Serendipity. I'm hoping most users will upgrade to version 1.1 of Serendipity once it reaches a stable state although being a realist I know this isn't going to happen overnight.

This means we may end up with a selection of new templates that are compatible with the theme configurator but cause issues for users with older versions of Serendipity.

The solution is to make Serendipity perform a simple check to see if the user has a compatible version of Serendipity installed, and then provide alternative code if they don't. Read More
Posted by Carl in Theming Serendipity at 10:52   Comments (0)
Defined tags for this entry: bloggingtechnorati, s9ytechnorati, serendipitytechnorati, smartytechnorati, templatestechnorati, themestechnorati

Saturday, May 13. 2006

When users don't include an entry title

Select language: German, English
Some users of Serendipity blog don't include an entry title, usually this is a mistake and is corrected when they view their blog, but there are times when the mistake isn't corrected. In situations like there there are two methods the template designer can use to ensure an entry title is always displayed.

You could include the first few characters of the post in the title, by simply adding some Smarty code to your entries.tpl, like this;

<h4 class="serendipity_title">
<a href="{$entry.link}">
{$entry.title|@default:$entry.body|
truncate:200:" ..."}</a>
</h4>

The reason the truncate has been set at 200 characters is because this allows even very long titles to be used, however it also means that any entry that does not have a title, will now display the first 200 characters of the entry body.

An alternative, is to use the entry id instead of the first few characters, and this is the approach I'm generally following with all my recent templates. Its an elegant solution, doesn't ruin tight designs, and fits with the fix Garvin applied to the recent entries plugin which wouldn't display a link to the entry if the title was missing.

<h4 class="serendipity_title">
<a href="{$entry.link}">
{$entry.title|@default:$entry.id}</a>
</h4>
Posted by Carl in Theming Serendipity at 12:21   Comments (0)
Defined tags for this entry: s9ytechnorati, serendipitytechnorati, smartytechnorati, templatestechnorati, themestechnorati

« previous page   (Page 2 of 8, totaling 30 entries)   next page »

Categories

  • Blogger
  • Blogger Templates
  • Carl's Journal
  • Christmas
  • Humanity
  • Italian
  • Ning Templates
  • Palm z22
  • Science/Nature
  • Technology
  • Screencasting
  • SEO, Traffic
  • Serendipity Blog
  • Basic html/css
  • Download Themes
  • Theming Serendipity
  • Using Serendipity
  • Small Business
  • Spain
  • Spanish
  • Travel
  • Wordpress
  • Xampp WebServer

All categories




U COMMENT
I FOLLOW






My Feedburner Feed
Subscribe to my Feedburner

© 2005-7 Carl Galloway.Template by Carl, artwork by Pixabella. Valid XHTML, CSS