×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: profile update email: buggy link, not stylized.

profile update email: buggy link, not stylized. 10 years 1 week ago #28865

  • mhuber
  • mhuber's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Hi everyone,
the CMC component on Joomla 2.5.x is working fine, but there's problems with the profile-update-email that is generated when a user tries to register the same email-address twice.

1. the link in that email seems broken, it generates a "bad request" page in the browser instead of linking to mail chimp's profile update form:
http://the%20nlp%20connection.us9.list-manage.com/profile?u=(...)
the part after http:// till the first dot seems junk to me, it is my lists name, spaces url-encoded as %20. should be http://the-nlp-connectrion.us9 instead.

2. the very same email is displayed as pure text email in the client, but all other emails are stylized as intended in the mailchimp cretae form section (with colors, fonts etc).

What can I do?

Thank you in advance,

Michi
The following user(s) said Thank You: Sepppl

profile update email: buggy link, not stylized. 10 years 1 week ago #28876

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Michi,
Can you test it on our frontpage? Does the link also look broken? Because it works for me.

2. I don't understand what you mean?

Regards,
Daniel

profile update email: buggy link, not stylized. 10 years 1 week ago #28888

  • mhuber
  • mhuber's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Hi Daniel,

thanks for your quick reply!

It is working fine on your frontage. I found the problem and a fix:
Your account name on mailchimp is "compojoom", no spaces. "the nlp connection" has spaces, and these are screwing up the link.
See /components/com_cmc/controllers/subscription.php:
$account = $chimp->getAccountDetails();
$memberInfo = $chimp->listMemberInfo($listId, $email);
$listInfo = $chimp->lists(array('list_id' => $listId));
 
$url = 'http://' . $account['username']. '.' . $dc . '.list-manage.com/profile?u='
				. $account['user_id'] . '&id=' . $listId . '&e=' . $memberInfo['data'][0]['euid'];

I tried this to fix it:
// replace spaces with dashes in $url
$myusername = strtr($account['username'],' ','-');
$url = 'http://' . $myusername. '.' . $dc . '.list-manage.com/profile?u='
				. $account['user_id'] . '&id=' . $listId . '&e=' . $memberInfo['data'][0]['euid'];

and it seems to work.

My second point (stylized email): The opt-in and welcome emails come from mail chimp, and they are colored, with big fonts etc.
The update-email, I found, is generated by the component, not sent via mail chimp, and therefore not stylized as the welcome email.
Can the component send the mail chimp-styled update-email instead?

Regards,

Michi
  • Page:
  • 1
Time to create page: 0.109 seconds