Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add seasonal images to your forum Details »»
Add seasonal images to your forum
Version: 1.00, by tgmorris tgmorris is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-20-2005 Last Update: 12-21-2005 Installs: 7
Uses Plugins Template Edits
 
No support by the author.

This is a simple plugin and header template modification which can be added to any template where it made sense if desired.

What this does is use a plugin to determine the month and day and creates a variable that may then be used in templates to decide what, if any, images should be shown. The format of the returned date is 'mmdd'. At the moment I'm using it in my header template to display Christmas and New Years stuff but it can easily be augmented with any holiday images you wish.

Installation

1. Install the attached plugin.
2. Add the following to whatever template you desire and modify it accordingly based on the location of your special images.

HTML Code:
<!-- Holiday stuff -->
<if condition="$header_date_check >= '1220' AND $header_date_check <= '1225'">
        <tr>
          <td style="vertical-align: middle; background: #FFFFFF url(/Images/blinking_lights.gif) right no-repeat" height="18"><img src="$vboptions[cleargifurl]" width="760" height="1" alt="" />
          </td>
        </tr>
</if>
<if condition="$header_date_check == '1231' OR $header_date_check == '0101'">
        <tr>
          <td style="vertical-align: middle; background: #FFFFFF url(/Images/newyear.gif) center no-repeat" height="57"><img src="$vboptions[cleargifurl]" width="760" height="1" alt="" />
          </td>
        </tr>
</if>
<!-- / Holiday stuff -->
Notes

The way the template is currently written it's designed to fit within a table (I have mine under the navbar) but it can easily be modified to work in all situations.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-22-2005, 01:31 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GuaRRand
screenshots?
Not much point really as they'll vary depending on what images are used. If you take a look at my site I'm running the included images until Jan 2nd.
Reply With Quote
  #13  
Old 12-22-2005, 03:26 PM
SpeedyHire SpeedyHire is offline
 
Join Date: Apr 2005
Location: wales
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all looks nice if you have a white background to add it to, if ya got a dark background it looks naff
nice work
Reply With Quote
  #14  
Old 12-22-2005, 03:30 PM
Feckie (Roger)'s Avatar
Feckie (Roger) Feckie (Roger) is offline
 
Join Date: May 2005
Location: Dublin Eire
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting Just Set Mt Pc Date To 1 jan 2006
And there is no Change

Also visited your forum and No Difference

Hmmm
Reply With Quote
  #15  
Old 12-22-2005, 03:37 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Feckie (Roger)
Interesting Just Set Mt Pc Date To 1 jan 2006
And there is no Change

Also visited your forum and No Difference

Hmmm
The date used is based on the time of the server, not your local computer. I did just modify the xml file to at least adjust the server time to your location.
Reply With Quote
  #16  
Old 12-22-2005, 04:17 PM
Feckie (Roger)'s Avatar
Feckie (Roger) Feckie (Roger) is offline
 
Join Date: May 2005
Location: Dublin Eire
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tgmorris
The date used is based on the time of the server, not your local computer. I did just modify the xml file to at least adjust the server time to your location.
That Thought Had Crossed My Mind , But I could not change my Server time as it's in the States..

This Is One Kewl idea, Going to Sit Down And Get The Whole Year Sorted hehe
Reply With Quote
  #17  
Old 11-14-2006, 09:58 PM
simalert simalert is offline
 
Join Date: Jan 2006
Location: UK
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is exactly what I am looking for and I can get it to work on any image except my logo.

Where do I add this to change the logo at the top left of the page?

Thanks
Reply With Quote
  #18  
Old 11-14-2006, 11:32 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It *should* be in the header template.
Reply With Quote
  #19  
Old 11-15-2006, 07:40 AM
simalert simalert is offline
 
Join Date: Jan 2006
Location: UK
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's what I thought, but there doesn't appear to be any reference to the gif file used.

I suspect it's done in the CSS, meaning I won't be able to do this I don't think. I am not using a standard style.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10: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.04667 seconds
  • Memory Usage 2,289KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete