vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Goodmorning/Goodafternoon/Goodevening Username (https://vborg.vbsupport.ru/showthread.php?t=139312)

EnIgMa1234 02-12-2007 10:00 PM

Goodmorning/Goodafternoon/Goodevening Username
 
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

EnIgMa1234 02-13-2007 03:33 PM

Reserved

Reeve of shinra 02-13-2007 04:03 PM

This is cool. Thanks for sharing!

EnIgMa1234 02-13-2007 04:04 PM

no problem. thanks for liking it :p

Noonster 02-13-2007 04:14 PM

Can you make is only say good morning from 12am but before 12pm and then good afternoon from then till 6pm, then 6pm to 12am it would say good evening.

Making the full cycle??

EnIgMa1234 02-13-2007 04:15 PM

yes i will release that soon in the next version

EnIgMa1234 02-13-2007 04:42 PM

Quote:

Originally Posted by Noonster (Post 1181613)
Can you make is only say good morning from 12am but before 12pm and then good afternoon from then till 6pm, then 6pm to 12am it would say good evening.

Making the full cycle??

its ready now

taydu 02-13-2007 06:18 PM

which time does it use, the server time or the user time???

taydu 02-13-2007 06:30 PM

:( not working for me, i'm using v.1.1

mamashid 02-13-2007 06:34 PM

installed great! :)


All times are GMT. The time now is 09:27 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.01104 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
  • (3)bbcode_code_printable
  • (1)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