Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
[value] is a special substitution for the layouts that'll replace with the value the field normally would've output without layout. It's a good way to ensure the layout can output the original value it was supposed to.is [value] to be replaced with the field I want to show? like [avatar]?
Nested substitution if statements won't work as the first if statement will pick up the closing tag of the second if statement.Can you, or how do you do, nested if statements?
The layout usage is basically just for display. It's not really conditioning it like that, but you could have that conditioning using CB Conditional in if you wanted.first check to see if cb_use_gravatar is set to off (0/no), if it is, then allow/use the upload profile image field and hide the cb_gravatar field,
if it's set to on (1/yes) then hide the upload profile image field, (but still show avatar image) and show the cb_gravatar field with the pre-populated email address from the auto actions.
CB Auto Actions and its Field action acting on the after frontend registration and after frontend profile update triggers (should be in the dropdown, begin typing to filter it) then under Conditions just condition your field (e.g. [cb_use_gravatar] Equal To 1) and set your gravatar field with the email field substitution.Now, just need to find a way to push the users email to the cb_gravatar field when changing the cb_use_gravatar select dropdown from No to Yes... I love a good challenge
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.