MyBB Community Forums
Avatar using in mailtemplates - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Avatar using in mailtemplates (/thread-212917.html)



Avatar using in mailtemplates - zyra - 2017-09-12

Hello,

Does someone knows how to use the avatar of the last replied person into an automated notification mail?

I know how to do it but there misses one peace of information and that's how to translate the template variables within curly brackets to normal php $ string variables.

I basically want to achieve this:
[attachment=39304]

but I only got tho this so far:
[attachment=39305]

bump, anyone?


RE: Avatar using in mailtemplates - zyra - 2017-09-16

bump...


RE: Avatar using in mailtemplates - Wires - 2017-09-16

Variables can be used with or without the curly braces. The curly braces are often used to determine and highlight where the variable actually finishes. Refer to this post.


RE: Avatar using in mailtemplates - zyra - 2017-09-17

I still don't understand it fully...

If this array: $l['email_subscription'] holds {2} as the author.. How can I use it to perform a query ?


RE: Avatar using in mailtemplates - Eldenroot - 2017-09-18

I am interested as well, nice request


RE: Avatar using in mailtemplates - zyra - 2017-09-22

ty Eldenroot for backing me up.
Can somebody clarify how to use the {} template variables for further manipulation?


RE: Avatar using in mailtemplates - zyra - 2017-10-04

bump? Sad