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.
Is there a way to where we can have this show the message on line 1 then the last log in information on line 2 and finally the PM info on line 3? It just looks too long. See screen cap below.
what would everyone like to see in the next version of this?
-Admin prefs to change the actuall text of each of the greetings
-Admin prefs to change the times they are invoked
-Three graphics to associate: bright sun, medium sun (?) and moon
I'd also like the greeting to be a separate phrase on it's own in the xml (distinct from the username which would reside in the navbar template.) That way I could make just the username itself clickable, and not the entire line, or make it bolder or a different size or color or whatever.
-Admin prefs to change the actuall text of each of the greetings
-Admin prefs to change the times they are invoked
-Three graphics to associate: bright sun, medium sun (?) and moon
I'd also like the greeting to be a separate phrase on it's own in the xml (distinct from the username which would reside in the navbar template.) That way I could make just the username itself clickable, and not the entire line, or make it bolder or a different size or color or whatever.