From: Roland Häder Date: Thu, 14 Jul 2011 21:47:54 +0000 (+0000) Subject: Some CSS classes purged, ol.listing added, extensions fixed: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3cf256f9324419b7ae71b035993c2aba36b05d0c;p=mailer.git Some CSS classes purged, ol.listing added, extensions fixed: - Some out-dated (superfluous) CSS classes purged - Others fixed/rewritten (really a lot!) - Extension ext-beg now displays correctly memeber menu entries and SQL query is fixed - Extension ext-refback now sends correct userids out and allows an optional note to the recipient - Other minor improvements/fixes --- diff --git a/inc/extensions/ext-beg.php b/inc/extensions/ext-beg.php index 0210a77943..78d462322a 100644 --- a/inc/extensions/ext-beg.php +++ b/inc/extensions/ext-beg.php @@ -41,17 +41,19 @@ if (!defined('__SECURITY')) { } // END - if // Version number -setThisExtensionVersion('0.3.0'); +setThisExtensionVersion('0.3.1'); // Version history array (add more with , '0.0.1' and so on) -setExtensionVersionHistory(array('0.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', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0')); +setExtensionVersionHistory(array('0.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', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1')); switch (getExtensionMode()) { case 'register': // Do stuff when installation is running // SQL commands to run + // - Menu systems addAdminMenuSql('setup', 'config_beg', 'Bettel-Link', 'IP-Sperre, {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Vergütung usw. können Sie hier einstellen.', 10); - addGuestMenuSql('main', 'beg', '{OPEN_CONFIG}POINTS{CLOSE_CONFIG} erbetteln!', 4); + addGuestMenuSql('members', 'beg', '{OPEN_CONFIG}POINTS{CLOSE_CONFIG} erbetteln!', 4); addMemberMenuSql('main', 'beg', 'Ihr Bettel-Link', 6); + // - Configuration addConfigAddSql('beg_timeout', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 600'); addConfigAddSql('beg_userid_timeout', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 1800'); addConfigAddSql('beg_points', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00100'); @@ -158,7 +160,7 @@ INDEX (`userid`)", addConfigAddSql('beg_rallye', "ENUM('Y','N') NOT NULL DEFAULT 'N'"); addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `beg_points` FLOAT(21,5) UNSIGNED NOT NULL DEFAULT 0.00000"); - addMemberMenuSql('main', 'beg2', 'Bettel-Rallye', 7); + // Menu system addAdminMenuSql('user', 'list_beg', 'Bettel-Rallye', 'Listet alle Teilnehmer der monatlichen Bettel-Rallye auf.', 12); // Update notes (these will be set as task text!) @@ -235,7 +237,6 @@ INDEX (`userid`)", case '0.2.4': // SQL queries for v0.2.4 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`=1 WHERE `what`='beg' LIMIT 1"); - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='rals', `sort`=3, `title`='Bettel-Rallye' WHERE `what`='beg2' LIMIT 1"); // Update notes (these will be set as task text!) setExtensionUpdateNotes("Mitgliedsmenü komplett umgebaut."); @@ -283,7 +284,7 @@ INDEX (`userid`)", `remote_ip` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0', `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `referal_url` TINYTEXT NOT NULL, -PRIMARY KEY (`id), +PRIMARY KEY (`id`), INDEX (`userid`)", 'Recorded Referal URLs'); @@ -305,6 +306,16 @@ INDEX (`userid`)", // Update notes setExtensionUpdateNotes("Monatliche Bettelrallye und die erbettelten {?POINTS?} werden nun über die Tabelle {OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data verwaltet."); break; + + case '0.3.1': // SQL queries for v0.3.1 + // Add/move menu + addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what`='beg2'"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `action`='members',`sort`=3 WHERE `what`='beg' LIMIT 1"); + addMemberMenuSql('rals', 'beg2', 'Bettel-Rallye', 3); + + // Update notes + setExtensionUpdateNotes("Bettel-Rallye re-hinzugefügt."); + break; } // END - switch break; diff --git a/inc/language/beg_de.php b/inc/language/beg_de.php index fb22599967..748598e431 100644 --- a/inc/language/beg_de.php +++ b/inc/language/beg_de.php @@ -69,7 +69,7 @@ addMessages(array( 'GUEST_BEG_TRAILER' => "{?POINTS?} erbetteln bei...", 'GUEST_BEG_EARN_1' => "Betteln macht sich bezahlt! Für jeden Klick erhalten Sie von", 'GUEST_BEG_EARN_2' => "bis", - 'GUEST_BEG_EARN_3' => "auf Ihr Mitgliedskonto direkt gutgeschrieben. Zuddem verdienen Sie an den erbettelteten {?POINTS?} Ihrer Refferal mit.", + 'GUEST_BEG_EARN_3' => "auf Ihr Mitgliedskonto direkt gutgeschrieben. Zudem verdienen Sie an den erbettelten {?POINTS?} Ihrer Refferal mit.", 'GUEST_BEG_TIMEOUT' => "Sie können derzeit alle {%config,createFancyTime=beg_timeout%} {?POINTS?} betteln.", 'GUEST_BEG_HAVE_FUN' => "Heute noch anmelden und Spass haben.", 'ADMIN_CONFIG_BEG_POINTS_MAX' => "Maximale erbettelbare {?POINTS?} bei Klick auf Bettellink", @@ -78,6 +78,7 @@ addMessages(array( 'BEG_SORRY_YOURE_LOGGED_IN_2' => " geklickt. Sie haben somit auch keine ", 'BEG_SORRY_YOURE_LOGGED_IN_3' => " {?POINTS?} erhalten.", 'BEG_SAME_USERID_AS_OWN' => "Mitglieder-Id des Webmasters benutzt.", + 'MEMBER_BEG_LINK_TITLE' => "Ihr Bettellink zum Bewerben", // Pay modes 'ADMIN_CONFIG_BEG_PAY_MODE' => "Wie sollen {?POINTS?} vergütet werden?", @@ -113,7 +114,7 @@ addMessages(array( 'BEG_RALLYE_CONDITION_2' => "Es kann jeder dran teilnehmen, der Mitglied bei diesem {?mt_word?} ({?MAIN_TITLE?}) und freigegeben ist.", 'BEG_RALLYE_CONDITION_3' => "Zur Erstellung des Rallye-Ergebnisses werden alle erbettelten {?POINTS?} berücksichtig.", 'BEG_RALLYE_CONDITION_4' => "Der Rechtsweg ist ausgeschlossen.", - 'MEMBER_LIST_BEG_RALLYE_TITLE' => "Hier finden Sie die aktuelle Liste mit den möglichen Gewinnern.", + 'MEMBER_LIST_BEG_RALLYE_TITLE' => "Derzeitiger Stand der Bettel-Rallye", 'BEG_LINK_HERE' => "Betteln Sie am Besten gleich los! Hier ist der Link dazu.", 'ADMIN_CONFIG_BEG_RANKS' => "Anzahl Gewinner der Bettel-Rallye", 'BEG_MONTHLY_RALLYE' => "GEWONNEN: Monatliche Bettel-Rallye", diff --git a/inc/language/de.php b/inc/language/de.php index 7e169ee047..fd28a58d09 100644 --- a/inc/language/de.php +++ b/inc/language/de.php @@ -493,7 +493,7 @@ addMessages(array( 'ENTER_POINTS' => "Vergütung", 'ENTER_SECONDS' => "Wartezeit", 'ADMIN_MORE_SELECTED' => "Sie haben mehr Empfänger eingegeben, als das empfangsbereit sind.", - 'ADMIN_BONUS_CONTENT' => "Versendete Bonus-Mails", + 'ADMIN_LIST_BONUS_TITLE' => "Versendete Bonus-Mails", 'EMAIL_POINTS' => "Vergütung", 'EMAIL_SECONDS' => "Wartezeit", 'POOL_ACTIVE' => "Wird gerade versendet", diff --git a/inc/language/refback_de.php b/inc/language/refback_de.php index d04fa7f26b..7c8ed71400 100644 --- a/inc/language/refback_de.php +++ b/inc/language/refback_de.php @@ -62,7 +62,7 @@ addMessages(array( 'MEMBER_REFBACK_REFID' => "Mitglieder-Id", 'MEMBER_REFBACK_LEVEL_REFID' => "Werber", 'MEMBER_REFBACK_STATUS' => "Referal-Status", - 'MEMBER_REFBACK_PERCENTS' => "Refback Prozente", + 'MEMBER_REFBACK_PERCENTS' => "Refback-Prozente", 'MEMBER_REFBACK_POINTS' => "Refback Vergütung", 'MEMBER_REFBACK_EDIT' => "Einstellen", 'MEMBER_REFBACK_EDIT_TITLE' => "Refback für ausgewähltes Mitglied einstellen:", @@ -70,6 +70,9 @@ addMessages(array( 'MEMBER_REFBACK_DELETED_TITLE' => "Einstellen von Refback ist für gelöschte Mitglieder nicht möglich.", 'MEMBER_REFBACK_DISABLED' => "Refback ist administrativ deaktiviert. Bitte nutze die Referal-Übersicht links im Menü.", 'MEMBER_REFBACK_MIN_MAX_NOTE' => "Hinweis: Sie können derzeit zwischen {%config,translateComma=refback_min_perc%} und {%config,translateComma=refback_max_perc%} Prozent, inklusive, Refback einstellen.", + // - Edit form + 'MEMBER_ENTER_REFBACK_PERCENTS' => "Refback-Prozente eingeben", + 'MEMBER_ENTER_REFBACK_NOTE_FOR_RECIPIENT' => "Optionalen Hinweis an den Empfänger", // Error messages for members 'MEMBER_REFBACK_ERROR_MESSAGE' => "Fehler beim Einstellen des Refbacks. Fehlermeldung:
\n%s", diff --git a/inc/libs/refback_functions.php b/inc/libs/refback_functions.php index e97e063fec..59336045ee 100644 --- a/inc/libs/refback_functions.php +++ b/inc/libs/refback_functions.php @@ -278,7 +278,7 @@ function getArrayFromUserRefbackData ($id) { } // Update refback percents (but with some sanity-checks! -function updateMemberRefbackPercents ($id, $percents) { +function updateMemberRefbackPercents ($id, $percents, $note) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'id=' . $id . ',percents=' . $percents . ' - ENTERED!'); // Default status is failed $status['message'] = 'MEMBER_REFBACK_ERROR_GENERAL'; @@ -328,6 +328,7 @@ function updateMemberRefbackPercents ($id, $percents) { // Prepare email content $dummy['refback_percents'] = $percents; + $dummy['refback_note'] = $note; // Load member email template $mail = loadEmailTemplate('member_refback', $dummy, $dummy['refid']); @@ -336,7 +337,7 @@ function updateMemberRefbackPercents ($id, $percents) { sendEmail($dummy['refid'], '{--MEMBER_REFBACK_SUBJECT--}', $mail); // Send admin notification - sendAdminNotification('{--ADMIN_REFBACK_SUBJECT--}', 'admin_refback', $dummy, getMemberId()); + sendAdminNotification('{--ADMIN_REFBACK_SUBJECT--}', 'admin_refback', $dummy, $dummy['refid']); // All fine! $status['ok'] = true; diff --git a/inc/modules/member/what-refback.php b/inc/modules/member/what-refback.php index ee7e6326a6..67e2a3013c 100644 --- a/inc/modules/member/what-refback.php +++ b/inc/modules/member/what-refback.php @@ -67,7 +67,7 @@ if ((isFormSent('edit')) && (isPostRequestParameterSet('id'))) { // Validate percents if ((($percents >= getConfig('refback_min_perc')) || (round($percents) == 0)) && ($percents <= getConfig('refback_max_perc'))) { // Change ref-back for this direct id - $status = updateMemberRefbackPercents(postRequestParameter('id'), postRequestParameter('refback_percents')); + $status = updateMemberRefbackPercents(postRequestParameter('id'), postRequestParameter('refback_percents'), postRequestParameter('refback_note')); // Check status if (isset($status['ok'])) { diff --git a/templates/de/emails/admin/admin_refback.tpl b/templates/de/emails/admin/admin_refback.tpl index 1385ffd19a..6afdc8697d 100644 --- a/templates/de/emails/admin/admin_refback.tpl +++ b/templates/de/emails/admin/admin_refback.tpl @@ -1,9 +1,8 @@ Hallo Administrator, -Das Mitglied $userid hat soeben Refback für ein anderes Mitglied eingestellt. +Das Mitglied {%pipe,getMemberId%} hat soeben Refback für das Mitglied $userid eingestellt. ------------------------------------ -Mitglied-Id: {%user,refid,bigintval=$userid%} (der den Refback bekommt) +Hier sind alle relevanten Daten des Refback-Empfängers: ----------------------------------- Vorname: {%user,surname=$userid%} ----------------------------------- @@ -13,7 +12,9 @@ Email-Adresse: {%user,email=$userid%} ----------------------------------- Refback: {%pipe,translateComma=$content[refback_percents]%}% ----------------------------------- -Bereits erhalten: {%pipe,translateComma=$content[refback_points]%} {?POINTS?} +Bereits verdient: {%pipe,translateComma=$content[refback_points]%} {?POINTS?} +----------------------------------- +Hinweis: $content[refback_note] ----------------------------------- Mit freundlichen Grüßen, diff --git a/templates/de/emails/member/member_refback.tpl b/templates/de/emails/member/member_refback.tpl index f160d3f278..697a55c7ed 100644 --- a/templates/de/emails/member/member_refback.tpl +++ b/templates/de/emails/member/member_refback.tpl @@ -1,12 +1,14 @@ Hallo {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}, -Das Mitglied $content[refid] hat Ihnen soeben {%pipe,translateComma=$content[refback_percents]%}% Refback eingestellt. Sie erhalten also anteilig {?POINTS?} von seinen Referal-Gutschriften die Sie ihm/ihr bringen ebenfalls gutgeschrieben. +das Mitglied {%pipe,getMemberId%} hat Ihnen soeben {%pipe,translateComma=$content[refback_percents]%}% Refback eingestellt. Sie erhalten also anteilig {?POINTS?} von seinen Referal-Gutschriften die Sie ihm/ihr bringen ebenfalls gutgeschrieben. ------------------------------ Ihr Mitglieder-Id ist: $userid ------------------------------ Refback: {%pipe,translateComma=$content[refback_percents]%}% ------------------------------ +Hinweis: $content[refback_note] +------------------------------ Sie haben bereits {%pipe,translateComma=$content[refback_points]%} {?POINTS?} Refback-Vergütung an das Mitglied abgegeben. diff --git a/templates/de/html/admin/admin_email_archiv_row.tpl b/templates/de/html/admin/admin_email_archiv_row.tpl index 97928a7b59..d27f4368aa 100644 --- a/templates/de/html/admin/admin_email_archiv_row.tpl +++ b/templates/de/html/admin/admin_email_archiv_row.tpl @@ -9,7 +9,7 @@ {--EMAIL_TEXT--}:
- $content[text] +
$content[text]
diff --git a/templates/de/html/admin/admin_list_bonus_emails.tpl b/templates/de/html/admin/admin_list_bonus_emails.tpl index 5dcc37d0cd..ca24a37343 100644 --- a/templates/de/html/admin/admin_list_bonus_emails.tpl +++ b/templates/de/html/admin/admin_list_bonus_emails.tpl @@ -1,8 +1,8 @@
- $content[nav] diff --git a/templates/de/html/admin/admin_list_bonus_emails_row.tpl b/templates/de/html/admin/admin_list_bonus_emails_row.tpl index 52843f88d5..12c32dde98 100644 --- a/templates/de/html/admin/admin_list_bonus_emails_row.tpl +++ b/templates/de/html/admin/admin_list_bonus_emails_row.tpl @@ -1,68 +1,68 @@ - - - - - - - - - - - - - - diff --git a/templates/de/html/admin/admin_list_emails_row.tpl b/templates/de/html/admin/admin_list_emails_row.tpl index 650df97700..6706777deb 100644 --- a/templates/de/html/admin/admin_list_emails_row.tpl +++ b/templates/de/html/admin/admin_list_emails_row.tpl @@ -1,39 +1,39 @@ - - - - - - - - diff --git a/templates/de/html/admin/admin_list_notify_emails_row.tpl b/templates/de/html/admin/admin_list_notify_emails_row.tpl index 6541d8ea0e..9ecc0e252c 100644 --- a/templates/de/html/admin/admin_list_notify_emails_row.tpl +++ b/templates/de/html/admin/admin_list_notify_emails_row.tpl @@ -1,52 +1,52 @@ - - - - - - - - - - - diff --git a/templates/de/html/admin/admin_list_unconfirmed.tpl b/templates/de/html/admin/admin_list_unconfirmed.tpl index 8a95d176b3..6887d31501 100644 --- a/templates/de/html/admin/admin_list_unconfirmed.tpl +++ b/templates/de/html/admin/admin_list_unconfirmed.tpl @@ -21,7 +21,7 @@
-
{--ADMIN_BONUS_CONTENT--}
+
+ {--ADMIN_LIST_BONUS_TITLE--}
+
{--EMAIL_SUBJECT--}:
$content[subject]
+
{--EMAIL_TEXT--}:
-
$content[text]
+
$content[text]
+
{--EMAIL_POINTS--}:
{%pipe,translateComma=$content[points]%} {?POINTS?}
+
{--EMAIL_SECONDS--}:
{%pipe,createFancyTime=$content[time]%}
+
{--EMAIL_CATEGORY--}:
{%pipe,getCategory=$content[cat_id]%}
+
{--EMAIL_RECEIVERS--}:
{%pipe,translateComma=$content[mails_sent]%} ({--EMAIL_RUIDS--}: {%pipe,convertReceivers=$content[receivers]%})
+
{--USERS_LINKS--}:
$content[unconfirmed]
+
{--EMAIL_POOL_TYPE--}:
{%pipe,translatePoolType=$content[data_type]%}
+
{--EMAIL_TSEND--}:
$content[target_send]
+
{--EMAIL_URL--}:
+
{--EMAIL_TIMESTAMP--}:
$content[timestamp]
+
{--EMAIL_URL--}:
$content[url]
+ {--_UNUSED--}:
---
+ {--EMAIL_SENDER--}:
{%pipe,generateUserProfileLink=$content[sender]%}
+ {--EMAIL_SUBJECT--}:
$content[subject]
+ {--EMAIL_TEXT--}:
- $content[text] +
$content[text]
+ {--EMAIL_PAYMENT--}:
{%pipe,getPaymentTitlePrice=$content[payment_id]%}
+ {--EMAIL_CATEGORY--}:
{%pipe,getCategory=$content[cat_id]%}
+ {--EMAIL_RECEIVERS--}:
{%pipe,translateComma=$content[mails_sent]%}
({--EMAIL_RUIDS--}:
{%pipe,convertReceivers=$content[receivers]%}
)
+ {--USERS_LINKS--}:
$content[unconfirmed]
+ {--EMAIL_POOL_TYPE--}:
{%pipe,translatePoolType=$content[data_type]%}
+ {--EMAIL_SUBJECT--}:
$content[subject]
+ {--EMAIL_TEXT--}:
- $content[text] +
$content[text]
+ {--EMAIL_POINTS--}:
{%pipe,translateComma=$content[points]%} {?POINTS?}
+ {--EMAIL_SECONDS--}:
{%pipe,createFancyTime=$content[time]%}
+ {--EMAIL_CATEGORY--}:
{%pipe,getCategory=$content[cat_id]%}
+ {--EMAIL_RECEIVERS--}:
{%pipe,translateComma=$content[mails_sent]%} ({--EMAIL_RUIDS--}: {%pipe,convertReceivers=$content[receivers]%})
+ {--USERS_LINKS--}:
$content[unconfirmed_content]
+ {--EMAIL_POOL_TYPE--}:
{%pipe,translatePoolType=$content[data_type]%}
+ {--EMAIL_TSEND--}:
{%pipe,translateComma=$content[target_send]%}
+ {--EMAIL_URL--}:
{--ADMIN_TEST_URL--}
+ {--EMAIL_TIMESTAMP--}:
$content[timestamp]
{--EMAIL_TEXT--}:
- $content[text] +
$content[text]
{--USERS_LINKS--}:
$content[unconfirmed] diff --git a/templates/de/html/admin/admin_list_unconfirmed_list.tpl b/templates/de/html/admin/admin_list_unconfirmed_list.tpl index 7b11e7c3da..fa2af78682 100644 --- a/templates/de/html/admin/admin_list_unconfirmed_list.tpl +++ b/templates/de/html/admin/admin_list_unconfirmed_list.tpl @@ -2,10 +2,10 @@ - - - - + + + + $content
{--ID_SELECT--}{--MAILID_LINK--}{--SURNAME_FAMILY--}{--ACCOUNT_STATUS--}{--ID_SELECT--}{--MAILID_LINK--}{--SURNAME_FAMILY--}{--ACCOUNT_STATUS--}
diff --git a/templates/de/html/admin/admin_overview_table.tpl b/templates/de/html/admin/admin_overview_table.tpl index 8bdd8ebb4d..d0791c2cbe 100644 --- a/templates/de/html/admin/admin_overview_table.tpl +++ b/templates/de/html/admin/admin_overview_table.tpl @@ -2,22 +2,22 @@
- - - - - - - - + + + + + + + $content -
+ {--ADMIN_TASK_SYSTEM_WELCOME--}
{--ID_SELECT--}{--ADMIN_ASSIGNED_ADMIN--}{--ADMIN_REGISTER_EXTENSION--}{--ADMIN_TASK_INFOS--}{--ADMIN_MEMBER_USERID--}{--ADMIN_TASK_TYPE--}{--ADMIN_TASK_CREATED--}{--ID_SELECT--}{--ADMIN_ASSIGNED_ADMIN--}{--ADMIN_REGISTER_EXTENSION--}{--ADMIN_TASK_INFOS--}{--ADMIN_MEMBER_USERID--}{--ADMIN_TASK_TYPE--}{--ADMIN_TASK_CREATED--}