https://www.icyphoenix.com/viewtopic.php?f=4&t=1606&p=11968#p11968
-----------------------------------
hpl
Wed 11 Apr, 2007 18:25

CMS - How To Create New HTML Block To Add In Your CMS
-----------------------------------
[cell class=mg_quotetitle][size=16]Introduction[/size][/cell][cell class=mg_quotediv][size=14][font=Trebuchet MS]With the CMS system you can add each kind of block in every page of your Icy Phoenix board. If, for example, you have a particular block that you must put in a lot of personal page (like a footer or sponsor), is very useful to create a custom block in a block file, because you can edit .tpl file [u]only one time[/u] and upload it: all your pages will then get the changes![/font][/size][/cell]

[cell class=mg_quotetitle][size=16]Instructions[/size][/cell][cell class=mg_quotediv][list=1][*]Create yoursite/blocks/blocks_imp_YOURBLOCK.php

[code]<?php
/***************************************************************************
 *           blocks_imp_YOURBLOCK.php
 *             -------------------
 *   begin                : 2007/02/06
 *   copyright            : Mighty Gorgon
 *   website              : http://www.mightygorgon.com
 *   email                : mightygorgon@mightygorgon.com
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die('Hacking attempt');
}
if(!function_exists(imp_YOURBLOCK_func))
{
	function imp_YOURBLOCK_func()
	{
		global $lang, $template, $board_config;

		$template->assign_vars(array(
			)
		);
	}
}

imp_YOURBLOCK_func();

?>[/code]

[*]Create yoursite/templates/xxx/blocks/YOURBLOCK_block.tpl and put in it your personal HTML code.

[*]P.S.: replace YOURBLOCK with your personal name! That's all, good work![/list][/cell]


