The Arcive of vBulletin Modifications Site. |
|
Goodmorning/Goodafternoon/Goodevening Username Details »»
|
|||||||||||||||||||||||||||
|
Goodmorning/Goodafternoon/Goodevening Username
Developer Last Online: May 2011
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 3 New Phrases 1 Template Edit Install: Find In Navbar: Code:
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong> Replace With V.1: Code:
<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 />
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 />
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
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Reserved
|
|
#3
|
||||
|
||||
|
This is cool. Thanks for sharing!
|
|
#4
|
|||
|
|||
|
no problem. thanks for liking it
|
|
#5
|
|||
|
|||
|
Can you make is only say good morning from 12am but before 12pm and then good afternoon from then till 6pm, then 6pm to 12am it would say good evening.
Making the full cycle?? |
|
#6
|
|||
|
|||
|
yes i will release that soon in the next version
|
|
#7
|
|||
|
|||
|
its ready now
|
|
#8
|
|||
|
|||
|
which time does it use, the server time or the user time???
|
|
#9
|
|||
|
|||
not working for me, i'm using v.1.1
|
|
#10
|
|||
|
|||
|
installed great!
|
![]() |
|
|