Archive for February, 2008

Solved: Override Default HTML Title in b2Evolution 2.x

Friday, February 22nd, 2008

I’d set up my 1.x installation of b2Evolution to use a custom HTML title in the format:

<title>[Post/Page name - ] Blog name</title>

On installing 2.4, however, I noticed that the default title is just the post/page name if it exists and the blog name if it doesn’t (i.e. for the posts list). This was based on a function call to a function called request_title. Google didn’t tell me much about this function (not the 2.x version anyway) so I went hunting and found the function in the file: \inc\_core\_template.funcs.php

(more…)

Add This

Solved: b2Evolution - Sidebar 2 [NOT INCLUDED IN SELECTED SKIN!]

Tuesday, February 19th, 2008

I’ve just upgraded another blog from b2Evolution 1.10 to 2.4, which means reworking the skin I developed to work with the new “Skins 2.0″ framework. It also means that instead of hacking html into my _main.php file, I’m going to use the customisable ‘widgets’ to create my sidebars. This is in the Blog Settings -> Widgets panel.

It seems to work pretty well. I copied a default skin (the asevo one) to a directory called proto, installed the copied skin and began changing it. I decided I wanted to keep the 3-column layout from my old 1.10 skin and luckily there is already a default container called Sidebar and another called Sidebar 2. The problem was my skin didn’t use Sidebar 2.

It was easily fixed, I created a new <div> and used the same skin_container function which the skin used to call the Sidebar widget. I just replaced skin_container( NT_(’Sidebar’) with skin_container( NT_(’Sidebar 2′) and it fitted in. Despite the fact the skin now used Sidebar 2, the admin interface kept telling me it didn’t. The container in the admin site said Sidebar 2 [NOT INCLUDED IN SELECTED SKIN!] and every time I tried to add a new widget I got a message saying “WARNING: you are adding to a container that does not seem to be part of the current skin” (I Googled the former error message and, to my shock, got zero results. Hopefully this post will fix that).

Solution

It still worked ok, but I don’t like things that are out of place. To solve this, it turns out all you have to do is go to Global Settings -> Skins install panel and there’s an icon beside each skin to “Reload containers”. Do that and it’ll pick up your call to Sidebar 2 and rid you of that irksome error message.

Add This

Another 640KB moment?

Monday, February 4th, 2008

OK, so Gates denies ever saying the infamous line “640K software is all the memory anybody would ever need on a computer,” but I still think it’s the best illustration of the pitfalls of making predictions about the future-proofness of a technology.

Discussing the impending inclusion of IPv6 records in the internet’s root servers the BBC’s technology news proclaims today:

Under IPv6 an effectively inexhaustible pool of addresses becomes available.

I haven’t studied the matter in any great detail but surely that’s a very bold claim.

Add This