siehe Post Nr.: 10
case 'unsubscribe':
case 'unsubscribe_url':
$strAlias = false;
/* if ($arrCurrentRecipient['source'] == 'list')
{ */
$objRecipientList = $this->Database
->prepare("SELECT * FROM tl_avisota_recipient_list WHERE id=2")
->execute($arrCurrentRecipient['sourceID']);
if (!$objRecipientList->next())
{
return '';
}
$strAlias = $objRecipientList->alias;
$objPage = $this->getPageDetails($objRecipientList->subscriptionPage);
/* }
else if ($arrCurrentRecipient['source'] == 'mgroup')
{
if ($objCategory->subscriptionPage > 0)
{
$objPage = $this->getPageDetails($objCategory->subscriptionPage);
}
} */
if ($arrCurrentRecipient['source'] == 'list')
tl_avisota_recipient_list WHERE id=?
tl_avisota_recipient_list WHERE id= 2 // 2 ist eine Beispielverteiler
<?php $urladdemail = $this->replaceInsertTags( '{{newsletter::unsubscribe_url}}' ); ?>
<a href="{{link_url::*}}<?php echo strstr ($urladdemail,'?'); ?>"><?php echo $GLOBALS['TL_LANG']['tl_avisota_newsletter']['unsubscribe'] ?></a>
<?php unset($urladdemail); ?>
<?php echo $GLOBALS['TL_LANG']['tl_avisota_newsletter']['unsubscribe'] . "\n" ?>
<?php $urladdemail = $this->replaceInsertTags( '{{newsletter::unsubscribe_url}}' ); ?>
[{{link_url::*}}<?php echo strstr ($urladdemail,'?'); ?>]
<?php unset($urladdemail); ?>
Kommentar