b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Installation / Upgrade
  3. Upgrade
  4. Instructions for specific versions
  5. Upgrading from version 0.8.9

Upgrading from version 0.8.9

This page is about upgrading from version 0.8.9 to 0.9

Please see the instructions bundled with the distribution for general upgrade instructions and come back here once you have finished general upgrade.

Default skin

In some situations, you may get the following message after upgrade when trying to access a blog:

The default skin [custom] set for blog [blogname] does not exist. It must be properly set in the blog properties or properly overriden in a stub file. Contact the webmaster…

Just go to the blog’s properties form, check the skin assigned by default and validate the properties (even if the default skin appears to be correct).

Upgrading your custom skin

Skin functions have changed significantly. Old calls will still work in 0.9 but they are not guaranteed on the long term. So you should think about doing a complete upgrade of your skins with a diff tool.

Anyway, below are the instructions for a minimal upgrade of your skins:

File changes

  • There are files in the /skins directory. You must replace these, even if you want to continue using your old skin. Please note that _blogroll has been replaced by linkblog.
  • In your skin’s folder (/skin/yourskin):
    • Delete the _blogroll file
    • Copy a _linkblog file from a new skin

_main template

Here are the minimum changes you must do in your skin’s _main.php template:

  • Replace the code displaying the blogroll/linkblog with code from a new skin.

The new code to include the linkblog should look like:

<?php // -------------------------- LINKBLOG INCLUDED HERE -----------------------------
  require( dirname(&#x5f;_FILE__).'/_linkblog.php' );
// -------------------------------- END OF LINKBLOG ---------------------------------- ?>
  • Replace the code displaying the stats with code from a new skin. The most important thing here, is to replace
<?php while($row_stats = mysql_fetch_array($res_stats)){  ?>

with

<?php if( count( $res_stats ) ) foreach( $res_stats as $row_stats ) { ?>
  • For comments to work, replace:
<?php	// ------------------------------------ START OF POSTS ----------------------------------------
if( isset($MainList) ) while( $MainList->get_item() )

with

<?php	// ------------------------------------ START OF POSTS ----------------------------------------
if( isset($MainList) ) while( $Item = $MainList->get_item() )

About the Auto P plug-in

Version 0.9 ships with a plug-in called ‘Auto-P’ that will automatically add <p> tags to your posts.

While this is highly desirable in most situations, it may introduce some unwanted extra space in you linkblog link list.

There are two ways to deal with this:

  • Edit each link in the list and uncheck "Auto P" in the "renderers" fieldset that you will find in th elower right of the edit form. (Recommended)
  • Change the Auto P global $apply_when setting from "opt-out" to "opt-in". That way it will not be applied by default any more. (Not recommended).

Public blog list

If you display a blog list on your site and some of your hidden blogs reappear there after upgrade, go to admin -> Blogs -> The blog you want to hide -> Default display options and uncheck "Include in public blog list"

Created by fplanque • Last edit by fplanque on 2020-06-09 00:24 • •

1 comment

Comment from: isaac

Isaac

Forum topic about this

2004-08-01 @ 20:42

On this page

  • Default skin
  • Upgrading your custom skin
  • File changes
  • _main template
  • About the Auto P plug-in
  • Public blog list

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
    • New Installation
    • Upgrade
      • Manual Upgrade Procedure
      • Auto-Upgrade Procedure
      • After Installation / Upgrade
      • Automated Install / Upgrade
      • Upgrading Evoskins
      • Unexpected SQL Error during upgrade
      • Upgrading your database to UTF-8
      • Instructions for specific versions
        • To version 7.x
        • 2.x to 3.x
        • To version 6.x
        • Upgrade from 0.9.x to 1.8.x
        • 0.9.2 to 1.8
        • 1.6.x to 1.8.x
        • 1.8.x to 1.9.x
        • 1.6.x to 1.8.x
        • 1.10.x to 2.0.x
        • Upgrade from 0.9.x to 2.x
        • Upgrading from version 0.8.0
        • Upgrading from version 0.8.2
        • Upgrade from 0.9.x to 1.10.3 or 2.4rc2
        • Upgrade Skin from 1.6 to 1.8
        • Upgrade Skin from 0.9.2 to 1.8 Support Files
        • Upgrade Skin from 0.9.2 to 1.8 Head LineByLine
        • Upgrade Skin from 0.9.2 to 1.8 Head All
        • Upgrading from 0.9.x to 1.8.x
        • Upgrading from 0.9.x to 1.6 alpha
        • Upgrading from 0.9.0.x to 0.9.1
        • Upgrading from version 0.8.9
        • 0.9.x to 1.6-alpha
    • Configuration files
    • Advanced Setup
    • Migrating from Another System
    • Moving your b2evolution Site
    • FAQ & Troubleshooting (Installation / Upgrade)
    • Assumed User Skills
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
CMS + user community

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque