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)
-   -   Forum Home Enhancements - Js header greeting (https://vborg.vbsupport.ru/showthread.php?t=250300)

johncosta71292 09-10-2010 10:00 PM

Js header greeting
 
1 Attachment(s)
Basically this script will either say:

Good morning | time is between 4am and 12
Good afternoon | time between 12 and 20
Good evening | ime between 20 and 4am

go to "header" and search for:
Code:

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
Change it to:
Code:

<li class="welcomelink"><script type="text/javascript" src="clientscript/welcome.js"></script> {vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member,  {vb:raw bbuserinfo}}}</li>
Go to Search In Phrases and search for:
Code:

Welcome, <a href="{2}">{1}</a>
Change it to:
Code:

, <a href="{2}">{1}</a>
add the welcome.js to the "clientscript/ " folder and your done.

Hope it works for you!

Alec W 09-12-2010 05:10 PM

Thanks

synseal 09-13-2010 08:28 AM

Hi, is there a difference with your mod and these other 2,

https://vborg.vbsupport.ru/showthrea...light=greeting

https://vborg.vbsupport.ru/showthrea...light=greeting

max2008 09-13-2010 10:07 AM

thanks alot for the MOD,
installed , and working perfectly on VB 4.0.3

Lostboyfan 08-11-2011 09:01 PM

Tagged for later. I will for sure use this on my site.

victorvu 08-12-2011 04:26 AM

Thanks for the mod. It is lovely.

Victor:up:

alghzil 05-15-2012 12:47 PM

1 Attachment(s)
very nice

for arabic users use this file

xixxon 05-19-2012 12:19 AM

<a href="https://tinyurl.com/greetingsv2b" target="_blank">http://tinyurl.com/greetingsv2b</a>
Oh my god, since 2009


All times are GMT. The time now is 08:39 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.01060 seconds
  • Memory Usage 1,720KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete