From e06775aabf59031184adf27803887ed26e501e2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 15 Jul 2010 18:23:34 +0000 Subject: [PATCH] Several template fixes/code cleanups, default module titles added: - Several template fixes/cleanups, e.g. class="bottom" was missing, array elements were renamed but not in templates - Code cosmetics applied - Default module titles will now be set if no module title is already entered --- inc/extensions/ext-mods.php | 24 +++++++++++++++---- inc/language/transfer_de.php | 1 + inc/libs/bonus_functions.php | 2 +- .../de/html/admin/admin_config_doubler.tpl | 8 +++---- .../de/html/admin/admin_list_transfer.tpl | 2 +- .../de/html/admin/admin_theme_import_row.tpl | 4 ++-- 6 files changed, 29 insertions(+), 12 deletions(-) diff --git a/inc/extensions/ext-mods.php b/inc/extensions/ext-mods.php index b50e2c3440..59a6ee591d 100644 --- a/inc/extensions/ext-mods.php +++ b/inc/extensions/ext-mods.php @@ -43,10 +43,10 @@ if (!defined('__SECURITY')) { } // END - if // Version number -setThisExtensionVersion('0.0.8'); +setThisExtensionVersion('0.0.9'); // Version history array (add more with , '0.1.0' and so on) -setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8')); +setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9')); switch (getExtensionMode()) { case 'register': // Do stuff when installation is running (modules.php?module=admin is called) @@ -110,7 +110,23 @@ switch (getExtensionMode()) { // Update notes (these will be set as task text!) setExtensionUpdateNotes("Verwaltung auf Management umgestellt."); break; - } + + case '0.0.9': // SQL queries for v0.0.9 + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Administrationsbereich' WHERE `module`='admin' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Logindaten werden geprüft . . .' WHERE `module`='chk_login' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Bestätigung Ihrer Email-Adresse' WHERE `module`='confirm' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='CSS-Ausgabe' WHERE `module`='css' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Die Seite wird auf Frame-Killer getestet' WHERE `module`='frametester' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Willkommen' WHERE `module`='index' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Java-Script Ausgabe' WHERE `module`='js' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Externe Seite wird geladen . . .' WHERE `module`='loader' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Willkommen zum Mitgliedsbereich!' WHERE `module`='login' AND `title`='' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Referal-Link' WHERE `module`='ref' AND `title`='' LIMIT 1"); + + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Standartnamen gesetzt, diese überschreiben nicht Ihre bereits gespeicherten Modulnamen."); + break; + } // END - switch break; case 'modify': // When the extension got modified @@ -125,7 +141,7 @@ switch (getExtensionMode()) { default: // Unknown extension mode logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); break; -} +} // END - switch // [EOF] ?> diff --git a/inc/language/transfer_de.php b/inc/language/transfer_de.php index a8841ef956..998ead6799 100644 --- a/inc/language/transfer_de.php +++ b/inc/language/transfer_de.php @@ -52,6 +52,7 @@ addMessages(array( 'ADMIN_TRANSFER_CODE' => "Länge des Touring-Codes", 'ADMIN_TRANSFER_CODE_NOTE' => "0 deaktiviert den Touring-Code.", 'ADMIN_AUTOPURGE_TRANSFER' => "Veraltete Einträge automatisch löschen? (purge)", + 'ADMIN_TRANSFER_POINTS_TOTAL' => "Gesamttransfersumme", 'TRANSFER_LIST_INCOMING' => "Eingehende Überweisungen", 'TRANSFER_LIST_OUTGOING' => "Ausgehende Überweisungen", 'TRANSFER_ALLOW_OPT_IN' => "Wollen Sie {?POINTS?}-Überweisungen von anderen Mitgliedern erhalten?", diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index 556cb91018..acdc940d72 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -65,7 +65,7 @@ function addTurboBonus ($mid, $userid, $type) { default: logDebugMessage(__FUNCTION__, __LINE__, sprintf("Invalid type %s detected.", $type)); break; - } + } // END - switch // Is a column name set? if (empty($column)) { diff --git a/templates/de/html/admin/admin_config_doubler.tpl b/templates/de/html/admin/admin_config_doubler.tpl index a2df11fce5..d8d1bacfdd 100644 --- a/templates/de/html/admin/admin_config_doubler.tpl +++ b/templates/de/html/admin/admin_config_doubler.tpl @@ -96,10 +96,10 @@ - + {--ADMIN_DOUBLER_USERID--}: - + $content[member_selection] @@ -117,10 +117,10 @@ - + - + diff --git a/templates/de/html/admin/admin_list_transfer.tpl b/templates/de/html/admin/admin_list_transfer.tpl index 9191fd5ed0..7ceeb06585 100644 --- a/templates/de/html/admin/admin_list_transfer.tpl +++ b/templates/de/html/admin/admin_list_transfer.tpl @@ -29,7 +29,7 @@ $content[rows] - {--TRANSFER_POINTS_TOTAL--} + {--ADMIN_TRANSFER_POINTS_TOTAL--} {%pipe,translateComma=$content[total]%} diff --git a/templates/de/html/admin/admin_theme_import_row.tpl b/templates/de/html/admin/admin_theme_import_row.tpl index 60bcacfc5f..74dd228267 100644 --- a/templates/de/html/admin/admin_theme_import_row.tpl +++ b/templates/de/html/admin/admin_theme_import_row.tpl @@ -2,12 +2,12 @@ $content[unix] $content[theme_name] - $content[theme_author] + $content[theme_author] $content[theme_url] - v$content[theme_ver] + v$content[theme_version] $content[form_content] -- 2.39.5