Widgetizing Serendipity templates, WP just copied what ...

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
 

Friday, August 11. 2006

Widgetizing Serendipity templates, WP just copied what we've always done

Someone emailed me asking how to widgetize a Serendipity template. For those who don't know, widgets is the name Wordpress people use for their plugin that allows users to sort their sidebar plugins or even remove them altogether.

The Serendipity developers actually included this functionality so long ago we've probably even forgotten who orignially came up with the concept. Wordpress just copied us. And only recently as well. Now I know my loyal WP readers and friends in that community are going to flame me, but I don't care, bring it on. Ok that's not true, I do care, but bring it on anyway.

So, if you're a Serendipity user and you want to edit your templates to add that widget stuff, you don't need to, every template for Serendipity already has it built-in. Need proof, easy, just open index.tpl in one of the templates. What you're looking for is a couple of lines that look like this;

{serendipity_printSidebar side="right"}
{serendipity_printSidebar side="left"}
Porting widgetized WP templates
So if you have an idea for a template, or if you want to port a widgetized WP template, just make sure those two lines are present in the sidebar areas of your Serendipity template.

I've already written a series of articles on porting WP themes, and if your WP theme includes widgetized sidebars, you need to replace the following Wordpress code with our Serendipity code.

<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>

WP templates are a combination of php and html, and for new designers the php can look quite daunting, in fact the example above doesn't show the closing endif that would be needed in the WP theme. If you are porting a WP template and want more info on how the widgets work you could read 'widgetizing themes'.
If you enjoyed this post, make sure you subscribe to my RSS feed.
Posted by Carl in Theming Serendipity at 11:04   Comments (0)
Defined tags for this entry: bloggingtechnorati, s9ytechnorati, serendipitytechnorati, templatestechnorati, themestechnorati
Related entries by tags:
Pixabella04 for Wordpress
SEO using Social Bookmarking Type Sites
Add This Bookmark and Share Widget Code for Serendipity Templates


Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments

    No comments

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 
 
Submitted comments will be subject to moderation before being displayed.
 
 

Categories

  • Blogger
  • Blogger Templates
  • Carl's Journal
  • Writing Resources
  • 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