我尝试配置 PHPList 3.012。我将使用自己的订阅和取消订阅页面。我在 PHPList 的新闻组中问过。不幸的是,我没有得到任何回应。似乎没有人使用自己的订阅页面。如果登录页面上的输入字段为空,我将单击发送按钮,javascript me 说,“请输入有效的电子邮件地址。在我输入有效的电子邮件地址后,应该会出现另一条错误消息。相反,出现 PHPList 的登录页面。请查看我的脚本和 PHP 代码。我想要有自己的弹出窗口,而不是 PHPList 中的感谢页面。你们中的任何人 PHPList 是否运行自己的订阅、取消订阅和感谢页面. 它还必须使用 PHPList 对 index.php 进行更多更改。
感谢您的帮助
<div class="page-footer">
<div id="newsletter">
<div class="form-horizontal">
<form action="http://example.com/?p=subscribe&id=1" method="post" class="newsletter" name="subscribeform" id="subscribeform">
<div class="form-group">
<label class="col-lg-2 col-md-2 col-sm-2 col-sx-2 control-label">Form of address:</label>
<div class="col-lg-6 col-md-6 col-sm-6 col-sx-6">
<label class="radio-inline">
<input type="radio" name="attribute1" value="1">Mr</label>
<label class="radio-inline">
<input type="radio" name="arttibute1" value="2">Ms</label>
</div>
<!-- /.col-lg-6 col-md-6 col-sm-6 col-sx-6 -->
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="subscriber_titel col-lg-2 col-md-2 col-sm-2 col-sx-2 control-label">Title:</label>
<div class="col-lg-6 col-md-6 col-sm-6 col-sx-6">
<input type="text" class="form-control" name="attribute2" id="titel" placeholder="Title" value="" />
</div>
<!-- /.col-lg-6 col-md-6 col-sm-6 col-sx-6 -->
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="subscriber_vorname col-lg-2 col-md-2 col-sm-2 col-sx-2 control-label">First Name:</label>
<div class="col-lg-6 col-md-6 col-sm-6 col-sx-6">
<input type="text" class="form-control" name="attribute3" id="vorname" placeholder="First Name" value="" />
</div>
<!-- /.col-lg-6 col-md-6 col-sm-6 col-sx-6 -->
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="subscriber_name col-lg-2 col-md-2 col-sm-2 col-sx-2 control-label">Last Name:</label>
<div class="col-lg-6 col-md-6 col-sm-6 col-sx-6">
<input type="text" class="form-control" name="attribute4" id="name" placeholder="Last Name" value="" />
</div>
<!-- /.col-lg-6 col-md-6 col-sm-6 col-sx-6 -->
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="subscriber_email col-lg-2 col-md-2 col-sm-2 col-sx-2 control-label">E-Mail:</label>
<div class="col-lg-6 col-md-6 col-sm-6 col-sx-6">
<input type="text" class="form-control" name="email" id="email" placeholder="email@example.com" value="" />
</div>
<!-- /.col-lg-6 col-md-6 col-sm-6 col-sx-6 -->
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="subscriber_land col-lg-2 col-md-2 col-sm-2 col-sx-2 control-label">Land:</label>
<div class="col-lg-6 col-md-6 col-sm-6 col-sx-6">
<input type="text" class="form-control" name="attribute5" id="land" placeholder="Land" value="" />
</div>
<!-- /.col-lg-6 col-md-6 col-sm-6 col-sx-6 -->
</div>
<!-- /.form-group -->
<input type="hidden" name="htmlemail" value="1">
<div class="form-group">
<div class="col-sm-offset-0 col-sm-12">
<div class="checkbox">
<label>
<input type="checkbox" name="list[1]" value="signup" checked />Newsletter</label>
</div>
<!-- /.col-sm-offset-0 col-sm-12 -->
</div>
<!-- /.checkbox -->
</div>
<!-- /.form-group -->
<div class="form-group">
<div class="col-sm-offset-0 col-sm-12">
<div class="checkbox">
<label>
<input type="checkbox" name="list[2]" value="signup" checked />Newsletter 2</label>
</div>
<!-- /.col-sm-offset-0 col-sm-12 -->
</div>
<!-- /.checkbox -->
</div>
<!-- /.form-group -->
<div class="form-group">
<div class="col-lg-8 col-md-8 col-sm-8 col-sx-8">
<input type="reset" name="reset" value="Reset" class="btn btn-default btn-sm" title="Formular zurücksetzen">
<button class="btn btn-success btn-sm" role="button" type="submit" name="subscribe" id="postname" onclick="return checkform();" value="Subscribe" title="Subscirbe">Subscribe Newsletter</button>
</div>
<!-- /.col-lg-8 col-md-8 col-sm-8 col-sx-8 -->
</div>
<!-- /.form-group -->
<hr class="style-red">
<div class="form-group">
<div class="col-lg-8 col-md-8 col-sm-8 col-sx-8"> <a class="btn btn-warning btn-xs" role="button" href="newsletter-unsubscribe.php" title="Newsletter unsubscribe">Unsubscribe</a>
<a class="btn btn-info btn-xs" role="button" href="newsletter-change-personal-information.php" title="Change personal information">Change personal information</a>
</div>
<!-- /.col-lg-8 col-md-8 col-sm-8 col-sx-8 -->
</div>
<!-- /.form-group -->
</form>
<!-- /.form action-->
</div>
<!-- /.form-horizontal -->
</div>
<!-- /.newsletter -->
</div>
<!-- /.page-footer -->
</div>
<!-- /.well-white-01 -->
</div>
<!-- /.lg-col-8 col-md-8 col-sm-8 col-sx-8 -->
<script type="text/javascript">
function checkform() {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var address = document.forms['subscribeform'].elements['email'].value;
if (reg.test(address) == false) {
alert('Bitte geben Sie Ihre gültige Email-Adresse ein!');
document.forms['subscribeform'].elements['email'].focus();
return false;
} else {
document.forms['unsubscribeform'].elements['unsubscribeemail'].value = document.forms['subscribeform'].elements['email'].value;
}
if (document.forms['subscribeform'].elements['attribute1'].value == "") {
alert('Bitte die Anrede auswählen!');
document.forms['subscribeform'].elements['attribute1'].focus();
return false;
} else {
document.forms['unsubscribeform'].elements['attribute1'].value = document.forms['subscribeform'].elements['attribute1'].value;
return true;
}
if (document.forms['subscribeform'].elements['attribute3'].value == "") {
alert('Bitte geben Sie Ihren Vornamen ein!');
document.forms['subscribeform'].elements['attribute3'].focus();
return false;
} else {
document.forms['unsubscribeform'].elements['attribute3'].value = document.forms['subscribeform'].elements['attribute3'].value;
return true;
}
if (document.forms['subscribeform'].elements['attribute4'].value == "") {
alert('Bitte geben Sie Ihren Nachnamen ein!');
document.forms['subscribeform'].elements['attribute4'].focus();
return false;
} else {
document.forms['unsubscribeform'].elements['attribute4'].value = document.forms['subscribeform'].elements['attribute4'].value;
return true;
}
if (document.forms['subscribeform'].elements['attribute5'].value == "") {
alert('Bitte geben Sie das Land ein!');
document.forms['subscribeform'].elements['attribute5'].focus();
return false;
} else {
document.forms['unsubscribeform'].elements['attribute5'].value = document.forms['subscribeform'].elements['attribute5'].value;
return true;
}
}
</script>