Zeile 321 | Zeile 321 |
---|
{ $update_prefix['groups'] = '-1'; }
|
{ $update_prefix['groups'] = '-1'; }
|
$db->update_query('threadprefixes', $update_prefix, "pid='{$mybb->input['pid']}'");
| |
$plugins->run_hooks('admin_config_thread_prefixes_edit_prefix_commit');
|
$plugins->run_hooks('admin_config_thread_prefixes_edit_prefix_commit');
|
| $db->update_query('threadprefixes', $update_prefix, "pid='{$mybb->input['pid']}'");
|
// Log admin action log_admin_action($mybb->input['pid'], $mybb->input['prefix']);
| // Log admin action log_admin_action($mybb->input['pid'], $mybb->input['prefix']);
|
Zeile 362 | Zeile 362 |
---|
$mybb->input['prefix'] = $threadprefix['prefix']; $mybb->input['displaystyle'] = $threadprefix['displaystyle']; $mybb->input['forum_1_forums'] = explode(",", $threadprefix['forums']);
|
$mybb->input['prefix'] = $threadprefix['prefix']; $mybb->input['displaystyle'] = $threadprefix['displaystyle']; $mybb->input['forum_1_forums'] = explode(",", $threadprefix['forums']);
|
|
|
if(!$threadprefix['forums'] || $threadprefix['forums'] == -1) { $forum_checked[1] = "checked=\"checked\"";
| if(!$threadprefix['forums'] || $threadprefix['forums'] == -1) { $forum_checked[1] = "checked=\"checked\"";
|
Zeile 403 | Zeile 403 |
---|
{ checked = $(this).val(); }
|
{ checked = $(this).val(); }
|
});
| });
|
$('.'+id+'s').each(function(e)
|
$('.'+id+'s').each(function(e)
|
{
| {
|
$(this).hide(); }); if($('#'+id+'_'+checked))
| $(this).hide(); }); if($('#'+id+'_'+checked))
|
Zeile 422 | Zeile 422 |
---|
<tr> <td valign=\"top\"><small>{$lang->forums_colon}</small></td> <td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td>
|
<tr> <td valign=\"top\"><small>{$lang->forums_colon}</small></td> <td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td>
|
</tr> </table> </dd>
| </tr> </table> </dd>
|
</dl> <script type=\"text/javascript\"> checkAction('forum');
| </dl> <script type=\"text/javascript\"> checkAction('forum');
|
Zeile 465 | Zeile 465 |
---|
if(empty($prefix['pid'])) { flash_message($lang->error_invalid_thread_prefix, 'error');
|
if(empty($prefix['pid'])) { flash_message($lang->error_invalid_thread_prefix, 'error');
|
admin_redirect('index.php?module=config-thread_prefixes');
| admin_redirect('index.php?module=config-thread_prefixes');
|
}
// User clicked no if($mybb->input['no'])
|
}
// User clicked no if($mybb->input['no'])
|
{
| {
|
admin_redirect('index.php?module=config-thread_prefixes'); }
|
admin_redirect('index.php?module=config-thread_prefixes'); }
|
$plugins->run_hooks('admin_config_thread_prefixes_delete_prefix');
| $plugins->run_hooks('admin_config_thread_prefixes_delete_prefix');
|
if($mybb->request_method == 'post') { // Remove prefix from existing threads $update_threads = array('prefix' => 0);
|
if($mybb->request_method == 'post') { // Remove prefix from existing threads $update_threads = array('prefix' => 0);
|
$db->update_query('threads', $update_threads, "prefix='{$prefix['pid']}'");
| |
// Delete prefix $db->delete_query('threadprefixes', "pid='{$prefix['pid']}'");
$plugins->run_hooks('admin_config_thread_prefixes_delete_thread_prefix_commit');
|
// Delete prefix $db->delete_query('threadprefixes', "pid='{$prefix['pid']}'");
$plugins->run_hooks('admin_config_thread_prefixes_delete_thread_prefix_commit');
|
| $db->update_query('threads', $update_threads, "prefix='{$prefix['pid']}'");
|
// Log admin action log_admin_action($prefix['pid'], $prefix['prefix']);
| // Log admin action log_admin_action($prefix['pid'], $prefix['prefix']);
|