taurianthebull Posted September 6, 2008 Share Posted September 6, 2008 Hello, Any way around to display the First Name of the user that has logged in, in header? Thanks. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted September 6, 2008 Share Posted September 6, 2008 English.php contains define('TEXT_GREETING_PERSONAL', '<span id="logout"><a href="%s">LOGOUT</a></span><span class="greetUser">%s - YOU ARE LOGGED IN</span> '); This is used in general.php in tep_customer_greeting if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_href_link(FILENAME_LOGOFF, '', 'SSL'),tep_output_string_protected($customer_first_name)); } else { $greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); } tep_customer_greeting is used in 3 places in index.php. With this info you should be able to track what you need to do Happy hacking Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
taurianthebull Posted September 6, 2008 Author Share Posted September 6, 2008 Cool! Thanks for the info! It worked like a charm! Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 6, 2008 Share Posted September 6, 2008 <?php if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { echo '<div class="joking">So you came back ' . tep_output_string_protected($customer_first_name) . ' to spend more money .. GREAT!</div>' . "\n"; } ?> Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
germ Posted September 6, 2008 Share Posted September 6, 2008 <roflmao> <?php if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { echo '<div class="joking">So you came back ' . tep_output_string_protected($customer_first_name) . ' to spend more money .. GREAT!</div>' . "\n"; } ?> </roflmao> :D If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.