]> git.mxchange.org Git - mailer.git/commitdiff
Several template fixes/code cleanups, default module titles added:
authorRoland Häder <roland@mxchange.org>
Thu, 15 Jul 2010 18:23:34 +0000 (18:23 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 15 Jul 2010 18:23:34 +0000 (18:23 +0000)
- 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
inc/language/transfer_de.php
inc/libs/bonus_functions.php
templates/de/html/admin/admin_config_doubler.tpl
templates/de/html/admin/admin_list_transfer.tpl
templates/de/html/admin/admin_theme_import_row.tpl

index b50e2c3440f76eb7154a6dc88c4407595ade1f4e..59a6ee591d54a12b1cfdb91c028845433a78ee11 100644 (file)
@@ -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&uuml;ft . . .' WHERE `module`='chk_login' AND `title`='' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Best&auml;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 &uuml;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]
 ?>
index a8841ef9566e3bbdaaeb069d11a6b5a90bba83b8..998ead67997377e7a301e4f80535cb7ebdff54f3 100644 (file)
@@ -52,6 +52,7 @@ addMessages(array(
        'ADMIN_TRANSFER_CODE' => "L&auml;nge des Touring-Codes",
        'ADMIN_TRANSFER_CODE_NOTE' => "<strong>0</strong> deaktiviert den Touring-Code.",
        'ADMIN_AUTOPURGE_TRANSFER' => "Veraltete Eintr&auml;ge automatisch l&ouml;schen? (purge)",
+       'ADMIN_TRANSFER_POINTS_TOTAL' => "Gesamttransfersumme",
        'TRANSFER_LIST_INCOMING' => "Eingehende &Uuml;berweisungen",
        'TRANSFER_LIST_OUTGOING' => "Ausgehende &Uuml;berweisungen",
        'TRANSFER_ALLOW_OPT_IN' => "Wollen Sie {?POINTS?}-&Uuml;berweisungen von anderen Mitgliedern erhalten?",
index 556cb910184134fdab79b7b15db096a6cde2043c..acdc940d724fc5790b354bbe5808a9895f893e9e 100644 (file)
@@ -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)) {
index a2df11fce594aa5ca382861835872c62d6bf0078..d8d1bacfdddf859a50dff524ef7ca445e8b29bfc 100644 (file)
                </td>
        </tr>
        <tr>
-               <td align="right" height="20">
+               <td class="bottom" align="right" height="20">
                        {--ADMIN_DOUBLER_USERID--}:
                </td>
-               <td style="padding-left: 5px">
+               <td class="bottom" style="padding-left: 5px">
                        $content[member_selection]
                </td>
        </tr>
                </td>
        </tr>
        <tr>
-               <td align="center" height="20">
+               <td class="bottom" align="center" height="20">
                        <input type="radio" name="doubler_send_mode" class="admin_normal" value="DIRECT"$content[send_mode_direct] />
                </td>
-               <td style="padding-left: 5px">
+               <td class="bottom" style="padding-left: 5px">
                        <input type="radio" name="doubler_send_mode" class="admin_normal" value="RESET"$content[send_mode_reset] />
                </td>
        </tr>
index 9191fd5ed040b0da2ee8c57dfaae79a1132236df..7ceeb06585aee8eb3106383fd1af0e1268267ff7 100644 (file)
@@ -29,7 +29,7 @@
        $content[rows]
        <tr>
                <td colspan="5" class="admin_footer bottom">
-                       <strong>{--TRANSFER_POINTS_TOTAL--}</strong>
+                       <strong>{--ADMIN_TRANSFER_POINTS_TOTAL--}</strong>
                </td>
                <td align="center" class="header_column bottom">
                        {%pipe,translateComma=$content[total]%}
index 60bcacfc5f8bf2756628cb089f3dd6aa23b9d931..74dd22826736c60c050f4a5b974a47914d63fe70 100644 (file)
@@ -2,12 +2,12 @@
        <td class="{%template,ColorSwitch%} bottom right" align="center">$content[unix]</td>
        <td class="{%template,ColorSwitch%} bottom right" align="center">$content[theme_name]</td>
        <td class="{%template,ColorSwitch%} bottom right" align="center">
-               <a href="mailto:$content[theme_email]?Subject=[Theme:] $content[name] ($content[unix])">$content[theme_author]</a>
+               <a href="mailto:$content[theme_email]?Subject=[Theme:] $content[theme_name] ($content[unix])">$content[theme_author]</a>
        </td>
        <td class="{%template,ColorSwitch%} bottom right" align="center">
                <a href="{%pipe,generateDerefererUrl=$content[theme_url]%}" target="_blank">$content[theme_url]</a>
        </td>
-       <td class="{%template,ColorSwitch%} bottom right" align="center">v$content[theme_ver]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">v$content[theme_version]</td>
        <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[form_content]
        </td>