HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Inserting users' custom profile field in link in mass email

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#111209 (In Topic #22334)
Avatar

Community saint

Hello,

I'm trying to send a email to all our site users which contains a link that inserts custom profile field data into the link. This particular custom profile field, containing a number specific to each user, is connected with a separate database we use to store information about our users.
The user then clicks on the link and it takes them to a page (on a different site) which pulls in personalized information from the separate database.

The custom profile field data is to be inserted at the end of the link. I put the following tempcode at the end of the link-- {$CPF_VALUE,EMB}. After placing the link manually (not through WYSIWYG link editor), I did get the custom profile field data to appear for the Preview email, but then when I actually sent the email to the test group (myself and one other person), the resulting email omitted the custom profile field data from the link. What am I doing wrong?


Last edit: by Rishi Saravanan
Back to the top
 
Posted
Rating:
#111210
Avatar

Hi,

Please try:

Code

{$CPF_VALUE,EMB,{member_id}}

It will only work for members of course, not newsletter subscribers.

It should bind in 'member_id' for whatever member is being emailed. This then is used for the second parameter to the CPF_VALUE symbol, which explicitly sets the member. Without it it defaults to currently active member (i.e. you).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#111213
Avatar

Community saint

success, thank you!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: