Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Time Based Greeting Details »»
Time Based Greeting
Version: 1.0.1, by Dragonsys Dragonsys is offline
Developer Last Online: Apr 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 06-12-2010 Last Update: 06-14-2010 Installs: 71
Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

A small mod which will change the default greeting (Welcome) to one based upon the time of day.

This mod is based upon:
* Time Greeting (Good Morning / Afternoon / Evening, Username) by Kinneas
* Ultimate Navbar for vB3.7 by Boofo

I updated Kinneas' mod for vb4 and added a few extra greetings based upon Boofo's mod.
Everything uses phrases (xxx_x_link_y).

Current Time & Phrase list:
  • 12:00 am - 1:59 am - Up late, aren't we, Dragonsys?
  • 2:00 am - 3:59 am - Having trouble sleeping, Dragonsys?
  • 4:00 am - 5:29 am - Still can't sleep, Dragonsys?
  • 5:39 am - 6:59 am - Aren't you the early bird, Dragonsys?
  • 7:00 am - 11:59 am - Good Morning, Dragonsys.
  • 12:00 pm - 12:59 pm - Enjoying your lunch break, Dragonsys?
  • 1: 00 pm - 4:59 pm - Good Afternoon, Dragonsys.
  • 5:00 pm - 5:59 pm - What's for dinner, Dragonsys?
  • 6:00 pm - 9:59 pm - Good Evening, Dragonsys.
  • 10:00 pm - 11:59 pm - Shouldn't you be going to bed soon, Dragonsys?

Arabic Translation by Dr.osamA

Download Now

File Type: xml product-timebasedgreeting.xml (4.0 KB, 269 views)
File Type: xml product-timebasedgreeting-Arabic.xml (4.0 KB, 18 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
victorvu

Comments
  #12  
Old 06-13-2010, 06:47 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks I'll test it on my test forum this week. I think you are right on that too.
Reply With Quote
  #13  
Old 06-15-2010, 01:34 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work Dragonsys

thanxxx

installed + 5 stars + translate to Arabic (if you don't mind )

plzzzz be nice and add Arabic to 1st post
Attached Files
File Type: xml product-timebasedgreeting-Arabic.xml (4.0 KB, 6 views)
Reply With Quote
  #14  
Old 06-16-2010, 04:55 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great ...thanks for this cool little add on ..installed
Reply With Quote
  #15  
Old 06-16-2010, 06:47 PM
denman75 denman75 is offline
 
Join Date: Aug 2006
Location: Netherlands
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

removed ,messages from the evening are show able in the morning etc etc
time is set properly on the server also
Reply With Quote
  #16  
Old 06-18-2010, 05:13 AM
CybaGirl CybaGirl is offline
 
Join Date: Jun 2010
Location: Sydney Australia
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME!

Thank you very much just installed it and is working perfectly on v.4.0.3!

:up:
Reply With Quote
  #17  
Old 06-18-2010, 01:16 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by denman75 View Post
removed ,messages from the evening are show able in the morning etc etc
time is set properly on the server also
This mod uses the server time, not the user's time zone offset. Boofo has released his Ultimate Navbar greeting for vb4 which corrects this very issue. You can find it here - https://vborg.vbsupport.ru/showthread.php?t=244573
Reply With Quote
  #18  
Old 06-22-2010, 02:56 AM
customcolor customcolor is offline
 
Join Date: Mar 2010
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works good...but its off alittle on my pc...i have the time set right on my settings for the forum but at 10:54 i still get "good evening"

do i need to change some bulletin settings for the right time? its still fine but just wondering
Reply With Quote
  #19  
Old 06-22-2010, 03:00 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by customcolor View Post
works good...but its off alittle on my pc...i have the time set right on my settings for the forum but at 10:54 i still get "good evening"

do i need to change some bulletin settings for the right time? its still fine but just wondering
Like Dragonsys said, this is based on the server time. There is no way around that as all users will see what the server time is set up for, no matter where they are from.
Reply With Quote
  #20  
Old 06-22-2010, 03:39 AM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Like Dragonsys said, this is based on the server time. There is no way around that as all users will see what the server time is set up for, no matter where they are from.
Correct. This is not affected by vBulletin Time or what timezone the user has selected.
Reply With Quote
  #21  
Old 06-22-2010, 05:27 AM
customcolor customcolor is offline
 
Join Date: Mar 2010
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks!!

still its close
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07909 seconds
  • Memory Usage 2,328KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete