View Issue Details

IDProjectCategoryView StatusLast Update
0019296phpList 3 applicationCampaign Send Processpublic14-01-19 14:01
Reporterdparts 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Product Version3.3.3 
Target VersionFixed in Version 
Summary0019296: Add subscribe page id to links sent in mails (Patch inside)
DescriptionIf we use multiple subscription pages (for example with different languages) we need to pass the ID of each subscription page to all links ([UNSUBSCRIBEURL], [CONFIRMATIONURL], [PREFERENCESURL]), otherwise we might get unwanted results.

To add the ID we just need to change the function "getUserConfig" in defaultconfig.php.

Here is my fix. Appreciate if we find this in new releases.
Tagsdefaultconfig, Internationalisation, patch, translation

Activities

dparts

23-06-18 11:22

reporter  

defaultconfig.php.diff (796 bytes)
778c778
< function getUserConfig($item, $userid = 0)
---
> function getUserConfig($item, $userid = 0, $subscriptionpageid = 0)
818c818
<         $value = str_ireplace('[UNSUBSCRIBEURL]', $url.$sep.'uid='.$uniqid, $value);
---
>         $value = str_ireplace('[UNSUBSCRIBEURL]', $url.$sep.'uid='.$uniqid.$sep.'id='.$subscriptionpageid, $value);
821c821
<         $value = str_ireplace('[CONFIRMATIONURL]', $url.$sep.'uid='.$uniqid, $value);
---
>         $value = str_ireplace('[CONFIRMATIONURL]', $url.$sep.'uid='.$uniqid.$sep.'id='.$subscriptionpageid, $value);
824c824
<         $value = str_ireplace('[PREFERENCESURL]', $url.$sep.'uid='.$uniqid, $value);
---
>         $value = str_ireplace('[PREFERENCESURL]', $url.$sep.'uid='.$uniqid.$sep.'id='.$subscriptionpageid, $value);

duncanc

24-06-18 06:55

updater   ~0060770

You might be misunderstanding how this currently works. A subscribe page is associated with each subscriber that is used by the processing of the personal pages such as preferences.

When a configuration item is specific to a subscribe page then it is retrieved by appending the subscribe page id, such as "unsubscribemessage:$id".