The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
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 |
#82
|
||||
|
||||
I have just installed this on a couple of 3.6.11 forums and had to fiddle a bit as some hacks that place info in this area of the navbar hook onto the {welcome_x} phrase will be affected by the template edit.
I lost my New Posts since last visit and had to do the following Code:
<if condition="$show['member']"> <td class="alt2" valign="top" nowrap="nowrap"> <div class="smallfont"> <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x] <br /> <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 /> <if condition="$showinvisiblemode"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/<if condition="!$invisiblemode">in</if>visible.gif" alt="$vbphrase[ajax_invisible_mode]" onclick="requestMarkData('index.php?{$session[sessionurl]}do=doinvisiblemode&userid={$invisiblemodeuser}','parseMark',this)" /></if><br /> <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if> <if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if> </div> </td> <else /> Quote:
|
#83
|
||||
|
||||
I feel that saying "Good Evening" or even "Good Night" isn't appropriate for the hours between 12:00am and 05:00am, because: "Good evening" shouldn't refer to the early AM hours - that's simply not etymologically correct. If someone logs in to your forum at 1:00 am and you tell them "Good night!" it sounds like you're telling them to have a good night's sleep, as people normally say before they go to bed and close down for the day. I prefer a more welcoming term for the early AM caffeine-empowered individuals. 12-5am is a period I prefer to tell people "Good Early Morning"!
So I took the liberty of editing this hack so that it reads "Good Early Morning, Username", in which 'Username' will link to the member/users' profile page. 3-STEP INSTALLATION INSTRUCTIONS: 1) Upload the file product_goodmorning_welcome_v2.xml to your /includes/xml/ directory. 2) Go to your AdminCP / Manage Products / and click "Add/Import Product", and Import the XML File from your server, enter: ./includes/xml/product_goodmorning_welcome_v2.xml and click import. Be sure to select "allow overwrite" if you have already installed this product. 3) Template Edit: Go to AdminCP / Style Manager / Edit Templates (from the drop-down menu) / Navigation Breadcrumb Templates / navbar Edit the "navbar" template Find (for 3.6 and maybe 3.7 vbulletin versions): Quote:
Quote:
Quote:
I have tested this hack on vb 3.6.x, 3.7.x, and am currently running it on vb3.8 BETA - it works on all of these. Enjoy! |
#84
|
||||
|
||||
I have this on my 3.6.8 board.
I am upgrading it to a 3.8.1 at the weekend. Will this work on it please? I don't want to lose this fantastic add-on. |
#85
|
||||
|
||||
Welchy - I just installed this modification with my modification to it so that it also says "Good Early Morning" (posted above your post) on vb 3.8.4 PL1, and it works perfectly.
Mind you, I installed my modification (the post above yours), the code difference between my modification of this modification shouldn't be an issue though, I'm pretty sure it'll work perfectly whichever hack you wish to use (the post before yours or the author's original release). Enjoy! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|