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-29-2012 11:19 PM

Quote:

Originally Posted by Mr_Running (Post 2343730)
User Group Permissions


I am drooling :up: with every passing day. :)

LOL... Here you go, version 1.1 released. :up:

Mr_Running 06-30-2012 12:31 AM

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?

BirdOPrey5 06-30-2012 12:42 AM

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
and change them to:

Code:

!in_array($vbulletin->userinfo['usergroupid'], explode(",", $vbulletin->options['bop5hc_groups'])) AND
Then save the plugins.

Mr_Running 06-30-2012 02:02 AM

Cheers, :)

WendM 07-11-2012 10:07 AM

this is excellent, Joe! :)

How can I enlarge it , please?

BirdOPrey5 07-11-2012 11:04 AM

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 {
  height:90px !important;
  width:90px !important;
  background-size: 100%;
}

That will make the calendar background image 90x90 instead of 60x60, but you will still need to do custom code for each of the text lines including the new custom widths and new font sizes, and new spacing in pixels (top values in CSS.)

BirdOPrey5 07-11-2012 11:10 AM

Here is the complete code to go to 80x80... you can customize the font sizes as you want.

Code:

#bop5headcalmain {
  height:80px !important;
  width:80px !important;
  background-size: 100%;
}
#bop5headcalmonth {
  top:18px !important;
  width:80px !important;
  font-size: 8pt !important;
}
#bop5headcalweek {
  top:33px !important;
  width:80px !important;
  font-size: 8pt !important;
}
#bop5headcalday {
  top:45px !important;
  width:80px !important;
}


WendM 07-11-2012 12:02 PM

many thanks, Joe! :) One more thing...how can I move it down a notch, please?

WendM 07-11-2012 01:45 PM

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

BirdOPrey5 07-11-2012 03:08 PM

Quote:

Originally Posted by WendM (Post 2346968)
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

You can also add it to additional.css so you don't have to edit the template if you want:

Code:

#bop5headcalmain {
  top:20px;
}

In general it's good to avoid editing templates because they will need to be reverted if the mod is ever upgraded and changes made to the template.


All times are GMT. The time now is 01:41 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.01072 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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