vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - Mini calendar on forumhome (https://vborg.vbsupport.ru/showthread.php?t=146534)

basilrath 05-04-2007 10:00 PM

Mini calendar on forumhome
 
Just a little answer to a mini calendar on your forum home




to add calendar on forumhome pages........

1...download the calendar zip

2...extract and upload the whole folder to your forum root (keep structure)
ie www.yoursite.com/forums/calendar

3...Then add the iframe code below to place where you would like, works a charm

<iframe name="gToday:calendar:" id="gToday:calendar:"src="http://www.yoursite.com/calendar/cal.htm" scrolling="no" frameborder="0"></iframe>
-----------------------------------------------------------------------------

the size is changeble in the calendar.js, height and width. etc

you can view on here... http://www.recommenditall.com/thebig/forums/portal.php

works pretty well as you see..............

jderouen 05-06-2007 08:45 PM

This is great! One question, though - how do I change the width of the calendar? I need it to be a little less wide in order to fit it where I want it to go.

Thanks!
Joe

basilrath 05-07-2007 01:45 PM

Edit the the calendar.js

and find this.............

var giCellWidth=16; // calendar cell width; if set to -1, it'll be auto-adjusted so as to ensure the width of the entire calendar fits in with the calendar's direct parent tag. NN4 doesn't support -1.
var giCellHeight=16; // calendar cell height;
var giHeadHeight=16; // calendar head row height;
var giWeekWidth=16; // calendar week-number-column width;

Change the 16 to whatever you need ...........and remember to adjust the width and hieght etc

Ted Clore 05-07-2007 05:22 PM

3...Then add the iframe code below to place where you would like, works a charm

Huh? I have no idea "where you would like" would be. Is this a file some where?

You need to make it simple for us simple folks. Thank you.

basilrath 05-07-2007 05:59 PM

my apolagies Ted...........

the iframe code below (copy and put it into your template but add your site path where it says "yoursite")
<iframe name="gToday:calendar:" id="gToday:calendar:"src="http://www.yoursite.com/calendar/cal.htm" scrolling="no" frameborder="0"></iframe>

you add to the template your are using ie

if you are adding the calendar to the index page then edit your "Forumhome" Template and it will appear on the forumhome page.(where it appears is up to yourself )

If you want it elsewhere ie side bar then add it to the sidebar code.

if you want it somewhere on your forum let me know where and ill help or add for you.

Ted Clore 05-07-2007 06:20 PM

Quote:

Originally Posted by basilrath (Post 1243152)
my apolagies Ted...........

the iframe code below (copy and put it into your template but add your site path where it says "yoursite")
<iframe name="gToday:calendar:" id="gToday:calendar:"src="http://www.yoursite.com/calendar/cal.htm" scrolling="no" frameborder="0"></iframe>

you add to the template your are using ie

if you are adding the calendar to the index page then edit your "Forumhome" Template and it will appear on the forumhome page.(where it appears is up to yourself )

If you want it elsewhere ie side bar then add it to the sidebar code.

if you want it somewhere on your forum let me know where and ill help or add for you.

No apologies needed. Thank you for your quick response, it was exactly what I needed to get me on the right track. I have now added the little calander and will try it out.

BTW, I figured out how to insert it into the Ultimate Side Columns hack with the following in one of the Blocks.

<iframe name="gToday:calendar:" id="gToday:calendar:"src="/forums/calendar/cal.htm" scrolling="no" frameborder="0"></iframe>

Now I have it in the side along with some of the links and other information on my site.

SEE HERE

Thanks again.

Pete C 12-30-2007 07:10 PM

Well I've installed this and inserted it into the Right Side Column (as released here by Kerry-Anne). It works fine and it's (almost) what I was looking for. The only problem I have is that I need to change the colours to blend it into the style I'm using it with. I tried uploading it into the relevant style folder and changing the path accordingly, but it still appears in the blue & white as shown on the demo at Big Forums.

The sizing is perfect and no changes were needed there, just that I need to vary the colours. Any clues on whether this can be done and what to edit would be appreciated. If it's not possible, maybe someone could point me to a similar calendar mod where the colours are changeable?

Thanks in anticipation . . .

basilrath 12-30-2007 10:52 PM

The colors are totally changeable within the php file..........not js..........you will see all the color codes as html colors which you can match to your css

Pete C 12-30-2007 11:08 PM

Thanks for your quick and extremely helpful reply basilrath. I'd been looking through the js and couldn't figure what to change.

I'll make a copy of the php file and get to changing the colours. Now I know how to do that it's turned a good little mod into a great little mod - thanks again! :)

kharam 01-06-2011 04:50 AM

Does its also work in vB 4.0.1 ?


All times are GMT. The time now is 03:29 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.01058 seconds
  • Memory Usage 1,737KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete