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. ocPortal 9 is 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 Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message:



   

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is 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.


An error has occurred

Unfortunately a query has failed [INSERT INTO ocp2_stats (access_denied_counter, browser, operating_system, the_page, ip, the_user, date_and_time, referer, `get`, post, milliseconds) VALUES (0, 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'http://commoncrawl.org/faq/', 'forum/pages/modules/topicview.php', '54.146.5.196', -319205634, 1495949015, '', '<param>page=topicview</param>\n<param>type=misc</param>\n<param>id=22334</param>\n', '', 0)] [Duplicate entry '19560025' for key 'PRIMARY'] (version: 8-RC3, PHP version: 7.0.19, URL: /forum/topicview/misc/deploying/inserting-users-custom.htm)

Here is the stack trace:

The staff have been provided a ‘stack trace’ which may help them diagnose the problem.