Page 1 of 1
FrontEndUsers Settings - On Login
Posted: Mon May 08, 2017 2:57 pm
by nicklee5
This is going to be really simple for many of you but U have to say that I am missing the point here somewhere...
I want to receive an email when someone successfully logs onto my Members area. So I have set this up with FrontEndUsers, and in the settings, under Preferences, I have gone down to the "Notification Settings", selected "on Login", set the email address and email subject, and in the "Notification Email Template" I have the following:
Code: Select all
Someone has logged in: {$username}
When someone DOES log in I get an email with the content:
Someone has logged in:
But it does not identify WHO has logged in... What am I doing wrong please?
Re: FrontEndUsers Settings - On Login
Posted: Mon May 08, 2017 7:48 pm
by velden
It's not an direct answer to your question but it could help you now and in the future during troubleshooting:
put somewhere in the Notification Email template:
and log a FrontEnd User in.
You should get an email with all variables available to the template. It might help you find the one you need.
(I didn't it)
Re: FrontEndUsers Settings - On Login
Posted: Tue May 09, 2017 4:06 pm
by nicklee5
OK, I did that, and what I got back was really useful, but not sure how to use it! This is the bit that was what I need to decypher...:
Code: Select all
feu_input_username <em>(string)</em> = XYZ@msn.com<br/>
So it looks like I need to 'do something' with "feu_input_username", but not exactly sure - I've tried embedding in braces ({feu_input_username}) and/or putting a dollar sign in front of it ({$feu_input_username})..... Still just getting a blank answer...
Any thoughts anyone??
Re: FrontEndUsers Settings - On Login
Posted: Thu May 11, 2017 8:18 am
by nicklee5
Could really do with an answer please, so 'bump'....
Re: FrontEndUsers Settings - On Login
Posted: Thu May 11, 2017 8:53 am
by velden
if {$feu_input_username} doesn't work I think 'feu_input_username' is a property of another object.
So we'd need to see the relevant part where you found this 'feu_input_username'. If posting please use code tags of this forum and remove sensitive information.
I don't have a FEU install so can't check it for you.
Re: FrontEndUsers Settings - On Login
Posted: Thu May 11, 2017 12:10 pm
by nicklee5
This is the contents of the email I received when following the advice and inserting {get_template_vars} - note that I have NOT embedded it in code form as I want you to see it exactly as it comes into my mailbox, and also note that as recommended I have replaced the sensitive stuff with X's...:
<pre>$SCRIPT_NAME <em>(string)</em> = /cms3/index.php<br/>$app_name <em>(string)</em> = callable<br/>$sitename <em>(string)</em> = Crowthorne Archers<br/>$content_obj <em>(object of type: Content)</em> = {}<br/>$content_id <em>(string)</em> = 75<br/>$page_id <em>(integer)</em> = 75<br/>$page_alias <em>(string)</em> = members-area<br/>$lang <em>(string)</em> = en_US<br/>$encoding <em>(string)</em> = utf-8<br/>$smarty <em>(NULL)</em> = <br/>$actionid <em>(string)</em> = m713a0<br/>$actionparams <em>(array)</em> = [<br/> .returnid <em>(integer)</em> = 75<br/> .inline <em>(integer)</em> = 0<br/> .nocaptcha <em>(integer)</em> = 0<br/> .returnto <em>(string)</em> = <br/> .only_groups <em>(string)</em> = <br/> .feu__data <em>(string)</em> = <br/> .feu_input_username <em>(string)</em> =
XXXXXXXXXX@msn.com<br/> .feu_input_password <em>(string)</em> = XXXXXXXXXX<br/> .feu_submit <em>(string)</em> = <br/> .action <em>(string)</em> = login<br/>]<br/>$returnid <em>(string)</em> = 75<br/>$actionmodule <em>(string)</em> = FrontEndUsers<br/>$mod <em>(object of type: FrontEndUsers)</em> = {<br/> ._colors <em>(NULL)</em> = <br/> ._actionid <em>(string)</em> = m713a0<br/> ._actionname <em>(string)</em> = login<br/> ->_image_directories <em>(array)</em> = [<br/> .0 <em>(string)</em> = modules/FrontEndUsers/icons<br/> ]<br/> ._current_tab <em>(NULL)</em> = <br/> ._current_action <em>(NULL)</em> = <br/> ._errormsg <em>(NULL)</em> = <br/> ._messages <em>(NULL)</em> = <br/> ._returnid <em>(NULL)</em> = <br/>}<br/>$FrontEndUsers <em>(object of type: FrontEndUsers)</em> = {<br/> ._colors <em>(NULL)</em> = <br/> ._actionid <em>(string)</em> = m713a0<br/> ._actionname <em>(string)</em> = login<br/> ->_image_directories <em>(array)</em> = [<br/> .0 <em>(string)</em> = modules/FrontEndUsers/icons<br/> ]<br/> ._current_tab <em>(NULL)</em> = <br/> ._current_action <em>(NULL)</em> = <br/> ._errormsg <em>(NULL)</em> = <br/> ._messages <em>(NULL)</em> = <br/> ._returnid <em>(NULL)</em> = <br/>}<br/></pre>
Re: FrontEndUsers Settings - On Login
Posted: Thu May 11, 2017 1:58 pm
by velden
Well, in an html page it would have been more obvious what you need.
I don't know much about this email functionality so I'm not sure if this will be the best way to do it.
Your variable is in {$actionparams['feu_input_username']}
Re: FrontEndUsers Settings - On Login
Posted: Thu May 11, 2017 2:02 pm
by nicklee5
Awesome!!! Solved!!!!!!
Thank you SO MUCH 'velden' - that is exactly what I was looking for!
Apologies for not putting it in as HTML - I can see what you mean now, but that's exactly how it came to me in an email. But no problem - I have learnt something from all of this - many thanks!
