Hey all, I'm making up a competition contact page (its a duplicate of the tpl contact us folder and all its files, as well as a copy of the contact_us.php file. I was wondering how I could display the users email address in a similar fashion to: {$smarty.session.username} The idea was to display the {$smarty.session.username} in the "Name" field, this would mean that the user wouldn't have to type it in again. Same thing with the email field. The user Must be logged in to see the competition page Thanks Adrian
I'm a little confused with your question, as you already posted the variable. That is the value, so you use that variable in your template? Am I missing something???
Mike, email me back please Hey Mike, I've been trying to get a hold of you for weeks. Please email me back about iAvionics Sean
Activate the smarty debug console then navigate to the page where you want to display the e-mail. Then look at the debug console and see what variables you have, if its there you can display it, if its not there, then you cant without further modification.
Thanks for that. I'm basically just trying to pull the Logged in Users Email address. In the Debug it doesn't come up unfortunately. But I will investigate a bit further using debug. Thank you all
Is it assigned to your template in the contact.php file? If not then you will need to assign it so you can display it.