About MeCurriculumLicensePortfolioProjectsPublicationsBD-blog

Posts Tagged ‘wordpress’

I set up a site for testing my theme on a fresh installation of Wordpress. This immediately brought very interesting results, as I always tested my theme on my blog which had customization/plugins I could not remember.
Nevertheless, I’m going to use this test site for validating the theme against W3C’s HTML and CSS validators.

The site is up on http://test.bd-things.net/

 
 

As I promised more than 2 months ago, I’ve just released the sourcecode of the wordpress theme on my blog. BD-theme 0.8 is a set of experiments that will bring me to the final release, I cannot promise that it will work perfectly on every browser, but it will almost do the job. Meanwhile, I’m working since 7 days to the next release, 0.9, that should bring to the blog a final layout.
UPDATE 2008-08-22: The theme you’re actually seeing in the blog is what will become BD-theme 0.9. I’m testing it.

 
 

As you see, the blog has a brand new theme! the blog’s theme has got a new, fresh look! I decided to bring some new improvements and a change in the layout. Let me experiment with it, fix some bugs and then I will release the source code, as always

 
 

24
Jan

image for post title  BD-theme

BD-theme is a widget ready, two columns Wordpress style, written using the default Wordpress theme as php/xhtml base. The theme is inspired by TorrentFreak rounded layout, and some little ideas are inspired by Curved Theme, which was the old BD-blog theme.
I just wanted to write my own Wordpress theme.
This is my first theme, and my first try to design something nice. Source code is available below.

If you like BD-blog theme, then download BD-theme =)

Warning! The template is still not valid XHTML! I’ll correct it before release 1.0!

Download:

  • 2008-09-19 - version 0.9
    Changes from 0.8-experiment:
    • Fully Compatible with Mozilla Firefox 2/3, Internet Explorer 6,7,8, Google Chrome, Apple Safari
    • More harmonious and stable
    • Links to pages are now rounded corner buttons
    • Buttons for pages moved over main layout, added a button for accessing the blog posts
    • The current page link button gets the same background color of the content page
    • Post header layout changed: a very nice band contains the title of the post and the date of posting exits the main layout
    • Various CSS fixes
    • Screenshot:
      BD-theme 0.9 Screenshot

      BD-theme 0.9 Screenshot

    What will be next:

    • CSS bugs totally fixed (I hope :D)
    • Theme has to pass w3c’s xhtml/css validations
    • Theme has to remain compatible with all browsers
  • 2008-08-21 - version 0.8 - experiment
    About:
    • Quite everything changed in the last 6 months, but the colors
    • This is the source code of the experiments done from the post of 06-06-2008: BD-theme’s new look
    • NOT to be considered as a stable release, code is very dirty (but almost functional)
    • It’s the base I’ve been using since 7 days for the final release, It’s available because somebody may like it more than the next version, or to modify it
    • An image helps more than a thousand words:
      BD-theme 0.8, the Experiment

      BD-theme 0.8, the Experiment


      BD-theme 0.2 - Classic

      BD-theme 0.2 - Classic

  • 2008-02-21 - version 0.2
    Changes:
    • fixed a:hover transparency bug in #pages
    • fixed .entry links and img
    • added a stlye for blockqoute
    • fixed some values of the searchform in the sidebar (safari fix)
    • added a style for the links inside the #footer section
  • 2008-01-24 - version 0.1
    First version, download it just if you want to customize it or to create a new theme based on this one. I’m testing it on my blog. It may contain “useless” code from the default Wordpress Theme
 
 
Tags: , , , , , , , , , ,
Categories: Activism?

As you maybe already know, my permalink structure of the blog was of type http://bd-things.net/year/month/day/title-of-the-article/
I’ve just updated the permalink structure to this new one: http://bd-things.net/title-of-the-article/

This is nothing difficult, you can set it in Wordpress control panel (Options->Permalinks)

The problem was that, if I just updated the settings in WP control panel, all the links which pointed to my articles, written in forums, mailing lists, etc, would have been broken. I needed a mod_rewrite rule. And I’m a noob about mod_rewriting.
After some googling, I found this awesome mod_rewrite Cheat Sheet which brought me to the solution (after about 30 x /etc/init.d/apache2 reload :-) ):


RewriteEngine On
RewriteBase /
RewriteRule ^200[0-9]/[0-1][0-9]/[0-3][0-9]/(.*)/$ $1/ [R,NC,L]
RewriteRule ^200[0-9]/[0-1][0-9]/[0-3][0-9]/(.*)$ $1/ [R,NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


You just need to add two new lines in your mod_rewrite rules, as you see:

RewriteRule ^200[0-9]/[0-1][0-9]/[0-3][0-9]/(.*)/$ $1/ [R,NC,L]
RewriteRule ^200[0-9]/[0-1][0-9]/[0-3][0-9]/(.*)$ $1/ [R,NC,L]

The line basically means:
take the urls which starts with a year (200x) / continue with a month / continue again with a day / contain some text / (with or without the final slash / )
re_write the url just like this: /contain some text/

Yeap, it works! You can try it!
This is my famous article about thermal problems of Amd Turion X2 cpus and Linux (this is the link that Google knows) http://bd-things.net/2006/12/02/hp-nx6325-and-friends-thermal-problems-solved/
The link will be redirected to http://bd-things.net/hp-nx6325-and-friends-thermal-problems-solved/.

Cool, isn’t that? In this way, you can change your permalinks structure without loosing your google rank :-P

 
 

04
Jun

image for post title  Portfolio

In questa pagina sono raccolti i lavori che sto svolgendo, con esempi, descrizioni e collegamenti.

Collegamenti rapidi:
CMS Hotello
CMS Jumapili
Altri Lavori


Lavori svolti per Bizetaweb e in collaborazione con Level:


Hotello

Descrizione ridotta del progetto

Hotello é un CMS (Content Management System) multilingua sviluppato in php5 con supporto a MySQL tramite mysqli. É interamente modulare, e molto performante.
É stato sviluppato per rendere migliore la collaborazione tra programmatori, grafici, traduttori e proprietari di alberghi; comprende un comodo sistema di installazione, e le sue funzioni vengono chiamate tramite degli “include” nelle pagine sviluppate dai grafici.
Esempio: se in una pagina si vogliono inserire le offerte dell’albergo, é sufficiente che i grafici preparino la pagina come loro desiderano, stili compresi, e nel punto esatto dove si vogliono inserire le offerte, basta includere la pagina di Hotello che serve a stampare a schermo le offerte.
Ulteriori Informazioni


Jumapili

Descrizione ridotta del progetto

Jumapili é un CMS (Content Management System) multilingua sviluppato in php5 con supporto a MySQL tramite mysqli. É interamente modulare, e molto performante.
Come Hotello, é stato sviluppato per rendere migliore la collaborazione tra programmatori, grafici, traduttori e aziende; comprende un comodo sistema di installazione, e le sue funzioni vengono chiamate tramite degli “include” nelle pagine sviluppate dai grafici.
Esempio: se in una pagina si vogliono inserire le news dell’azienda, é sufficiente che i grafici preparino la pagina come loro desiderano, stili compresi, e nel punto esatto dove si vogliono inserire le news, basta includere la pagina di Hotello che serve a stampare a schermo le news.

Ulteriori Informazioni

Altri Lavori


Elettronica Diesel BolzanoElettronica Diesel, un semplice sito realizzato per presentare un’officina di Bolzano, specializzata in impianti Diesel / Common Rail

BD theme screenshot, wordpress theme of bd-things.netBD-Blog Theme, il tema del blog che state visitando