Totally Zenned
- Join Date:
- Mar 2008
- Location:
- Brampton, Cumbria, United Kingdom, United Kingdom
- Posts:
- 825
- Plugin Contributions:
- 0
change Welcome Guest
I would like to change "Welcome Guest" in to a 'Time of Greeting and Guest'. I have a javascript ready to go, however, I cannot work out how to and where to put it. File location is
/includes/languages/english/index.php
and the command line 27 reads
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> please <a href="%s">log yourself in</a>?');
The java script is;
<script language="JavaScript" type="text/javascript"> <!-- var day = new Date(); var hr = day.getHours(); if (hr <= 11) { document.write("Good Morning!"); } else if (hr > 11 && hr < 17) { document.write("Good Afternoon!"); } else { document.write("Good Evening!"); } //--> </script>