Zen Cart Logo
Forums / General Questions / changing user greeting

changing user greeting

Locked

Views: 774

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 May 2009, 3:22 AM
#1
mrchristoh avatar

mrchristoh

New Zenner

Join Date:
May 2009
Location:
from parts unknown
Posts:
74
Plugin Contributions:
0

changing user greeting

Hi All.....again,

Just wondering if anyone has changed the greeting msg based on the time of the day?

outcome would be......
if its the morning then display = good morning guest/user
if its the evening then display = good afternoon / good evening guest/user.

I know its a little obscure but maybe a cool tweek that makes the customer a little more welcomed.

Any ideas guys & gals?

21 May 2009, 3:40 PM
#2
mrchristoh avatar

mrchristoh

New Zenner

Join Date:
May 2009
Location:
from parts unknown
Posts:
74
Plugin Contributions:
0

Re: changing user greeting

Its been done :P
also done in some other ways too.

thanks to all who read :D
thanks to all for advice...a total of 0

gotta say this forum isnt really any help at all
LMAO

22 May 2009, 1:07 AM
#3
mrchristoh avatar

mrchristoh

New Zenner

Join Date:
May 2009
Location:
from parts unknown
Posts:
74
Plugin Contributions:
0

Re: changing user greeting

update......

i had some trouble with displaying the users local time...in php
so i swapped to a crappppy javascript to save time as my holiday time is rapidly coming to an end.

yeah......its real dirty but hey it works

<SCRIPT LANGUAGE="Javascript">
<!--
{
	helixtime = new Date()
	hrstime = helixtime.getHours()
	if (hrstime < 7){timemsg = "You're up <B>really</B> early! "}
	if (hrstime > 6 && hrstime <12){timemsg = "Good morning! "}
	if (hrstime > 11 && hrstime <18){timemsg = "Good afternoon! "}
	if (hrstime >17){timemsg = "Good evening! "}
	document.write(timemsg)}
// -->
</SCRIPT>
23 Jun 2009, 10:07 PM
#4
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: changing user greeting

Hey, this mod deserves a thank you.

THANK YOU. Very nice touch.

Now where do I put this code please?

Thanks

Rob