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)

chkdgate 03-02-2007 05:28 PM

Has anyone tried it with 3.6.5 yet?

EnIgMa1234 03-04-2007 02:49 PM

it works with 3.6.5

EnIgMa1234 03-04-2007 03:36 PM

i have finally gotten around to release the new version

https://vborg.vbsupport.ru/showthread.php?t=141120

karabaja3 05-08-2008 03:40 PM

anything for 3.7.0.?

Kinneas 05-09-2008 10:13 AM

I have modified this for 3.7 :)

Find:

PHP Code:

<strong><phrase 1="$bbuserinfo[username]2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br /> 

Replace with:

PHP Code:

<strong><phrase 1="$bbuserinfo[username]2="member.php?$session[sessionurl]u=$bbuserinfo[userid]"><script type="text/javascript">
var 
= 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 /> 

You also need to edit the Phrases for Goodmorning_x, Goodafternoon_x and Goodevening_x, like so

Quote:

Good Morning, {1}.
change to
Quote:

Good Morning, <a href={2}>{1}</a>.
Obviously repeat this with the other 2.

ArjanU 06-07-2008 07:54 AM

Is there an option to make:

Goodmorning
Goodafternoon
Goodevening
Goodnight?

Here in Europe we use Goodmorning from 06.00AM till 12.00, Goodafternoon from 12.00 till 06.00PM, Goodevening from 06.00PM till 0.00AM and Goodnight from 0.00 till 06.00AM

When it is 0.05AM there is standing Goodmorning, it is better here to say Goodnight :)

Thanks!

Welshy2008 08-08-2008 04:36 PM

Brilliant - Thank You.

Welshy2008 08-08-2008 06:02 PM

Slight Problem - Since adding this Hack - I have lost the "email" thingy under the usernames...

Please see attachment....

Welshy2008 08-08-2008 06:10 PM

This has only happened on my account (Admin) and another account (Super Admin).

Welshy2008 08-09-2008 09:24 AM

It has re-appeared on the Admin account. But NOT on the SuperAdmin account.

Does anyone know what is going on?


All times are GMT. The time now is 12:50 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.02418 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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