Code: Select all
$lang = array_merge($lang, array(
'FORUM_POST_TPL' => 'Posting template',
'FORUM_POST_TPL_EXPLAIN' => 'The posting template is the text that appears in the textarea when starting a new topic in this forum. If you dont wish to use it, just leave it blank.',
Code: Select all
/**
* Display copy permission page
* Not used at the moment - we will have a look at it for 3.0.7
*/
function copy_permission_page($forum_data)
{
global $phpEx, $phpbb_admin_path, $template, $user;
$acl_url = '&mode=setting_forum_local&forum_id[]=' . $forum_data['forum_id'];
$action = append_sid($this->u_action . "&parent_id={$this->parent_id}&f={$forum_data['forum_id']}&action=copy_perm");
$l_acl = sprintf($user->lang['COPY_TO_ACL'], '<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=permissions' . $acl_url) . '">', '</a>');
$this->tpl_name = 'acp_forums_copy_perm';
$template->assign_vars(array(
'U_ACL' => append_sid("{$phpbb_admin_path}index.$phpEx", 'i=permissions' . $acl_url),
'L_ACL_LINK' => $l_acl,
'L_BACK_LINK' => adm_back_link($this->u_action . '&parent_id=' . $this->parent_id),
'S_COPY_ACTION' => $action,
'S_FORUM_OPTIONS' => make_forum_select($forum_data['parent_id'], $forum_data['forum_id'], false, false, false),
));
}
}
//-- mod : Posting Template ------------------------------------------------------------
//-- add
$lang = array_merge($lang, array(
'FORUM_POST_TPL' => 'Posting template',
'FORUM_POST_TPL_EXPLAIN' => 'The posting template is the text that appears in the textarea when starting a new topic in this forum. If you don\'t wish to use it, just leave it blank.',
));
//-- fin mod : Posting Template --------------------------------------------------------
?>
hey evil were does it goeviL<3 wrote:Ah, that is not part of this MOD. It's really simple actually. You just need to add these two things to the template:Code: Select all
<select name="addbbcode21" onchange="insert_text(make_mod_tpl(this.form.addbbcode21.options[this.form.addbbcode21.selectedIndex].value), false);this.form.addbbcode21.selectedIndex = 0;"> <option value="0" selected="selected" style="font-weight: bold;">MOD template</option> <option value="OPEN">OPEN</option> <option value="FIND">FIND</option> <option value="BEFORE, ADD">BEFORE, ADD</option> <option value="AFTER, ADD">AFTER, ADD</option> <option value="REPLACE WITH">REPLACE WITH</option> <option value="IN-LINE FIND">IN-LINE FIND</option> <option value="IN-LINE BEFORE, ADD">IN-LINE BEFORE, ADD</option> <option value="IN-LINE AFTER, ADD">IN-LINE AFTER, ADD</option> <option value="IN-LINE REPLACE WITH">IN-LINE REPLACE WITH</option> <option value="SQL">SQL</option> <option value="COPY">COPY</option> <option value="DIY INSTRUCTIONS">DIY INSTRUCTIONS</option> </select>
Code: Select all
<script type="text/javascript"> // <![CDATA[ function make_mod_tpl(action) { var mod_insert_tpl = '#' + "\n"; mod_insert_tpl += '#-----[ ' + action + ' ]------------------------------------------' + "\n"; mod_insert_tpl += '#' + "\n"; return mod_insert_tpl; } // ]]> </script>
i works with 3.0.7Delta191 wrote:is there a later version out? 3.0.7 ?