Added latest members block;

Drop-Down list when adding a module now shows the correct title of the block and not the class name; 
Added basic log function; 
Fixed incorrect EXPLAIN language strings of announcements block;
This commit is contained in:
Marc Alexander
2010-08-30 20:08:47 +00:00
parent 7b2376a3e1
commit 5f8c3be754
7 changed files with 175 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ class acp_portal
$display_vars = array(
'title' => 'ACP_PORTAL_GENERAL_TITLE',
'vars' => array(
'legend1' => 'ACP_PORTAL_GENERAL_INFO',
'legend1' => 'ACP_PORTAL_CONFIG_INFO',
'board3_enable' => array('lang' => 'PORTAL_ENABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'board3_left_column' => array('lang' => 'PORTAL_LEFT_COLUMN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'board3_right_column' => array('lang' => 'PORTAL_RIGHT_COLUMN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
@@ -404,14 +404,15 @@ class acp_portal
$c_class = new $class();
if ($c_class->columns & column_string_const($add_module))
{
$fileinfo[] = substr($class, 7, -7);
$user->add_lang('mods/portal/' . $c_class->language);
$fileinfo[] = $user->lang[$c_class->name];
}
}
}
}
closedir($dh);
ksort($fileinfo);
sort($fileinfo);
$options = '';
foreach ($fileinfo as $module)