From: Roland Häder Date: Wed, 1 Jun 2016 13:58:45 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=27689ac6ea690dba2f65452c4360c9dd429c47f7;p=mailer.git Continued a bit: - deactivated more no longer existing networks (be careful, more may turned into something else) - added support for inactive networks (showing no referal link, etc.) --- diff --git a/inc/extensions/network/mode-setup.php b/inc/extensions/network/mode-setup.php index 3d1b4a2ae6..95b7535635 100644 --- a/inc/extensions/network/mode-setup.php +++ b/inc/extensions/network/mode-setup.php @@ -310,8 +310,8 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_ // Sponsor networks addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_data` (`network_short_name`, `network_title`, `network_reflink`, `network_data_separator`, `network_row_separator`, `network_request_type`, `network_charset`, `network_require_id_card`, `network_query_amount`, `network_active`) VALUES ('a3h', 'A3H', 'http://www.a3h.de?ref=1447', '|', '|', 'GET', 'WINDOWS-1252', 'N', 100, 'Y'), -('abiszed', 'AbisZED-Netz', 'http://www.abiszed-netz.de?ref=1438', '|', '|', 'GET', 'ISO-8859-1', 'Y', 150, 'Y'), -('ad_magnet', 'AD-Magnet', 'http://www.ad-magnet.de/?ref=1060', '|', '|', 'GET', 'ISO-8859-1', 'N', 500, 'Y'), +('abiszed', 'AbisZED-Netz', 'http://www.abiszed-netz.de?ref=1438', '|', '|', 'GET', 'ISO-8859-1', 'Y', 150, 'N'), +('ad_magnet', 'AD-Magnet', 'http://www.ad-magnet.de/?ref=1060', '|', '|', 'GET', 'ISO-8859-1', 'N', 500, 'N'), ('ad_cocktail', 'ADCocktail', 'http://www.adcocktail.com/?rid=2596', '|', '|', 'GET', 'WINDOWS-1252', 'N', 500, 'Y'), ('ad_paid', 'AdPaid', 'http://www.adpaid.de?ref=1464', '|', '|', 'GET', 'ISO-8859-1', 'N', 0, 'N'), ('ads4', 'Ads4.de', 'http://www.ads4.de/?werber=Quix0r', '|', '|', 'GET', 'WINDOWS-1252', 'N', 96, 'Y'), @@ -362,9 +362,9 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_data` (`network_short_na ('vario_ads', 'Vario-Ads', 'http://www.vario-ads.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 200, 'Y'), ('ads_abisz', 'ADS-AbisZ', 'http://www.ads-abisz.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'Y'), ('werbe_sponsor', 'Werbe-Sponsor.de', 'http://www.werbe-sponsor.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'WINDOWS-1252', 'N', 800, 'Y'), -('ads4all', 'Ads-4-All.de', 'http://www.ads-4-all.de?ref=272', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'), +('ads4all', 'Ads-4-All.de', 'http://www.ads-4-all.de?ref=272', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'N'), ('ads4allweb', 'Ads4AllWeb', 'http://www.ads4allweb.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 250, 'Y'), -('ads_im_netz', 'Ads-Im-Netz', 'http://www.ads-im-netz.de/?ref=1025', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'Y'), +('ads_im_netz', 'Ads-Im-Netz', 'http://www.ads-im-netz.de/?ref=1025', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'N'), ('ads4paid4', 'Ads4Paid4', 'http://www.ads4paid4.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 350, 'Y'), ('paid_city', 'Paid-City', 'http://www.paid-city.de/?ref=2587', '|', '|', 'GET', 'WINDOWS-1252', 'N', 100, 'Y'), ('paid4ad', 'Paid4Ad', 'http://www.paid4ad.de/index.php?seite=anmeldung&ref=ShipSimu', '|', '|', 'GET', 'ISO-8859-1', 'N', 150, 'Y'), diff --git a/inc/language/network_de.php b/inc/language/network_de.php index a3b480cd7a..7e342122d9 100644 --- a/inc/language/network_de.php +++ b/inc/language/network_de.php @@ -71,6 +71,7 @@ addMessages(array( 'ADMIN_NETWORK_ARRAY_TRANSLATION_NOTHING_CHANGED' => "Es wurden keine Änderungen an den Array-Element-Übersetzungen vorgenommen.", 'ADMIN_NETWORK_ARRAY_TRANSLATION_NOTHING_REMOVED' => "Es wurden keine Array-Element-Übersetzungen gelöscht.", 'ADMIN_NETWORK_HANDLER_TYPE_HANDLER_ALREADY_CONFIGURED' => "Kann Daten des ausgewählten Werbeart-Handlers nicht hinzufügen, da bereits Daten vorhanden sind. Haben Sie das Formular ein zweites Mal versendet?", + 'ADMIN_NETWORK_INACTIVE' => "WN inaktiv", // - Form titles 'ADMIN_ADD_NETWORK_TITLE' => "Neues Werbenetzwerk hinzufügen - Allgemeine Daten", 'ADMIN_EDIT_NETWORK_DATA_TITLE' => "Werbenetzwerk editieren - Allgemeine Daten", diff --git a/inc/modules/admin/what-list_network_data.php b/inc/modules/admin/what-list_network_data.php index e060c65b61..fd230286da 100644 --- a/inc/modules/admin/what-list_network_data.php +++ b/inc/modules/admin/what-list_network_data.php @@ -72,7 +72,8 @@ $result = sqlQuery('SELECT `network_request_type`, `network_charset`, `network_require_id_card`, - `network_query_amount` + `network_query_amount`, + `network_active` FROM `{?_MYSQL_PREFIX?}_network_data` ORDER BY @@ -83,8 +84,14 @@ if (!ifSqlHasZeroNumRows($result)) { // List all $OUT = ''; while ($content = sqlFetchArray($result)) { - // Load row template - $OUT .= loadTemplate('admin_list_network_data_row', TRUE, $content); + // Is the network still active? + if ($content['network_active'] == 'Y') { + // Load row template + $OUT .= loadTemplate('admin_list_network_data_row', TRUE, $content); + } else { + // No more active + $OUT .= loadTemplate('admin_list_network_data_inactive_row', TRUE, $content); + } } // END - while // Load main template diff --git a/templates/de/html/admin/admin_list_network_data_inactive_row.tpl b/templates/de/html/admin/admin_list_network_data_inactive_row.tpl new file mode 100644 index 0000000000..3404edaccd --- /dev/null +++ b/templates/de/html/admin/admin_list_network_data_inactive_row.tpl @@ -0,0 +1,27 @@ + + + - + + + $content[network_short_name]:
+ {--ADMIN_NETWORK_INACTIVE--} + + + [---] + + + $content[network_data_separator] + + + $content[network_row_separator] + + + $content[network_request_type] + + + $content[network_charset] + + + {%pipe,translateYesNo=$content[network_require_id_card]%} + +