SMFHacks.com

Newsletter Pro => Support => Topic started by: elbeer on July 24, 2014, 08:35:14 am

Title: Unsubscribe link Incorrect
Post by: elbeer on July 24, 2014, 08:35:14 am
Hi,

The unsubscribe link in my install is showing as http://ppvguru.com/forum/index.phpUnsubscribe which obviously wont work.

How can I put the correct link for it.
Title: Re: Unsubscribe link Incorrect
Post by: SMFHacks on July 24, 2014, 08:36:25 am
The link is auto generated for each email address. Are you using any kind of rewrite url mod?
Title: Re: Unsubscribe link Incorrect
Post by: elbeer on July 24, 2014, 08:38:54 am
Possibly on the ppvguru.com will have htaccess rewriting but not on the forum itself. I can hard code it into one of the files if you give me the format and which file its in
Title: Re: Unsubscribe link Incorrect
Post by: elbeer on July 24, 2014, 09:53:26 am
Or which file constructs the unsubscribe link and what code I can ammend it to suit.
Title: Re: Unsubscribe link Incorrect
Post by: SMFHacks on July 24, 2014, 03:15:32 pm
Link is in the form of
newstracking2.php?a=u&c=###&i=###&hash=#A-Z0-9#

And is is added in Sources/ManageNew.php
Code: [Select]
// Create Unsubscribe link
if (empty($modSettings['newspro_set_nounsubscribe']))
$_POST['message'] = str_replace('<#unsubscribe#>','<a href="' . $boardurl . '/newstracking2.php?a=u&c=' . $context['ID_LETTER'] . '&i=#ID_EMAIL#&hash=EMAILHASH">' . $txt['newspro_unsubscribe'] . '</a>',$_POST['message']);
else
$_POST['message'] = str_replace('<#unsubscribe#>','',$_POST['message']);

Title: Re: Unsubscribe link Incorrect
Post by: elbeer on November 18, 2016, 04:49:02 am
Getting this error when someone unsubscribes:
Strict Standards: Only variables should be passed by reference in /home/XXX/public_html/forum/Sources/menu-editor-pro/resources/integrate.php on line 132
Title: Re: Unsubscribe link Incorrect
Post by: SMFHacks on November 18, 2016, 08:13:14 am
That's part of menu editor pro.
If you look at that line probably just remove &
/home/XXX/public_html/forum/Sources/menu-editor-pro/resources/integrate.php on line 132
Title: Re: Unsubscribe link Incorrect
Post by: elbeer on November 18, 2016, 09:02:32 am
Oh yeah. So are you saying I should contact them mate.
Title: Re: Unsubscribe link Incorrect
Post by: SMFHacks on November 18, 2016, 09:40:44 am
Yeah or try removing the & from that line of code.
Title: Re: Unsubscribe link Incorrect
Post by: elbeer on November 18, 2016, 01:51:12 pm
There is not an & sign there is a }