собственно, как просто добавить модуль я вроде разобрался, модуль у меня добавился, но я хочу сделать чтобы этот модуль содержал подмодули. как это реализовать?:)
модуль добавляется двумя файлами как я понял, например у меня это:
includes\ucp\info\ucp_huds.php с таким содержанием:
Код: Выделить всё
<?php
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
class ucp_huds_info
{
function module()
{
return array(
'filename' => 'ucp_huds',
'title' => 'UCP_HUDS',
'version' => '0.0.1',
'modes' => array(
'personal' => array('title' => 'UCP_HUDS', 'auth' => '', 'cat' => array('UCP_HUDS')),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>такой:
Код: Выделить всё
<?php
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
class ucp_huds
{
var $u_action;
function main($id, $mode)
{
global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
$user->add_lang('mods/huds');
$template->assign_vars(array(
'L_TITLE' => $user->lang['UCP_HUDS_' . strtoupper($mode)],)
);
$this->tpl_name = 'huds/ucp_huds_' . $mode;
$this->page_title = $user->lang['UCP_HUDS_' . strtoupper($mode)];
}
}
?>Код: Выделить всё
<!-- INCLUDE ucp_header.html -->
<form id="ucp" method="post" action="{S_UCP_ACTION}"{S_FORM_ENCTYPE}>
<h2>{L_TITLE}</h2>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<span class="corners-bottom"><span></span></span></div>
</div>
<fieldset class="submit-buttons">
{S_HIDDEN_FIELDS}<input type="reset" value="{L_RESET}" name="reset" class="button2" />
<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- INCLUDE ucp_footer.html -->надеюсь понятно выразился...

