New link block: German translation + seems that some things has been forgotten (i ran into several errors in the ACP, fixed it)
This commit is contained in:
@@ -18,7 +18,7 @@ class acp_portal
|
||||
function main($id, $mode)
|
||||
{
|
||||
global $db, $user, $template;
|
||||
global $config, $portal_config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
||||
global $config, $portal_config, $phpbb_root_path, $phpbb_admin_path, $phpEx, $type;
|
||||
|
||||
include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
|
||||
|
||||
@@ -52,7 +52,7 @@ class acp_portal
|
||||
'portal_birthdays' => array('lang' => 'PORTAL_BIRTHDAYS' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_birthdays_ahead' => array('lang' => 'PORTAL_BIRTHDAYS_AHEAD' , 'validate' => 'int' , 'type' => 'text:3:3' , 'explain' => true),
|
||||
'portal_random_member' => array('lang' => 'PORTAL_RANDOM_MEMBER' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'forum_index' => array('lang' => 'PORTAL_FORUM_INDEX' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_forum_index' => array('lang' => 'PORTAL_FORUM_INDEX' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_whois_online' => array('lang' => 'PORTAL_WHOIS_ONLINE' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_change_style' => array('lang' => 'PORTAL_CHANGE_STYLE' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_main_menu' => array('lang' => 'PORTAL_MAIN_MENU' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
@@ -423,21 +423,21 @@ class acp_portal
|
||||
|
||||
function createLink($value, $key)
|
||||
{
|
||||
global $user, $phpEx;
|
||||
$icon_up = '<a href="'.append_sid("{$phpbb_root_path}index.$phpEx", 'i=portal&mode=links&action=moveup&link='.$value['key']).'"><img src="' . $phpbb_admin_path . 'images/icon_up.gif" alt="' . $user->lang['MOVE_UP'] . '" title="' . $user->lang['MOVE_UP'] . '" /></a>';
|
||||
global $user, $phpEx, $phpbb_admin_path;
|
||||
$icon_up = '<a href="'.append_sid("{$phpbb_admin_path}index.$phpEx", 'i=portal&mode=links&action=moveup&link='.$value['key']).'"><img src="' . $phpbb_admin_path . 'images/icon_up.gif" alt="' . $user->lang['MOVE_UP'] . '" title="' . $user->lang['MOVE_UP'] . '" /></a>';
|
||||
$icon_up_d = '<img src="' . $phpbb_admin_path . 'images/icon_up_disabled.gif" alt="' . $user->lang['MOVE_UP'] . '" title="' . $user->lang['MOVE_UP'] . '" />';
|
||||
$icon_down = '<a href="'.append_sid("{$phpbb_root_path}index.$phpEx", 'i=portal&mode=links&action=movedown&link='.$value['key']).'"><img src="' . $phpbb_admin_path . 'images/icon_down.gif" alt="' . $user->lang['MOVE_DOWN'] . '" title="' . $user->lang['MOVE_DOWN'] . '" /></a>';
|
||||
$icon_down = '<a href="'.append_sid("{$phpbb_admin_path}index.$phpEx", 'i=portal&mode=links&action=movedown&link='.$value['key']).'"><img src="' . $phpbb_admin_path . 'images/icon_down.gif" alt="' . $user->lang['MOVE_DOWN'] . '" title="' . $user->lang['MOVE_DOWN'] . '" /></a>';
|
||||
$icon_down_d = '<img src="' . $phpbb_admin_path . 'images/icon_down_disabled.gif" alt="' . $user->lang['MOVE_DOWN'] . '" title="' . $user->lang['MOVE_DOWN'] . '" />';
|
||||
$icon_del = '<a href="'.append_sid("{$phpbb_root_path}index.$phpEx", 'i=portal&mode=links&action=delete&link='.$value['key']).'"><img src="' . $phpbb_admin_path . 'images/icon_delete.gif" alt="' . $user->lang['DELETE'] . '" title="' . $user->lang['DELETE'] . '" /></a>';
|
||||
$icon_del = '<a href="'.append_sid("{$phpbb_admin_path}index.$phpEx", 'i=portal&mode=links&action=delete&link='.$value['key']).'"><img src="' . $phpbb_admin_path . 'images/icon_delete.gif" alt="' . $user->lang['DELETE'] . '" title="' . $user->lang['DELETE'] . '" /></a>';
|
||||
|
||||
return '<input id="' . $key . '_text" type="text" size="40" maxlength="255" name="config[' . $key . '_text]" value="' . $value['text'] . '" /> <input id="' . $key . '_url" type="text" size="40" maxlength="255" name="config[' . $key . '_url]" value="' . $value['url'] . '" /> ' . $icon_del . ' ' . ( ($value['key'] < $this->link_num) ? $icon_down : $icon_down_d ) . ' ' . ( ($value['key'] > 1) ? $icon_up : $icon_up_d );
|
||||
}
|
||||
|
||||
function addLink($value, $key)
|
||||
{
|
||||
global $user, $phpEx;
|
||||
global $user, $phpEx, $phpbb_admin_path;
|
||||
|
||||
$link = append_sid("{$phpbb_root_path}index.$phpEx", 'i=portal&mode=links&action=add');
|
||||
$link = append_sid("{$phpbb_admin_path}index.$phpEx", 'i=portal&mode=links&action=add');
|
||||
|
||||
return '<a href="'.$link.'">'.$user->lang['PORTAL_LINK_ADD'].'</a>';
|
||||
}
|
||||
|
||||
@@ -85,6 +85,7 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_archive', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_archive', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_array', 'a:2:{i:1;a:2:{s:4:"text";s:9:"Board3.de";s:3:"url";s:21:"http://www.board3.de/";}i:2;a:2:{s:4:"text";s:9:"phpBB.com";s:3:"url";s:21:"http://www.phpbb.com/";}}');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_add', '');
|
||||
|
||||
# POSTGRES COMMIT #
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ $sql_update['0.2.3'] = array(
|
||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_archive', '1')",
|
||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_archive', '1')",
|
||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_array', 'a:2:{i:1;a:2:{s:4:\"text\";s:9:\"Board3.de\";s:3:\"url\";s:21:\"http://www.board3.de/\";}i:2;a:2:{s:4:\"text\";s:9:\"phpBB.com\";s:3:\"url\";s:21:\"http://www.phpbb.com/\";}}')",
|
||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_add', '')",
|
||||
);
|
||||
|
||||
?>
|
||||
@@ -33,20 +33,21 @@ if (empty($lang) || !is_array($lang))
|
||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||
|
||||
$lang = array_merge($lang, array(
|
||||
'LOG_CONFIG_GENERAL' => '<strong>Portal: Altered general settings</strong>',
|
||||
'LOG_CONFIG_NEWS' => '<strong>Portal: Altered news settings</strong>',
|
||||
'LOG_CONFIG_ANNOUNCEMENTS' => '<strong>Portal: Altered announcements settings</strong>',
|
||||
'LOG_CONFIG_WELCOME' => '<strong>Portal: Altered welcome message settings</strong>',
|
||||
'LOG_CONFIG_GENERAL' => '<strong>Portal: Altered general settings</strong>',
|
||||
'LOG_CONFIG_NEWS' => '<strong>Portal: Altered news settings</strong>',
|
||||
'LOG_CONFIG_ANNOUNCEMENTS' => '<strong>Portal: Altered announcements settings</strong>',
|
||||
'LOG_CONFIG_WELCOME' => '<strong>Portal: Altered welcome message settings</strong>',
|
||||
'LOG_CONFIG_RECENT' => '<strong>Portal: Altered recent topics settings</strong>',
|
||||
'LOG_CONFIG_WORDGRAPH' => '<strong>Portal: Altered wordgraph settings</strong>',
|
||||
'LOG_CONFIG_PAYPAL' => '<strong>Portal: Altered paypal donations settings</strong>',
|
||||
'LOG_CONFIG_ATTACHMENTS' => '<strong>Portal: Altered attachments settings</strong>',
|
||||
'LOG_CONFIG_MEMBERS' => '<strong>Portal: Altered latest members settings</strong>',
|
||||
'LOG_CONFIG_POLLS' => '<strong>Portal: Altered poll settings</strong>',
|
||||
'LOG_CONFIG_BOTS' => '<strong>Portal: Altered last visited bots settings</strong>',
|
||||
'LOG_CONFIG_MEMBERS' => '<strong>Portal: Altered latest members settings</strong>',
|
||||
'LOG_CONFIG_POLLS' => '<strong>Portal: Altered poll settings</strong>',
|
||||
'LOG_CONFIG_BOTS' => '<strong>Portal: Altered last visited bots settings</strong>',
|
||||
'LOG_CONFIG_POSTER' => '<strong>Portal: Altered most posters settings</strong>',
|
||||
'LOG_CONFIG_MINICALENDAR' => '<strong>Portal: Altered mini calendar settings</strong>',
|
||||
'LOG_CONFIG_CUSTOMBLOCK' => '<strong>Portal: Altered custom block settings</strong>',
|
||||
'LOG_CONFIG_LINKS' => '<strong>Portal: Altered links block settings</strong>',
|
||||
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user