Version: 1.2, by EnIgMa1234
Developer Last Online: May 2011
Category: Forum Home Enhancements -
Version: 3.6.4
Rating:
Released: 02-12-2007
Last Update: 02-14-2007
Installs: 89
Uses Plugins Template Edits
No support by the author.
Dont Copy This Hack
Description: This Will Add A Good Morning $username To Replace The Welcome $username If The Time Is 12:00PM To 11:59AM. If It Isnt In These Times, It WIll Have The Usual Welcome phrease
<strong><phrase 1="$bbuserinfo[username]"><script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time < 18)
{
document.write("<b>$vbphrase[goodmorning_x]</b>")
}
else
{
document.write("<b>$vbphrase[welcome_x]")
}
</script></phrase></strong><br />
OR For V.1.1
Code:
<strong><phrase 1="$bbuserinfo[username]"><script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time < 12)
{
document.write("<b>$vbphrase[goodmorning_x]</b>")
}
else if (time>=12 && time<18)
{
document.write("<b>$vbphrase[goodafternoon_x]</b>")
}
else
{
document.write("<b>$vbphrase[goodevening_x]</b>")
}
</script></phrase></strong><br />
Then: Import The Product
History
- V.1.0 Released
- V1.1 Added Good Evening
- V1.2 Added New Phrase - Good Afternoon X
Future Developments
- Cache Template
Upgrading From V.1.1 => V.1.2
Reimport The Product - Overwrite Set To Yes
Redo The Template Edit
I Will Only Give Support To Those That Click Install
V.3 - 80% Done
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
please make sure you followed the steps correctly. try reinstalling it. if that doesnt work, could you pm me a link to you site & the code for the navbar your using
I know someone is going to request this, so it may as well be me.
How about making it so there's a period of time for "good morning," a period of time for "good afternoon," and a period of time for "good evening?" So like, from 6:00AM to 12:00AM, it would be "good morning." From 12:00AM to 5:00PM it would be "good afternoon." And from 5:00PM to midnight it would be "good evening." Or something like that. Making the times customizable in the admin CP would be cool too.
I know someone is going to request this, so it may as well be me.
How about making it so there's a period of time for "good morning," a period of time for "good afternoon," and a period of time for "good evening?" So like, from 6:00AM to 12:00AM, it would be "good morning." From 12:00AM to 5:00PM it would be "good afternoon." And from 5:00PM to midnight it would be "good evening." Or something like that. Making the times customizable in the admin CP would be cool too.
There's a mod, posted long before this one, that already does that.
I know someone is going to request this, so it may as well be me.
How about making it so there's a period of time for "good morning," a period of time for "good afternoon," and a period of time for "good evening?" So like, from 6:00AM to 12:00AM, it would be "good morning." From 12:00AM to 5:00PM it would be "good afternoon." And from 5:00PM to midnight it would be "good evening." Or something like that. Making the times customizable in the admin CP would be cool too.