W UniComm'ie pominięto opcje usuwania komunikatora, lecz jakoś sobie poradzimy
[phpbb]
##### - [OPEN]
admin/admin_unicomm.php
##### -[FIND]
if ($mode == '')
{
// Show The UniComm List
##### - [BEFORE ADD]
if( $mode == 'delete' )
{
$uc_id=(isset($_GET['id'])?intval($_GET['id']):0);
$uc_data=array();
if ($uc_id)
{
$sql = 'DELETE FROM ' . UNICOMM_TABLE . ' WHERE uc_id=' . $uc_id;
if ( !($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Failed obtaining UniComm information', '', __LINE__, __FILE__, $sql);
}
$message=$lang['Unicomm_deleted'];
$message .= "<br /><br />" . sprintf($lang['Click_return_Unicommadmin'], "<a href=\"" . append_sid("admin_unicomm.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
$uc_data=$db->sql_fetchrow($result);
}
else
{
$uc_data['uc_type']=0;
}
}
##### [FIND]
'EDIT'=>'<a href="'.append_sid('admin_unicomm.'.$phpEx.'?mode=edit&id='.$row['uc_id']).'">'.$lang['EE'].'</a>',
##### [BEFORE ADD]
'DELETE'=>'<a href="'.append_sid('admin_unicomm.'.$phpEx.'?mode=delete&id='.$row['uc_id']).'">'.$lang['DD'].'</a>',
##### [OPEN]
language/lang_polish/lang_main.php
##### [FIND]
//
// That's all Folks!
// -------------------------------------------------
##### [BEFORE ADD]
$lang['DD']='U';
$lang['EE']='E';
##### [OPEN]
templates/{STYL}/admin/unicomm_list_body.tpl
##### [FIND]
<td class="{unicomm.ROW_CLASS}" align="center">{unicomm.EDIT}</td>
##### [REPLACE WITH]
<td class="{unicomm.ROW_CLASS}" align="center">{unicomm.EDIT} | {unicomm.DELETE}</td>[/phpbb]
Wyciągane z plików, jak czegoś zabrakło, lub nie działa, proszę wołać