Newsletter...channels
Newsletter...channels
habe unter meinem Newsletter-eintragungsfeld jetzt Channels zu stehen... was hat es damit auf sich und wie kriege ich die Meldung...da für den Kunden so nicht zu gebrauchen, wieder weg....?
-
Pappnase
hallo caren
hasttest du unter nachrichten im nackend schon mehrere newsletter aneglegt!? wenn ja gehe mal da hin und lösche die!
sprich im backend unter nachrichten / Newsletter!
---edit----
ups löschen geht ja noch nicht!
gehe zu deinem newsletter den du ja irgendwo erstellt hast! und wähle den abo kanal aus der gewählt werden kann! im moment werden wohl alle markiert seinen da! und zwar ist das beim newsletter unter abo/kanal möglich den auszuwäheln*lächel*
hasttest du unter nachrichten im nackend schon mehrere newsletter aneglegt!? wenn ja gehe mal da hin und lösche die!
sprich im backend unter nachrichten / Newsletter!
---edit----
ups löschen geht ja noch nicht!
gehe zu deinem newsletter den du ja irgendwo erstellt hast! und wähle den abo kanal aus der gewählt werden kann! im moment werden wohl alle markiert seinen da! und zwar ist das beim newsletter unter abo/kanal möglich den auszuwäheln*lächel*
Ich hab's manuell aus der entsprechenden Datei entfernt... aber das ist etwas gemurkst und Oliver schimpft immer mit mir, wenn ich sowas mache 
Hier meine Datei aus dem Verzeichnis include/inc_front/content/cnt12.article.inc.php:
Aus der aktuellsten Version (27-08-2004)
Hier meine Datei aus dem Verzeichnis include/inc_front/content/cnt12.article.inc.php:
Code: Select all
<?php
/*************************************************************************************
Copyright notice
(c) 2002-2004 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
This script is part of PHPWCMS. The PHPWCMS web content management system is
free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.
This script is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
//newsletter subscription
$content["main"] .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]);
$content["newsletter"] = unserialize($crow["acontent_newsletter"]);
$content["newsletter"]["email_address_error"] = 0;
$content["newsletter"]["success"] = 0;
$content["newsletter"]["email_subscription"][0] == 0;
if(!$content["newsletter"]["change_text"] || !$content["newsletter"]["reg_text"]) {
$temp_mailtext = 'Hi {NEWSLETTER_NAME},'."\n\n";
$temp_mailtext .= 'You have subscribed to the newsletter at'." \n";
$temp_mailtext .= $phpwcms["site"]." \n\n";
$temp_mailtext .= 'Before you will receive any newsletter '."\n";
$temp_mailtext .= 'you have to verify the email address '."\n\n";
$temp_mailtext .= ' {NEWSLETTER_EMAIL} '."\n\n\n";
$temp_mailtext .= 'To verify click the link '."\n";
$temp_mailtext .= '{NEWSLETTER_VERIFY} '."\n\n";
$temp_mailtext .= 'To delete your entry from our database '."\n";
$temp_mailtext .= '{NEWSLETTER_DELETE}'."\n\n\n";
$temp_mailtext .= 'Best Regards'."\n";
$temp_mailtext .= $phpwcms['SMTP_FROM_NAME']."\n";
$temp_mailtext .= $phpwcms["admin_email"]."\n\n";
$temp_mailtext .= date('d-m-Y, H:i:s')."\n";
if(!$content["newsletter"]["change_text"]) {
$content["newsletter"]["change_text"] = $temp_mailtext;
}
if(!$content["newsletter"]["reg_text"]) {
$content["newsletter"]["reg_text"] = $temp_mailtext;
}
}
if(intval($_POST["newsletter_send"])) {
unset($content["newsletter"]["email_subscription"]);
$content["newsletter"]["email_address"] = clean_slweg(remove_unsecure_rptags($_POST["newsletter_email"]), 250);
$content["newsletter"]["email_name"] = clean_slweg(remove_unsecure_rptags($_POST["newsletter_name"]), 250);
$content["newsletter"]["email_subscription"] = $_POST["email_subscription"];
if(sizeof($content["newsletter"]["email_subscription"])) {
foreach($content["newsletter"]["email_subscription"] as $value) {
if(!intval($value)) {
unset($content["newsletter"]["email_subscription"]);
$content["newsletter"]["email_subscription"][0] = 0;
break;
}
}
}
if(!MailVal($content["newsletter"]["email_address"], 2)) {
//Success
$content["newsletter"]["success"] = 1;
$content["newsletter"]["reffering_key"] = "";
$check_sql = "SELECT * FROM ".DB_PREPEND."phpwcms_address WHERE address_email='".
aporeplace($content["newsletter"]["email_address"])."' LIMIT 1;";
if($check_result = mysql_query($check_sql, $db)) {
if($check_row = mysql_fetch_array($check_result, MYSQL_ASSOC)) {
$content["newsletter"]["reffering_key"] = $check_row["address_key"];
$content["newsletter"]["reffering_id"] = $check_row["address_id"];
}
mysql_free_result($check_result);
}
if($content["newsletter"]["reffering_key"]) {
//if email exists in newsletter address list update entry
$e_sql = "UPDATE ".DB_PREPEND."phpwcms_address SET ".
"address_name='".aporeplace($content["newsletter"]["email_name"])."', ".
"address_verified=0, ".
"address_subscription='".aporeplace(serialize($content["newsletter"]["email_subscription"]))."' ".
"WHERE address_id=".$content["newsletter"]["reffering_id"].";";
$content["newsletter"]["updated"] = 1;
} else {
$content["newsletter"]["reffering_key"] = randpassword(16);
//if email not exists in newsletter address list insert entry
$e_sql = "INSERT INTO ".DB_PREPEND."phpwcms_address (".
"address_email, address_name, address_key, address_subscription) VALUES ('".
aporeplace($content["newsletter"]["email_address"])."', '".
aporeplace($content["newsletter"]["email_name"])."', '".
$content["newsletter"]["reffering_key"]."', '".
aporeplace(serialize($content["newsletter"]["email_subscription"]))."');";
$content["newsletter"]["updated"] = 0;
}
mysql_query($e_sql, $db);
$content["newsletter"]["verify_link"] = $phpwcms["site"].$phpwcms["root"]."verify.php?i=".base64_encode("V:".$content["newsletter"]["reffering_key"].":".$content["newsletter"]["email_address"]);
$content["newsletter"]["delete_link"] = $phpwcms["site"].$phpwcms["root"]."verify.php?i=".base64_encode("D:".$content["newsletter"]["reffering_key"].":".$content["newsletter"]["email_address"]);
$content["newsletter"]["mailtext"] = ($content["newsletter"]["updated"]) ? $content["newsletter"]["change_text"] : $content["newsletter"]["reg_text"];
$content["newsletter"]["mailtext"] = str_replace("{NEWSLETTER_NAME}", $content["newsletter"]["email_name"], $content["newsletter"]["mailtext"]);
$content["newsletter"]["mailtext"] = str_replace("{NEWSLETTER_EMAIL}", $content["newsletter"]["email_address"], $content["newsletter"]["mailtext"]);
$content["newsletter"]["mailtext"] = str_replace("{NEWSLETTER_VERIFY}", $content["newsletter"]["verify_link"], $content["newsletter"]["mailtext"]);
$content["newsletter"]["mailtext"] = str_replace("{NEWSLETTER_DELETE}", $content["newsletter"]["delete_link"], $content["newsletter"]["mailtext"]);
mail( $content["newsletter"]["email_address"],
"Bestätigung der Newsletter-Anmeldung für ".(($content["newsletter"]["email_name"]) ? $content["newsletter"]["email_name"] : $content["newsletter"]["email_address"]),
$content["newsletter"]["mailtext"],
"From: M&A Fanbase <".$phpwcms["admin_email"].">\nReply-To: ".$phpwcms["admin_email"]);
} else {
//Error
$content["newsletter"]["email_address_error"] = 1;
}
$content["newsletter"]["email_address"] = html_specialchars($content["newsletter"]["email_address"]);
$content["newsletter"]["email_name"] = html_specialchars($content["newsletter"]["email_name"]);
}
if($content["newsletter"]["success"]) {
$content["newsletter"]["success_text"] = str_replace("{NEWSLETTER_EMAIL}", "<strong>".$content["newsletter"]["email_address"]."</strong>", $content["newsletter"]["success_text"]);
$content["main"] .= "<font color=\"#991432\"><b>".div_class(
( ($content["newsletter"]["success_text"]) ? nl2br($content["newsletter"]["success_text"]) : "Email: ".$content["newsletter"]["email_address"]." successfully registred. You will receive a verification email within seconds.")
, $template_default["article"]["text_class"])."</b></font>";
} else {
$content["main"] .= ($content["newsletter"]["text"]) ? "<br />".nl2br(div_class($content["newsletter"]["text"],$template_default["article"]["text_class"])) : "";
$content["main"] .= "<form action=\"".$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']."\" method=\"post\" name=\"newsletter_submit\" style=\"margin:0;padding:0;\">";
$content["main"] .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\"";
switch($content["newsletter"]["pos"]) {
case 1: $content["main"] .= " align=\"left\""; break;
case 2: $content["main"] .= " align=\"center\""; break;
case 3: $content["main"] .= " align=\"right\""; break;
}
$content["main"] .= ">\n";
if($content["newsletter"]["email_address_error"]) {
$content["main"] .= "<tr>\n<td align=\"right\"> ";
$content["main"] .= "</td>\n<td class=\"formError\">".$template_default["article"]["newsletter_error"]."</td>\n</tr>\n";
}
$content["main"] .= "<tr>\n<td align=\"right\" class=\"formLabel\">";
$content["main"] .= (($content["newsletter"]["label_email"]) ? $content["newsletter"]["label_email"] : "email:")." ";
$content["main"] .= "</td>\n<td><input name=\"newsletter_email\" type=\"text\" class=\"inputNewsletter\" size=\"30\" maxlength=\"250\" ";
$content["main"] .= "value=\"".$content["newsletter"]["email_address"]."\" /></td>\n</tr>\n";
$content["main"] .= "<tr>\n<td align=\"right\" class=\"formLabel\">";
$content["main"] .= (($content["newsletter"]["label_name"]) ? $content["newsletter"]["label_name"] : "name:")." ";
$content["main"] .= "</td>\n<td><input name=\"newsletter_name\" type=\"text\" class=\"inputNewsletter\" size=\"30\" maxlength=\"250\" ";
$content["main"] .= "value=\"".$content["newsletter"]["email_name"]."\" /></td><br><br>\n</tr>\n";
if(sizeof($content["newsletter"]["subscription"])) {
$content["main"] .= "<tr><td colspan=\"2\">".spacer(1,3)."</td></tr>\n";
$content["main"] .= "<tr>\n<td align=\"right\" valign=\"top\" class=\"formLabel\">";
//$content["main"] .= spacer(1,15).(($content["newsletter"]["label_subscriptions"]) ? $content["newsletter"]["label_subscriptions"] : "channel:")." ";
$content["main"] .= "</td>\n<td valign=\"top\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"1\">\n";
$content["main"] .= "<tr>\n<td><input name=\"email_subscription[]\" type=\"hidden\"";
if($content["newsletter"]["email_subscription"][0] == 0 ) $content["main"] .= ' checked="checked"';
$content["main"] .= " /></td>\n";
//$content["main"] .= "<td class=\"formLabel\">".(($content["newsletter"]["all_subscriptions"]) ? $content["newsletter"]["all_subscriptions"] : "all channels");
$content["main"] .= "</td>\n</tr>\n<tr><td colspan=\"2\">".spacer(1,2)."</td></tr>\n";
$c_sql_where = "";
/*foreach($content["newsletter"]["subscription"] as $value) {
$c_sql_where .= (($c_sql_where)?" OR ":"") . "subscription_id=".intval($value);
}
$c_sql = "SELECT * FROM ".DB_PREPEND."phpwcms_subscription WHERE ".$c_sql_where." ORDER BY subscription_name;";
if($c_result = mysql_query($c_sql, $db)) {
while($c_row = mysql_fetch_row($c_result)) {
$content["main"] .= "<tr>\n<td><input name=\"email_subscription[]\" type=\"checkbox\" value=\"".$c_row[0]."\"";
if(sizeof($content["newsletter"]["email_subscription"]) && $content["newsletter"]["email_subscription"][0] != 0) {
foreach($content["newsletter"]["email_subscription"] as $value) {
if($value == $c_row[0]) {
$content["main"] .= ' checked="checked"';
break;
}
}
}
$content["main"] .= " /></td>\n<td class=\"formLabel\">".html_specialchars($c_row[1])."</td>\n</tr>\n";
}
mysql_free_result($c_result);
}
$content["main"] .= "<tr><td colspan=\"2\">".spacer(1,5)."</td></tr>\n";*/
$content["main"] .= "</table></td>\n</tr>\n";
}
$content["main"] .= "<tr><td colspan=\"2\">".spacer(1,3)."</td></tr>\n";
$content["main"] .= "<tr>\n<td> </td>\n<td><input name=\"submit\" type=\"submit\" class=\"formButton\" value=\"";
$content["main"] .= (($content["newsletter"]["button_text"]) ? $content["newsletter"]["button_text"] : "send")."\" />";
$content["main"] .= "<input name=\"newsletter_send\" type=\"hidden\" value=\"1\" />";
$content["main"] .= "</td>\n</tr>\n</table></form>";
}
?>