Continued a bit:
authorRoland Haeder <rhaeder@cho-time.de>
Wed, 1 Jun 2016 13:58:45 +0000 (15:58 +0200)
committerRoland Haeder <rhaeder@cho-time.de>
Wed, 1 Jun 2016 13:58:45 +0000 (15:58 +0200)
- deactivated more no longer existing networks (be careful, more may turned into something else)
- added support for inactive networks (showing no referal link, etc.)

inc/extensions/network/mode-setup.php
inc/language/network_de.php
inc/modules/admin/what-list_network_data.php
templates/de/html/admin/admin_list_network_data_inactive_row.tpl [new file with mode: 0644]

index 3d1b4a2ae61167102ee53f2317f3df8ca8a5a1e3..95b7535635a21355662bb9b8ceeb3ee61d6563d1 100644 (file)
@@ -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'),
index a3b480cd7a150e425d3cb42ec68206fa40750a72..7e342122d9e9570b0552c7c9e3e4cc65fe6b7eb0 100644 (file)
@@ -71,6 +71,7 @@ addMessages(array(
        'ADMIN_NETWORK_ARRAY_TRANSLATION_NOTHING_CHANGED' => "Es wurden keine &Auml;nderungen an den Array-Element-&Uuml;bersetzungen vorgenommen.",
        'ADMIN_NETWORK_ARRAY_TRANSLATION_NOTHING_REMOVED' => "Es wurden keine Array-Element-&Uuml;bersetzungen gel&ouml;scht.",
        'ADMIN_NETWORK_HANDLER_TYPE_HANDLER_ALREADY_CONFIGURED' => "Kann Daten des ausgew&auml;hlten Werbeart-Handlers nicht hinzuf&uuml;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&uuml;gen - Allgemeine Daten",
        'ADMIN_EDIT_NETWORK_DATA_TITLE' => "Werbenetzwerk editieren - Allgemeine Daten",
index e060c65b61b27110c88c6e3174489d16e85fd62c..fd230286da32e712d4cb58f5012db6fd66f81816 100644 (file)
@@ -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 (file)
index 0000000..3404eda
--- /dev/null
@@ -0,0 +1,27 @@
+<tr>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
+               -
+       </td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
+               $content[network_short_name]:<br />
+               {--ADMIN_NETWORK_INACTIVE--}
+       </td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
+               [---]
+       </td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
+               $content[network_data_separator]
+       </td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
+               $content[network_row_separator]
+       </td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
+               <span title="{%pipe,translateNetworkRequestType=$content[network_request_type]%}">$content[network_request_type]</span>
+       </td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
+               $content[network_charset]
+       </td>
+       <td class="{%template,ColorSwitch%} bottom" align="center">
+               {%pipe,translateYesNo=$content[network_require_id_card]%}
+       </td>
+</tr>