ssnb Posted August 2, 2008 Posted August 2, 2008 I want to be able to refer to the user and display their name in various places on the site when they are logged in. Can someone tell me the correct code for this: in english.php This doesn't work: define('TEXT_PRODUCT_POINTS', 'Buy this product <span class="greetUser">%s,</span> and earn $5' This doesn't work: define('TEXT_PRODUCT_POINTS', 'Buy this product ' . customer[$firstname] . ' and earn $5' Any ideas? Thanks
germ Posted August 2, 2008 Posted August 2, 2008 Try $customer_first_name in place of customer[$firstname] 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 >
ssnb Posted August 2, 2008 Author Posted August 2, 2008 Try $customer_first_name in place of customer[$firstname] Thanks buddy, that worked a treat :-) Cheers
Recommended Posts
Archived
This topic is now archived and is closed to further replies.