- b2evolution CMS User Manual
- Installation / Upgrade
- Upgrade
- Instructions for specific versions
- 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.