FrontEndUsers Settings - On Login

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
nicklee5
Forum Members
Forum Members
Posts: 10
Joined: Tue Dec 13, 2016 4:56 pm

FrontEndUsers Settings - On Login

Post 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?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: FrontEndUsers Settings - On Login

Post 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:

Code: Select all

{get_template_vars}
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)
nicklee5
Forum Members
Forum Members
Posts: 10
Joined: Tue Dec 13, 2016 4:56 pm

Re: FrontEndUsers Settings - On Login

Post 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??
nicklee5
Forum Members
Forum Members
Posts: 10
Joined: Tue Dec 13, 2016 4:56 pm

Re: FrontEndUsers Settings - On Login

Post by nicklee5 »

Could really do with an answer please, so 'bump'....
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: FrontEndUsers Settings - On Login

Post 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.
nicklee5
Forum Members
Forum Members
Posts: 10
Joined: Tue Dec 13, 2016 4:56 pm

Re: FrontEndUsers Settings - On Login

Post 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/>&nbsp;&nbsp;&nbsp;.returnid <em>(integer)</em> = 75<br/>&nbsp;&nbsp;&nbsp;.inline <em>(integer)</em> = 0<br/>&nbsp;&nbsp;&nbsp;.nocaptcha <em>(integer)</em> = 0<br/>&nbsp;&nbsp;&nbsp;.returnto <em>(string)</em> = <br/>&nbsp;&nbsp;&nbsp;.only_groups <em>(string)</em> = <br/>&nbsp;&nbsp;&nbsp;.feu__data <em>(string)</em> = <br/>&nbsp;&nbsp;&nbsp;.feu_input_username <em>(string)</em> = XXXXXXXXXX@msn.com<br/>&nbsp;&nbsp;&nbsp;.feu_input_password <em>(string)</em> = XXXXXXXXXX<br/>&nbsp;&nbsp;&nbsp;.feu_submit <em>(string)</em> = <br/>&nbsp;&nbsp;&nbsp;.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/>&nbsp;&nbsp;&nbsp;._colors <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._actionid <em>(string)</em> = m713a0<br/>&nbsp;&nbsp;&nbsp;._actionname <em>(string)</em> = login<br/>&nbsp;&nbsp;&nbsp;->_image_directories <em>(array)</em> = [<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.0 <em>(string)</em> = modules/FrontEndUsers/icons<br/>&nbsp;&nbsp;&nbsp;]<br/>&nbsp;&nbsp;&nbsp;._current_tab <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._current_action <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._errormsg <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._messages <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._returnid <em>(NULL)</em> = <br/>}<br/>$FrontEndUsers <em>(object of type: FrontEndUsers)</em> = {<br/>&nbsp;&nbsp;&nbsp;._colors <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._actionid <em>(string)</em> = m713a0<br/>&nbsp;&nbsp;&nbsp;._actionname <em>(string)</em> = login<br/>&nbsp;&nbsp;&nbsp;->_image_directories <em>(array)</em> = [<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.0 <em>(string)</em> = modules/FrontEndUsers/icons<br/>&nbsp;&nbsp;&nbsp;]<br/>&nbsp;&nbsp;&nbsp;._current_tab <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._current_action <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._errormsg <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._messages <em>(NULL)</em> = <br/>&nbsp;&nbsp;&nbsp;._returnid <em>(NULL)</em> = <br/>}<br/></pre>
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: FrontEndUsers Settings - On Login

Post 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']}
nicklee5
Forum Members
Forum Members
Posts: 10
Joined: Tue Dec 13, 2016 4:56 pm

Re: FrontEndUsers Settings - On Login

Post 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! :)
Post Reply

Return to “Modules/Add-Ons”