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 - CWMOFH - Customisable Welcome Message On Forumhome (https://vborg.vbsupport.ru/showthread.php?t=141120)

EnIgMa1234 03-03-2007 10:00 PM

CWMOFH - Customisable Welcome Message On Forumhome
 
Description - This Allows You To Change The Welcome Message At Differant Times Of The Day - See Screenshots

DONT COPY THIS HACK OR CHANGE WITHOUT PERMISSION

Features:
  • VBoptions
  • 3 Messages
  • 3 Times
  • Images
  • And More...

Install:
Find In Navbar:
Code:

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
Replace With:
Code:

<strong><phrase 1="$bbuserinfo[username]"><script type="text/javascript">
var d = new Date()
var time = d.getHours()


if (time < 12)
{
document.write("<b><img src=\"$vboptions[imgurl_1]\" /> $vboptions[text_1]  $vbphrase[welcome_x]</b>");
}
else if (time > 12 && time < 18)
{
document.write("<b><img src=\"$vboptions[imgurl_2]\" /> $vboptions[text_2]  $vbphrase[welcome_x]</b>");
}
else
{
document.write("<b><img src=\"$vboptions[imgurl_3]\" /> $vboptions[text_3]  $vbphrase[welcome_x]</b>")
}
</script></strong></phrase>

Replace The Red With Your Time In 24 Hour Clock e.g 23 = 11:00PM

Then:
Install Product

Then:
Change Options

History:
V.1- Initial Release

Remember To Click Install

Instructions File Coming Soon

This Isnt Fully Done Yet

projectego 03-04-2007 03:40 PM

Woo-hoo! Thanks very much, EnIgMa1234. I'll go ahead and be the first to install this. ;)

EnIgMa1234 03-04-2007 03:41 PM

thanks a lot steve :D

synn 03-04-2007 06:31 PM

Great mod just what I've been looking for! Is it possible so that I can add a message based on day of the week...???

For example For Fri: Thank GOD it's Friday! Or The weekend's almost here!...you get the idea...

That would be great!

Tralala 03-05-2007 06:56 PM

Quote:

Originally Posted by synn (Post 1195662)
Great mod just what I've been looking for! Is it possible so that I can add a message based on day of the week...???

For example For Fri: Thank GOD it's Friday! Or The weekend's almost here!...you get the idea...

Or how about day/month?

For example for December 25: Merry Christmas!

Tralala 03-07-2007 03:27 PM

Where are the images?

EnIgMa1234 03-11-2007 03:59 PM

i will do more updates as soon as i get my own comp back

rjmjr69 03-13-2007 04:44 AM

Wow will this work with the Good Morning Good afternoon hack? Sorta would be redundant no? Great Idea the suggestions are good ones hope to see them implemented. Will keep track

ZomgStuff 03-13-2007 11:14 AM

Reserved, thx!

da420 03-13-2007 07:01 PM

Quote:

Originally Posted by EnIgMa1234 (Post 1200904)
i will do more updates as soon as i get my own comp back

That would be sweet, especially days of the week.


All times are GMT. The time now is 08:59 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.01243 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (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