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. Upgrade Skin from 0.9.2 to 1.8 Support Files

Upgrade Skin from 0.9.2 to 1.8 Support Files

This page shows changes you need to make, files you can delete, and files you need to add in order to upgrade your personalized skin from 0.9.2 to the 1.8 version of b2evolution. These changes are only part of the whole! You must also upgrade your skins/skinname/_main.php file according to the information on this page.

All of the other files in your skins/skinname folder have changed! You will need to make the following change to every one of them. Find this line:

if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );

Replace it with this line:

if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

_arcdir.php

skins/skinname/_arcdir.php has changed. Replace EVERTHING after the ‘core loaded validation’ line with this:


/**
	 * We now call the default arcdir handler...
	 * However you can replace this file with the full handler (in /blogs) and customize it!
	 */
	require get_path('skins').'_arcdir.php';
?>

Note that there is no space or return after the closing ‘'’?>”’!!!

_archives.php

skins/skinname/_archives.php no longer exists. Delete it!

_bloglist.php

The "require" path has changed. In your skins/skinname/_bloglist.php file find this line:

require get_path('skins').'/_bloglist.php';

Replace it with this line:

require get_path('skins').'_bloglist.php';

_calendar.php

skins/skinname/_calendar.php no longer exists. Delete it!

_categories.php

skins/skinname/_categories.php no longer exists. Delete it!

_feedback.php

The "require" path has changed. In your skins/skinname/_feedback.php file find this line:

require get_path('skins').'/_feedback.php';

Replace it with this line:

require get_path('skins').'_feedback.php';

If you do not require the "common _feedback.php" as above, you’ll have to change the names of the comment form fields:

  • comment is now named p
  • author is now named u
  • email is now named i
  • url is now named o

So, e.g. find


 <textarea name="'''comment'''" id="comment" cols="70" rows="4" tabindex="4"></textarea>
in your _feedback.php file and replace it with
 <textarea name="'''p'''" id="comment" cols="70" rows="4" tabindex="4"></textarea>

Note: Not changing the fieldnames as stated above will result in error messages like "Please fill in your name." and/or "Please do not send empty comments."

_lastcomments.php

The "require" path has changed. In your skins/skinname/_lastcomments.php file find this line:

require get_path('skins').'/_lastcomments.php';

Replace it with this line:

require get_path('skins').'_lastcomments.php';

_linkblog.php

The "require" path has changed. In your skins/skinname/_linkblog.php file find this line:

require get_path('skins').'/_linkblog.php';

Replace it with this line:

require get_path('skins').'_linkblog.php';

_msgform.php

This is a file that did not exist in 0.9.2, so you will have to add it if you want to allow visitors to send email (without revealing email IDs) via the message form feature. Create and add the following as skins/skinname/_msgform.php:


<?php
	/*
	 * This is the template that displays the message email form
	 *
	 * This file is not meant to be called directly.
	 * It is meant to be called by an include in the _main.php template.
	 * To display a feedback, you should call a stub AND pass the right parameters
	 * For example: /blogs/index.php?p=1&more=1&c=1&tb=1&pb=1
	 * Note: don't code this URL by hand, use the template functions to generate it!
	 *
	 * b2evolution - {@link http://b2evolution.net/}
	 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
	 * @copyright (c)2003-2006 by Francois PLANQUE - {@link http://fplanque.net/}
	 *
	 * @package evoskins
	 * @subpackage custom
	 */
	if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );


	/*
	 * We now call the default message email handler...
	 * However you can replace this file with the full handler (in /blogs) and customize it!
	 */
	require get_path('skins').'_msgform.php';
?>

Note that there is no space or return after the closing ‘'’?>”’!!!

_profile.php

The "require" path has changed. In your skins/skinname/_profile.php file find this line:

require get_path('skins').'/_profile.php';

Replace it with this line:

require get_path('skins').'_profile.php';

_subscriptions.php

This is a file that did not exist in 0.9.2, so you will have to add it if you want to enable bloggers to easily manage their subscriptions. Create and add the following as skins/skinname/_subscriptions.php:


<?php
	/**
	 * This is the template that displays the user subscriptions editing form
	 *
	 * This file is not meant to be called directly.
	 * It is meant to be called by an include in the _main.php template.
	 * To display a feedback, you should call a stub AND pass the right parameters
	 * For example: /blogs/index.php?disp=profile
	 *
	 * b2evolution - {@link http://b2evolution.net/}
	 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
	 * @copyright (c)2003-2006 by Francois PLANQUE - {@link http://fplanque.net/}
	 *
	 * @package evoskins
	 * @subpackage custom
	 */
	if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

	/**
	 * We now call the default user profile form handler...
	 * However you can replace this file with the full handler (in /blogs) and customize it!
	 */
	require get_path('skins').'_subscriptions.php';
?>

Note that there is no space or return after the closing ‘'’?>”’!!!

Now back to the page that cover the rest of _main.php from 0.9.2 to 1.8!

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

No feedback yet

On this page

  • _arcdir.php
  • _archives.php
  • _bloglist.php
  • _calendar.php
  • _categories.php
  • _feedback.php
  • _lastcomments.php
  • _linkblog.php
  • _msgform.php
  • _profile.php
  • _subscriptions.php

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
Photo albums software

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