mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Forum admin clean-up
This commit is contained in:
@@ -141,7 +141,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
'forum_sef' => array ( 'title' => LAN_SEFURL, 'type' => 'text', 'batch'=>true, 'inline'=>true, 'noedit'=>false, 'data' => 'str', 'width' => 'auto', 'help' => 'Leave blank to auto-generate it from the title above.', 'readParms' => '', 'writeParms' => 'sef=forum_name&size=xxlarge', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'forum_description' => array ( 'title' => LAN_DESCRIPTION, 'type' => 'textarea', 'data' => 'str', 'width' => '30%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'forum_image' => array ( 'title' => LAN_IMAGE, 'type' => 'image', 'batch'=>false, 'inline'=>false, 'noedit'=>false, 'data' => 'str', 'width' => 'auto', 'help' => 'Image that will be displayed using {FORUMIMAGE}', 'readParms' => '', 'writeParms' => 'media=forum&max=1', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'forum_icon' => array('title' => LAN_ICON, 'type' => 'icon', 'data' => 'str', 'width' => 'auto', 'help' => 'Icon that will be displayed using {FORUMICON}', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'center',),
|
||||
'forum_icon' => array ('title' => LAN_ICON, 'type' => 'icon', 'data' => 'str', 'width' => 'auto', 'help' => 'Icon that will be displayed using {FORUMICON}', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'center',),
|
||||
'forum_parent' => array ( 'title' => FORLAN_75, 'type' => 'dropdown', 'data' => 'int', 'width' => '10%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'forum_sub' => array ( 'title' => LAN_FORUM_1002, 'type' => 'dropdown', 'data' => 'int', 'width' => 'auto', 'help' => '', 'readParms' => array(), 'writeParms' => array(), 'class' => 'center', 'thclass' => 'center', ),
|
||||
'forum_moderators' => array ( 'title' => LAN_FORUM_2003, 'type' => 'userclass', 'inline'=>true, 'data' => 'int', 'width' => 'auto', 'help' => '', 'readParms' => 'classlist=admin,main,classes', 'writeParms' => "classlist=admin,main,mods,classes", 'class' => 'left', 'thclass' => 'left', ),
|
||||
@@ -349,7 +349,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
|
||||
|
||||
|
||||
public function beforeCreate($new_data)
|
||||
public function beforeCreate($new_data, $old_data)
|
||||
{
|
||||
$sql = e107::getDb();
|
||||
$parentOrder = $sql->retrieve('forum','forum_order','forum_id='.$new_data['forum_parent']." LIMIT 1");
|
||||
@@ -416,7 +416,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
}
|
||||
|
||||
|
||||
public function afterDelete($del_data,$id)
|
||||
public function afterDelete($deleted_data, $id, $deleted_check)
|
||||
{
|
||||
e107::getCache()->clear_sys('forum_perms');
|
||||
}
|
||||
@@ -1036,7 +1036,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
|
||||
}
|
||||
|
||||
public function afterDelete($data)
|
||||
public function afterDelete($deleted_data, $id, $deleted_check)
|
||||
{
|
||||
// $sql2->db_Delete('banlist', "banlist_ip='{$banIP}'");
|
||||
}
|
||||
@@ -1160,7 +1160,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
}
|
||||
}
|
||||
|
||||
public function afterDelete($data)
|
||||
public function afterDelete($deleted_data, $id, $deleted_check)
|
||||
{
|
||||
// $sql2->db_Delete('banlist', "banlist_ip='{$banIP}'");
|
||||
}
|
||||
|
Reference in New Issue
Block a user