• Resolved Tony G

    (@starbuck)


    Email templates have content like this:

    [{site_title}] {user_first}, You have done …
    Congratulations {user_first}!

    If the user does not have a first name in their profile, the email text looks awkward.

    Please consider an enhancement to support new functionality in tags:

    {before:tag:after:isnull} : If the value of the tag is not null, show the before and after text. If the value of the tag is null, show the isnull text.

    With that new syntax, which won’t affect any existing settings, we can modify templates like this:

    [{site_title}]{ :user_first:, y: Y}ou have done …
    Congratulations{ :user_first}!

    That will result in :

    [Our Site] Carol, you have done …
    Congratulations Carol!

    or

    [Our Site] You have done …
    Congratulations!

    What do you think? Too meticulous? ??

    Thanks!

    • This topic was modified 2 years, 7 months ago by Tony G.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Paco González Pérez

    (@pacogon)

    Hi @starbuck!

    I would be more than happy to assist you today.

    Thank you very much for your suggestion about the tags, we add it to study and develop it in the future.

    This helps us to improve GamiPress. ??

    Hope it helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Email template, alternative tags?’ is closed to new replies.