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.0

Upgrading from version 0.8.0

This man page refers to b2evolution version: 0.8.2-RC2

As always, it is very wise to do a backup of your current website / blog / database (depending on what you already have) before starting to install something new.

Upgrading from version 0.8.0 is very easy:

  • You can keep your database as it is (no upgrade is necessary);

but:

  • Backup all b2evolution files, including /conf, skins, blog templates and stubfiles for your blogs.
  • Replace all b2evolution files with the new ones, including /conf, skins, blog templates and stubfiles for your blogs.
  • Redo your configuration as you did previously. You will notice new configuration files but the only file you have to edit is b2evo_config.php. The others new config files can be used without modification.
  • Test
  • Just in case you did not do it before, you may want to check out The_tricky_stuff.
  • If you had customized your blog template/skins, see below...

Upgrading templates or skins from 0.8.0

Main file (_main.php) or main template:

The core has been cleaned up... so access loops need some cleanup too...

Step 1. Replace the blog list loop:
(php)
for( blog_list_start(); blog_list_next(); ) { ?>

with:

(php)
for( $curr_blog_ID=blog_list_start('stub');
$curr_blog_ID!=false;
$curr_blog_ID=blog_list_next('stub') )
{ # by uncommenting the following lines you can hide some blogs
 if( $curr_blog_ID == 1 ) continue;  Hide blog 1...
 if( $curr_blog_ID == 2 ) continue;  Hide blog 2...
Step 2. Replace the main loop:
(php)
<?php // ------------------------------------ START OF POSTS ----------------------------------------
if( $result_num_rows ) while($row = mysql_fetch_object($result))
{
start_b2();
the_date("d.m.y","<h2>","</h2>");

with:

(php)
<?php
if( isset($MainList) ) while( $MainList->get_item() )
{
the_date("d.m.y","<h2>","</h2>");
Step 3.

The _categories.php include now displays a complete list with an "All" link by default. So you may want to remove the list wrapper (<ul>...</ul>) from your main template.

Step 4.

Finally, the new official b2evolution home is at http://b2evolution.net/, so please update your links:

<p class="center">powered by<br />
<a href="http://b2evolution.net/" title="b2evolution home"><img src="../../img/b2evolution_button.png" alt="b2evolution" width="80" height="15" border="0" class="middle" /></a></p>

_feecback.php

In each _feedback.php template, replace the form line with

(php)
<form action="<?php echo $baseurl, '/', $pathhtsrv ?>/comment_post.php" method="post" class="bComment">

_archives.php, _calendar.php, _categories.php, _lastcomments.php, _stats.php, etc.

Replace all these includes with the new versions. There have been a lot of modifications.

Attention please: the main includes are now in the base folder in order to be shared among skins that do not need very detailed customizing of these (most skins by now don't). These files are called by their counterpart stubs in each skin folder.

New template features

Check out the standard skin and copy out the features you want ;-)

WARNING:

The procedure above only explains how to upgrade to version 0.8.2. Here is how to continue upgrading templates and skins from version 0.8.2 to 0.8.6.

Created by fplanque • Last edit by fplanque on 2015-07-20 11:47 • •

No feedback yet

On this page

  • Upgrading templates or skins from 0.8.0
  • Main file (_main.php) or main template:
  • Step 1. Replace the blog list loop:
  • Step 2. Replace the main loop:
  • Step 3.
  • Step 4.
  • _feecback.php
  • _archives.php, _calendar.php, _categories.php, _lastcomments.php, _stats.php, etc.
  • New template features
  • WARNING:

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
Advanced CMS

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