![]() |
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: |
Reserved.
|
You can add with Time?
|
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 |
Works superb on 4.2 thank you
|
Very cute BOP, will have it installed later! :D
|
Residence Time not working correctly? Its Showing Up 8:20PM When Current local time is 4:20PM
|
Very nice! If you don't use adblock.......lol
|
Any way to change the color?
edit; I have just read this Quote:
|
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?
|
Then again if you have a notice it'll knock that down.. hmmm. nevermind
|
Yes, Awesome
Usergroup permissions? Prefer not to display to guest :) |
Quote:
Quote:
|
Thats a shame, I have just had to unistal it. Apparently my new skin doesn't have that ad location..
|
Quote:
Code:
<div class="ad_global_header"> Code:
<hr /> |
Is there any possible to connect with google calendar to show todays event also with the date?
|
no.
|
Cute. I like it. Nice work
|
User Group Permissions
Quote:
|
1 Attachment(s)
Installed!
Thanks, I like it! To get it to look the way I preferred I did some small changes and used just this portion of the code. Code:
{vb:raw ad_location.global_header1} |
Quote:
|
Thank You for release 1.1 :)
Works but maybe one slight adjustment if a user is part of more than one usergroup who does not have permission it will not display. How about using the Primary Users group? |
To switch it to use primary groups go to Admin CP -> Plugin Manager
Edit the TWO plugins Calendar Setup and Cache Header Calendar... In BOTH find the line: Code:
!is_member_of($vbulletin->userinfo, explode(",", $vbulletin->options['bop5hc_groups'])) AND Code:
!in_array($vbulletin->userinfo['usergroupid'], explode(",", $vbulletin->options['bop5hc_groups'])) AND |
Cheers, :)
|
this is excellent, Joe! :)
How can I enlarge it , please? |
The calendar background image is 60 x 60 pixels so enlarging it will show distortions in the image- and this was never designed to be enlarged.
But if you want to try it can all be done by adding code to additional.css - for example add this: Code:
#bop5headcalmain { |
Here is the complete code to go to 80x80... you can customize the font sizes as you want.
Code:
#bop5headcalmain { |
many thanks, Joe! :) One more thing...how can I move it down a notch, please?
|
OK, for those who want to know how to push the image down to their own height, then do this:
Open Template: headcalendar_bop5 find: position:relative; then next to it place this: top:20px; adjust the number to suit your own position! demo here: http://www.hottopowners.co.uk/forum.php |
Quote:
Code:
#bop5headcalmain { |
Installed and tested under v4.1.3 ...
Didn't work on our site .. un-installed ... I think our custom style and logo is getting in the way as it worked with default style of vBulletin ... :up: Thanks for your efforts ... :) Regards, Doug |
Probably this:
Quote:
|
Does not work on a Royal Flush Skin.
|
The skin must be missing the ad location in the header.
See Post #15 to put the Ad Location into your header: https://vborg.vbsupport.ru/showpost....1&postcount=15 |
Great...thank you...
|
Cool little addon for the members :)
I have one little bug tho, when i switch to french, it doesn't show the right info :( I guess i should had the extra language options?!? Tks bud |
The names of the days and months are from the php install, not phrases in vbulletin. I'm not sure what the PHP date() function offers in terms of different languages, I think it should show for whatever language php is installed under.
http://php.net/manual/en/function.date.php |
BirdOPrey5, any option to makes this go in a forumblock sidebar? I think it would be super awesome!
|
It wasn't something I was planning. I will keep it in the back of my mind if I get bored one day.
|
1 Attachment(s)
Quote:
|
All times are GMT. The time now is 07:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|