SMFHacks.com
Newsletter Pro => Support => Topic started 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.
-
The link is auto generated for each email address. Are you using any kind of rewrite url mod?
-
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
-
Or which file constructs the unsubscribe link and what code I can ammend it to suit.
-
Link is in the form of
newstracking2.php?a=u&c=###&i=###&hash=#A-Z0-9#
And is is added in Sources/ManageNew.php
// 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']);
-
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
-
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
-
Oh yeah. So are you saying I should contact them mate.
-
Yeah or try removing the & from that line of code.
-
There is not an & sign there is a }