Back to vBulletin 3.6 Add-ons

Goodmorning/Goodafternoon/Goodevening Username
Mod Version: 1.2, by EnIgMa1234

This modification is in the archives.
vB Version: 3.6.4 Rating: (7 votes - 4.71 average) Installs: 89
Released: 13 Feb 2007 Last Update: 15 Feb 2007 Downloads: 410
Not Supported Uses Plugins Template Edits  

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 />
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

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-goodmorning_welcome.xml (510 Bytes, 103 downloads)
File Type: %1$s product-goodmorning_welcome_v2.xml (807 Bytes, 317 downloads)

Similar Mods

Username Management Addon - Latest Username Changes on Forumhome vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2025