vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=284858

Mini-Calendar in Header by BOP5 (VB 4.x.x)
by BirdOPrey5
24 Jun 2012 14:47

4 Attachment(s)
Brought to you by BirdOPrey5
www.Qapla.com



http://www.vbulletin.org/forum/attac...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 24 Jun 2012 14:48

Reserved.

Nirjonadda 24 Jun 2012 14:51

You can add with Time?

BirdOPrey5 24 Jun 2012 14:55

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For time to show in place of the day of the week.

ProFifaLeagues 24 Jun 2012 15:02

Works superb on 4.2 thank you

deverill2010 24 Jun 2012 15:18

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

Nirjonadda 24 Jun 2012 15:22

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

Taurus1 24 Jun 2012 15:32

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

New Joe 24 Jun 2012 15:38

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 24 Jun 2012 15:40

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?

RobbieZ 24 Jun 2012 15:41

Then again if you have a notice it'll knock that down.. hmmm. nevermind

Mr_Running 24 Jun 2012 15:42

Yes, Awesome

Usergroup permissions?

Prefer not to display to guest :)

BirdOPrey5 24 Jun 2012 15:54

Quote:

Originally Posted by Nirjonadda (Post 2342524)
Residence Time not working correctly? Its Showing Up 8:20PM When Current local time is 4:20PM

Are you sure your timezone is set correctly? Are you using the setting for User's Time? If so it should match the time at the bottom of every page- "The time now is 01:58 PM" for example.

Quote:

Originally Posted by Mr_Running (Post 2342529)
Yes, Awesome

Usergroup permissions?

Prefer not to display to guest :)

I will add that at some point. :up:

deverill2010 24 Jun 2012 22:41

Thats a shame, I have just had to unistal it. Apparently my new skin doesn't have that ad location..

BirdOPrey5 24 Jun 2012 23:18

Quote:

Originally Posted by deverill2010 (Post 2342624)
Thats a shame, I have just had to unistal it. Apparently my new skin doesn't have that ad location..

You just need to add this code to your header template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In the default VB style it is only 2 lines up from the very end of the header template- above the following code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



All times are GMT. The time now is 02:37.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.