Support Forums

Displaying Email in Contact Us using Smartycode

This is a discussion on Displaying Email in Contact Us using Smartycode within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hey all, I'm making up a competition contact page (its a duplicate of the tpl contact us folder and all ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 10-27-2011, 05:03 AM   #1
Junior Member
 
Join Date: Apr 2011
Posts: 28
Rep Power: 3
performancecentral is on a distinguished road
Default Displaying Email in Contact Us using Smartycode

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
performancecentral is offline   Reply With Quote
Old 10-27-2011, 09:28 AM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,375
Rep Power: 72
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by performancecentral
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.
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-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 11-01-2011, 10:58 AM   #3
Customer
 
Join Date: May 2010
Posts: 3
Rep Power: 0
computergiant is on a distinguished road
Default 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
computergiant is offline   Reply With Quote
Old 11-02-2011, 10:13 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

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.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 11-10-2011, 10:11 PM   #5
Junior Member
 
Join Date: Apr 2011
Posts: 28
Rep Power: 3
performancecentral is on a distinguished road
Default

Quote:
Originally Posted by Lhotch
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
performancecentral is offline   Reply With Quote
Old 11-11-2011, 05:55 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,432
Rep Power: 87
seymourjames is a jewel in the rough
Default

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.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
email received not through contact page belvedere Off Topic 3 02-02-2011 09:14 PM
Contact Seller Email Not sending tlombard Technical Support 7 11-23-2009 08:43 PM
Email/Contact us/Confirm emails not being sent securepage Technical Support 6 10-21-2009 06:30 AM
Change contact owners email to site email Soul Technical Support 3 07-25-2009 12:51 AM


All times are GMT -4. The time now is 05:30 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0