vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Time Based Greeting (https://vborg.vbsupport.ru/showthread.php?t=244519)

Dragonsys 06-12-2010 10:00 PM

Time Based Greeting
 
1 Attachment(s)
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

Dragonsys 06-13-2010 04:53 AM

Changelog:

1.0.0 - Initial Release
1.0.1 - Fixed a small bug which did not allow the mod to actually display :o

merk_aus 06-13-2010 05:16 AM

Thanks looks good kinda like vbenhancer.com product though - before his website disappeared.

Boofo 06-13-2010 05:50 AM

It would have been nice to be asked to use those, though. ;)

Dragonsys 06-13-2010 07:19 AM

Quote:

Originally Posted by Boofo (Post 2052831)
It would have been nice to be asked to use those, though. ;)

Sorry about that. I was looking at your old mod and saw it had been moved to the graveyard, and the files were removed. I was going to send you a PM, but it slipped my mind :erm:
I can change/remove it if you like.

Boofo 06-13-2010 07:39 AM

You are more than welcome to go ahead and use them. I plan on releasing the Ultimate Navbar for vb4 one of these days when I get around to it. Until then, I'll just use yours. ;)

ellinofatsa 06-13-2010 01:07 PM

works fine on 4,03

thankssssssssssss

Bouncer222 06-13-2010 01:39 PM

Love it!
You can see it in action here if you register... www.brotherhoodofgamers.com

Charlie98902 06-13-2010 03:57 PM

Is there any conflict using this with Paul M's uread post mod? This was an issue with the 3.x series.

Dragonsys 06-13-2010 06:14 PM

Quote:

Originally Posted by Charlie98902 (Post 2052999)
Is there any conflict using this with Paul M's uread post mod? This was an issue with the 3.x series.

Not that I am aware of, but I do not use that mod by Paul M, so I cannot say for 100%. I believe, the conflict in 3.x was because of template changes, this mode just does a phase replacement.


All times are GMT. The time now is 01:26 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.01049 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete