create a new file called 'portal_breizhshout.php' and placed it in /portal/modules/
Code: Select all
<?php
/**
*
* @package Board3 Portal v2 - breizhshout Block
* @copyright (c) Board3 Group ( www.board3.de )
* @Author theriddler (phpbbservice.nl)
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package Modulname
*/
class portal_breizhshout_module
{
/**
* Allowed columns: Just sum up your options (Exp: left + right = 10)
* top 1
* left 2
* center 4
* right 8
* bottom 16
*/
public $columns = 21;
/**
* Default modulename
*/
public $name = 'PORTAL_BREIZHSHOUTBOX';
/**
* Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/"
*/
public $image_src = '';
/**
* module-language file
* file must be in "language/{$user->lang}/mods/portal/"
*/
public $language = 'portal_breizhshout_module';
/**
* custom acp template
* file must be in "adm/style/portal/"
*/
public $custom_acp_tpl = '';
/**
* hide module name in ACP configuration page
*/
public $hide_name = true;
public function get_template_center($module_id)
{
global $config, $template, $phpbb_root_path, $phpEx, $auth, $user, $cache, $db;
// Start Breizh Shoutbox
if (isset($config['shout_version']))
{
if ($config['shout_enable'])
{
shout_display();
}
}
// End Breizh Shoutbox --
return 'breizh_center.html';
}
public function get_template_acp($module_id)
{
return array(
'title' => 'PORTAL_BREIZHSHOUTBOX',
'vars' => array(),
);
}
/**
* API functions
*/
public function install($module_id)
{
return true;
}
public function uninstall($module_id)
{
global $db;
return true;
}
}
and place it in: /language/en/mods/portal/
Code: Select all
<?php
/**
*
* @package Board3 Portal v2 - breizhshout Block
* @copyright (c) Board3 Group ( www.board3.de )
* @Author theriddler (phpbbservice.nl)
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'PORTAL_BREIZHSHOUTBOX' => 'Breizh shoutbox',
));
Code: Select all
<!-- IF S_DISPLAY_SHOUTBOX and POS_SHOUT_PORTAL_TOP and PORTAL_SHOUT -->
<!-- INCLUDE shout_body.html -->
<!-- ENDIF -->
<br style="clear:both" />
Finish
best regards.