Tag Archive for 'wordpress'

Upgrade do WordPress 2.8 i problem z kodowaniem polskich znaków

I’m sorry if you are an English spoken reader but this post is published in Polish. The reason for that is it describes a problem with encoding of some Polish characters after upgrading to WordPress 2.8, so a problem that only Poles should be interested in.
This blog is still supposed to be maintained in English so please do not get discouraged.

Dziś postanowiłem zrobić upgrade swojego fotobloga z WordPress 2.6.1 na 2.8. Wszystko poszło sprawnie ale okazało się, że kodowanie polskich znaków totalnie się posypało – zamiast nich kwadraciki i krzaczki.

Pomimo mocnego zaplecza, przyznam, że zabawa z kodowaniem znaków totalnie mi nie odpowiada. Miałem już kiedyś problem z ukraińską stroną znimky.net, która stała się nieczytelna po zmianie MySQL z 4.0 na 4.1. Po długich bojach problem został rozwiązany poprzez dodanie poniższych 3 linii kodu PHP po ustnawieniu połączenia z bazą danych:

mysql_query("SET character_set_results=\"utf8\"");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET NAMES \"utf8\"");

Zacząłem szukać ale nie znalazłem zbyt wiele…

Continue reading ‘Upgrade do WordPress 2.8 i problem z kodowaniem polskich znaków’

Code snippets have changed on dobrzanski.net

Following my friend’s post I decided to change the plugin for highliting code snippets on this blog from Google Code Prettifier to Google Syntax Highlighter for WordPress.

This tool is much better – now code looks more fancy and you can always show/copy to clipboard the very code (without additional characters that need removing). If you’re running a blog where you publish fragments of code – don’t wait and install this tool now!

The only problem that change introduced was I had to change all old posts so that code is picked up by this plugin. It took an hour but was worth it.

 Code snippets have changed on dobrzanski.net

Adapt your blog for mobile devices

3388372944 f094ca95cd m Adapt your blog for mobile devices
Image by Wesley Fryer via Flickr

Since I received Nokia e51 I’ve been browsing web pages with Opera Mini. This is a decent browser which makes reading pages easier but it can’t do all. The best case is when not only the browser cares to display the page best it can, but also the owner of the page does so, i.e. only important content is downloaded so that the page is lighter and loads faster (which is important if you are not having a free WI-FI connection).

Continue reading ‘Adapt your blog for mobile devices’

Fatal error: Call to undefined function wp_register_sidebar_widget() in …

I’ve just updated WordPress engine to v2.5. I played with it for a moment and was very happy about it until I got this error when I went to WordPress Dahsboard:

Fatal error: Call to undefined function wp_register_sidebar_widget() in /XXX/wp-admin/includes/dashboard.php on line 31

Luckily, I’ve found a very simple solution on Tom Raftery’s Social Media Blog. Tom, thanks for sharing with others!

Change to WordPress 2.5

I’ve just changed the engine for my blog from WordPress 2.3 to WordPress 2.5.

The change is not visible for the reader but there’s a lot going on in the dashboard, starting with the layout, dashboard widgets, multiple file upload, etc… To get the full list of the changes, please look at the official WordPress blog.

Changes on my blog

A few days ago I made a few major changes on my blog:

The engine change went OK. Once I updated the files, there was a imprefections in querying database, but clicking the suggested link on wp-admin page solved them all.

Currently, when I have some free time I browse plugins and themes – still can find something better/new. So far, I’ve installed the following plugins and I’m happy with them (the descriptions used there come from the home pages of that plugins):

  • All in One SEO Pack – automatically optimizes your WordPress blog for Search Engines (Search Engine Optimization).
  • Google Code Prettify – this plugin using google-code-prettify to highlight source code in your posts.
  • Google XML Sitemaps – this plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO.
  • Lightbox 2 – used to overlay images on the current page.
  • pb-techTags – enhances the_tags() by adding a link to Technorati to each tag.
  • SIOC Plugin – adds SIOC metadata export to WordPress blog.
  • Slashdigglicious – add user-submission icons and links at the bottom of each post: Digg, del.icio.us, etc.
  • Snap Shots Plugin – add Snap Shots to your website or blog. Snap Shots enhance links with visual previews of the destination site, including summaries of Wikipedia and IMDb, YouTube videos, stock charts, RSS feeds and more with just a single line of javascript.
  • SpamBam – a plugin that hopefully eliminates comment spam.
  • wp-cache – very fast cache module. It’s composed of several modules, this plugin can configure and manage the whole system.

If you can recommend other plugins, don’t hesitate to do that – just describe them in a comment to that post. Cheers!