vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Mini-Calendar in Header by BOP5 (VB 4.x.x) (https://vborg.vbsupport.ru/showthread.php?t=284858)

BirdOPrey5 06-23-2012 10:00 PM

Mini-Calendar in Header by BOP5 (VB 4.x.x)
 
1 Attachment(s)
Brought to you by BirdOPrey5
www.Qapla.com



https://vborg.vbsupport.ru/attachmen...1&d=1340545531

Live Demo: Mini-Calendar at Qapla.com

This mod adds a small "mini-calendar" on the header of every page, next to the logo image.

It uses the built in "ad location" called global_header1. If you use an ad in that spot (most people don't) you will need to move it prior to enabling this mod else it will not show.

If the Calendar doesn't show and you're on a custom style it is likely the style does not have the ad location coded in. See post #15 in this thread for a fix

There are settings but it is setup to work immediately after installing. Most settings should only be adjusted by advanced users. The font sizes and locations are setup for English day and month names- you may need to manually edit the headcalendar_bop5 template manually for it to look right in other languages.

You can use it as a link to the default vBulletin calendar (default behavior) or not. Also you can choose to disable it in specific styles if need be. Finally you can choose whether it displays the date based off the server's timezone or the user's timezone. (Default is user's timezone.)

New in Version 1.1 - Option to disable the display of the mini-calendar by usergroup. (Primary or secondary will work.)

I don't anticipate there will be much further development on this mod, it was just a simple thing I put together for one of my forums I figured like sharing- it already does everything I can think it needs to do, but if you have a suggestion that adds to the value I will consider it.

Each <div> has a unique id so you can use additional.css to make changes as needed.

You can see the default calendar is "blue" on top. Various other alternative color options are included in the download (red, green, yellow, and more...)

Tested as far back as VB 4.0.8 and as recent as 4.2.0 and expected to work on all 4.x versions.

Please "Mark as Installed" if you use this. :)
Donations Always Appreciated. :up:

BirdOPrey5 06-24-2012 12:48 PM

Reserved.

Nirjonadda 06-24-2012 12:51 PM

You can add with Time?

BirdOPrey5 06-24-2012 12:55 PM

No. It is designed as a calendar, not a clock.

That said, you could edit the "weekday" option in settings to show the time instead of the day of week if you really wanted.

Edit- you can change the setting PHP date() Day of Week to:
Code:

g:i a
For time to show in place of the day of the week.

ProFifaLeagues 06-24-2012 01:02 PM

Works superb on 4.2 thank you

deverill2010 06-24-2012 01:18 PM

Very cute BOP, will have it installed later! :D

Nirjonadda 06-24-2012 01:22 PM

Residence Time not working correctly? Its Showing Up 8:20PM When Current local time is 4:20PM

Taurus1 06-24-2012 01:32 PM

Very nice! If you don't use adblock.......lol

New Joe 06-24-2012 01:38 PM

Any way to change the color?

edit;
I have just read this

Quote:

You can see the default calendar is "blue" on top. Various other alternative color options are included in the download (red, green, yellow, and more...)
As you were

RobbieZ 06-24-2012 01:40 PM

Sexy! Looks ok when your using a left handed banner, when you get a full length then it looks outta place, any chance of it going to the right of bitfields?


All times are GMT. The time now is 04:18 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.01258 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)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