Sauter la navigation

[Résolu] Placeholders do not work with user notification

This support ticket is created Il y a 6 années et 1 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 6 réponses, a 3 voix.

Dernière mise à jour par Christian Cox Il y a 6 années et 1 mois.

Assisté par: Christian Cox.

Auteur
Publications
#1166333

Pat

Hello,

I have created a user Cred form and wants to define a notification.
I have inserted this :
Username : %%USER_USERNAME%%</br>
Nickname : %%USER_NICKNAME%%</br>
Email : %%USER_EMAIL%%</br>
Login name : %%USER_LOGIN_NAME%%</br>
User display name : %%USER_DISPLAY_NAME%%</br>
Date : %%DATE_TIME%%

Now, when a user subscribes, here is what I'm getting inside the notification mail :

Username : %%USER_USERNAME%%
Nickname : %%USER_NICKNAME%%
Email : %%USER_EMAIL%%
Login name : %%USER_LOGIN_NAME%%
User display name : %%USER_DISPLAY_NAME%%
Date : %%DATE_TIME%%

Any idea what could be the issue?
Regards
Pat

#1166468

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Pat,

Thank you for contacting our support forum.

This is odd as it should be replaced.

Would you mind providing me with admin access so that I can have a look ? Also could you let me know when did this start happening ?

Thanks,
Shane

#1166469

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Private fields

#1166502

Pat

Hi Shane,

It's difficult to give you access for the moment, sorry.
I see there is another method like this :
[types usermeta="date-of-birth" style="text" format="F j, Y" user_id="%%USER_USERID%%" user_is_author="true"][/types]

Is it possible to get all user fields like that?
If yes, I could test if this is working without placeholder?

Regards
Pat

#1166504

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Pat,

Yes it is possible to get the user fields like this as per our documentation here.
https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/#inserting-the-user-login-information-fields

Thanks,
Shane

#1166507

Pat

Hi Shane
Thanks for your quick answer.
In fact, I was thinking this was only for custom fields.
Could you indicate what I should use for each fields that are in the notification :
%%USER_USERNAME%%
%%USER_NICKNAME%%
%%USER_EMAIL%%
%%USER_LOGIN_NAME%%
%%USER_DISPLAY_NAME%%
%%DATE_TIME%%

Regards
Pat

#1167835

Hi, Shane is on holiday this week so I am looking over his tickets. The placeholders you provided are the recommended way to access this information:

%%USER_USERNAME%%
%%USER_NICKNAME%%
%%USER_EMAIL%%
%%USER_LOGIN_NAME%%
%%USER_DISPLAY_NAME%%
%%DATE_TIME%%

If they are not working, there is a problem we need to investigate. Try these steps first:
- Temporarily deactivate all plugins except Types, Views, Forms and Forms Commerce. Activate the default Twenty Seventeen theme. If you have added any custom code snippets in Toolset > Settings > Custom code, deactivate them.
- Test again. If the problem is resolved, reactivate your theme, other plugins, and custom code snippets one by one until the problem returns.
- If the problem was not resolved, I'll need to take a closer look.