diff --git a/root/language/de/mods/portal/portal_latest_bots_module.php b/root/language/de/mods/portal/portal_latest_bots_module.php index 10655404..18f30a52 100644 --- a/root/language/de/mods/portal/portal_latest_bots_module.php +++ b/root/language/de/mods/portal/portal_latest_bots_module.php @@ -34,8 +34,6 @@ if (empty($lang) || !is_array($lang)) $lang = array_merge($lang, array( 'LATEST_BOTS' => 'Letzte Bots', 'LAST_VISITED_BOTS' => 'Die letzten Bots', - 'LAST_VISITED_BOTS_CNT' => 'Die letzten %s Bots', - 'LAST_VISITED_BOT' => 'Der letzte Bot', // ACP 'ACP_PORTAL_BOTS_SETTINGS' => 'Einstellungen für Bot-Besuche', diff --git a/root/language/en/mods/portal/portal_latest_bots_module.php b/root/language/en/mods/portal/portal_latest_bots_module.php index ec3c1712..fcf19071 100644 --- a/root/language/en/mods/portal/portal_latest_bots_module.php +++ b/root/language/en/mods/portal/portal_latest_bots_module.php @@ -34,8 +34,6 @@ if (empty($lang) || !is_array($lang)) $lang = array_merge($lang, array( 'LATEST_BOTS' => 'Latest Bots', 'LAST_VISITED_BOTS' => 'Last visited bots', - 'LAST_VISITED_BOTS_CNT' => 'Last %s visited bots', - 'LAST_VISITED_BOT' => 'Last visited bot', // ACP 'ACP_PORTAL_BOTS_SETTINGS' => 'Visiting bots settings', diff --git a/root/portal/modules/portal_latest_bots.php b/root/portal/modules/portal_latest_bots.php index c473d231..a6b1835e 100755 --- a/root/portal/modules/portal_latest_bots.php +++ b/root/portal/modules/portal_latest_bots.php @@ -50,7 +50,7 @@ class portal_latest_bots_module /** * hide module name in ACP configuration page */ - public $hide_name = true; + public $hide_name = false; public function get_template_side($module_id) @@ -76,27 +76,6 @@ class portal_latest_bots_module $show_module = true; } $db->sql_freeresult($result); - - if($config['board3_last_visited_bots_number_' . $module_id] != 0) - { - if($config['board3_last_visited_bots_number_' . $module_id] == 1) - { - $last_visited_bots = $user->lang['LAST_VISITED_BOT']; - } - else - { - $last_visited_bots = sprintf($user->lang['LAST_VISITED_BOTS_CNT'], $config['board3_last_visited_bots_number_' . $module_id]); - } - } - else - { - $last_visited_bots = $user->lang['LAST_VISITED_BOTS']; - } - - // Assign specific vars - $template->assign_vars(array( - 'LAST_VISITED_BOTS' => $last_visited_bots, - )); if($show_module) { diff --git a/root/styles/prosilver/template/portal/modules/latest_bots_side.html b/root/styles/prosilver/template/portal/modules/latest_bots_side.html index 6b386f4d..283924cf 100644 --- a/root/styles/prosilver/template/portal/modules/latest_bots_side.html +++ b/root/styles/prosilver/template/portal/modules/latest_bots_side.html @@ -1,4 +1,4 @@ -{$LR_BLOCK_H_L} {LAST_VISITED_BOTS}{$LR_BLOCK_H_R} +{$LR_BLOCK_H_L} {$TITLE}{$LR_BLOCK_H_R} {last_visited_bots.BOT_NAME}
{last_visited_bots.LAST_VISIT_DATE}
diff --git a/root/styles/subsilver2/template/portal/modules/latest_bots_side.html b/root/styles/subsilver2/template/portal/modules/latest_bots_side.html index 23661125..41101693 100644 --- a/root/styles/subsilver2/template/portal/modules/latest_bots_side.html +++ b/root/styles/subsilver2/template/portal/modules/latest_bots_side.html @@ -1,4 +1,4 @@ -{$LR_BLOCK_H_L} {LAST_VISITED_BOTS}{$LR_BLOCK_H_R} +{$LR_BLOCK_H_L} {$TITLE}{$LR_BLOCK_H_R}