Upgrade Skin from 1.6 to 1.8
If you already have a personalized skin that works with b2evolution 1.6 and you now want to upgrade it to work with 1.8, then this guide shows you how. Luckily, there’s not much to it.
Head plugin hook
Permalinks work differently than they used to. You now have some more choices on how to create the links. This is how it used to be done:
The easiest way to upgrade it is just to change
$Item->permanent_url(). But, if you’re using the standard icon and you want your code to look more clean, then change it to look like this:
That one little function replaces the whole block of code from before.
The function to output the author name has changed. It used to be like this:
And now it’s like this:
When the view count feature was added in 1.6, it looked like this:
That didn’t look so good when the post had been viewed once and it read "1 views." So, the views method now outputs the number and the word (with proper pluralization):
There are a lot of changes to the _feedback.php file (too many to list here). If you’re still dragging along a customized
_feedback.php file from an earlier version, then it’s probably time to just grab the stock 1.8 file and recustomize it.
Created by • Last edit by on Nov 10, 2013