Documentation

Features

Upgrading to V4.1

This page outlines how to upgrade from prior versions. These instructions are in addition to the ones listed on the Upgrading Instructions page.

From V4.0.x

PHP Files

If you are upgrading from v4.0.x you will need to replace all the php files.

Template Files

The templates files have also changed and it is recommended to replace all of the ones in the default folder. If you have customized templates hopefully they are in their own folder so you can see the changes. The biggest change in v4.1 was in the internal files. Every template file besides layout.tpl.

The v4.1 layout.tpl template file is almost the same as v4.0.x except the head section. Here is the new head:

<head>
	<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
	<title>{$sitetitle}</title>
	<meta name="Keywords" content="{$sitekeywords}" />
	<meta name="Description" content="{$sitedescription}" />
	{if $smarty.server.SERVER_PORT == '443'}
	<base href="{$smarty.const.URLS}/" />
	{else}
	<base href="{$smarty.const.URL}/" />
	{/if}
	<link rel="stylesheet" href="templates/{$smarty.const.MAIN_TEMPLATE}/css/style.css" type="text/css" />
	<script type="text/javascript" src="javascript/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="javascript/main.js"></script>
	{$header}
	{modulehook function="tpl_layout_head" options=""}
</head>

As you can see we include jquery and a main.js file. This is different than in v4.0.x. So for your own custom template you would just replace the current javascript include lines with the two above.

For the new template logo we have added these variables:

 
{if $template_logo <> ''}
	<img src="photos/{$template_logo}" alt="{$template_title}" />
{else}
	<h1><a href="index.php">{$template_title|default:'68 Classifieds'}</a></h1>
	<p>{$sitedescription|default:'Your site description'}</p>
{/if}

Modules

The module system has changed and all modules will need to be replaced with updated versions. All of our modules have been upgraded to work with v4.1. For any third party modules you will need to check with the vendor to make sure it is compatible.

From V3.x

If you are running v3.x you will need to replace everything. Not much is the same between v3 and v4.1.


Have more questions? Visit our community forums.