WHat is the Calendar used in this site?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   WHat is the Calendar used in this site?
Kilim
CZ Newbie
Kilim has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Dec 06, 2004
0.00 posts per day
Posts: 15
Points: 1,581
   
Just liek the title says.
Wondering what calendar is used for this site?
Thinking of getting a new calendar mod for my site and yours looks pretty good.
Is it the MyCalendar mod?

And how about the block?

Really would like to know where to get that calendar mod and block icon_biggrin.gif



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
I think i got it from [ Register or login to view links on this board. ] but I don't recall.

The block is a javascript file I found on the net.


<!-- Begin
//----------------------------------------------------------------
//----------------------------------------------------------------
//----------------------------------------------------------------
//CALENDAR SCRIPT TO LINK TO CCS CALENAD DAY SEARCH
//BY STEVEN BROUSSARD
//RPC MANAGER
//SPBROUSSARD@LAFAYETTE.GANNETT.COM
//
//INSTALLATION:
//SIMPLY PLACE THE FOLLOWING LINE WHERE YOU WANT THE CALENDAY TO SHOW ON YOUR PAGE
//<script src="http://www.YOURDOMAIN.com/proto/scripts/entertainmentcalendar.js"></script>
//AND PLACE THE ENTERTAINMENT>JS SCRIPT INTO A SCRIPTS DIRECTORY ON THE ROOT OF YOUR WEB SERVER
//
//YOU MAY DEFINE THE VARIABLES BELOW.
//DO NOT EDIT ANY OF THE CODE BELOW THE USER DEFINED VARIABLES
//----------------------------------------------------------------
//----------------------------------------------------------------
//----------------------------------------------------------------

// DECLARE USER DEFINED VARIABLES

var strResultsURL = 'http:\/\/www.codezwiz.com/modules.php?name=Forums&file=events&'; //URL to results.asp



var strCalendarTitle = 'Events Calendar:'; //calendar title
var intWeeksToShow = 5; //number of weeks to display

// DECLARE DISPLAY DEFINED VARIABLES
var intOutsideBorder = 0;
var intOutsideBorderColor = "#000000";
var intOutsideCellSpacing = 0;
var intOutsideCellPadding = 0;
var intInsideBorder = 0;
var intInsideBorderColor = "#FFFFFF";
var intInsideCellSpacing = 1;
var intInsideCellPadding = 1;
var intDaySqareWidth = 5;
var strTitleTDSetting = 'class="TDWHITE"';
var strTitleHeadingFontSetting = 'class="FORMHEADER"';
var strDayHeadingTDSetting = 'class="TDDARKBLUE"';
var strDayHeadingFontSetting = 'class="FORMHEADER"';
var strBlankDayTDSetting = 'class="TDWHITE"';
var strRegularDayTDSetting = 'class="TDLIGHTBLUE"';
var strRegularDayFontSetting = 'class="FORMHEADER"';
var strTodayOutsideTDSetting = 'class="color:#000000"';
var strTodayInsideTDSetting = 'class="color:#000000"';
var strTodayFontSetting = 'class="FORMHEADERWHITE"';
var intTodayCellPadding = 0;
var intTodayBorder = 0;

//----------------------------------------------------------------
//----------------------------------------------------------------
//----------------------------------------------------------------
//DO NOT EDIT ANYTHING B ELOW THIS POINT
//----------------------------------------------------------------
//----------------------------------------------------------------
//----------------------------------------------------------------

//  DECLARE AND INITIALIZE CALENDAR VARIABLES
var now = new Date();
var today = now.getDate();
var month = now.getMonth();
var Calendar = now;
var day_of_week = new Array('S','M','T','W','T','F','S');
var month_of_year = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var cal;    // Used for printing

// START CALENDAR ON TODAY
Calendar.setDate(now.getDate());

// SET START MONTH
var strStartMonth = month_of_year[Calendar.getMonth()]

//FIND AND SET END MONTH
for(index=0; index < ((intWeeksToShow*7)-now.getDay()); index++)
   Calendar.setDate(Calendar.getDate()+1);
   var strEndMonth = month_of_year[Calendar.getMonth()]

if (strStartMonth == strEndMonth)
   var strSubTitle = strStartMonth;
else
   var strSubTitle = strStartMonth + ' - ' + strEndMonth;

// THIS SECTION ADDED BY PETER LUNDQUIST ON MAR 12 2004 TO CORRECT PROBLEM WITH MOZILLA'S CONVERSION OF YEAR. In Mozilla getYear(); returns 104 instead of 2004

// detect Mozilla for Year
    var agt=navigator.userAgent.toLowerCase();
    var is_gecko = (agt.indexOf('gecko') != -1);
    var is_safari = (agt.indexOf('safari') != -1);
   
// SET theRightYear based on browser version
var theRightYear = Calendar.getYear();
if (is_gecko||is_safari){theRightYear = theRightYear + 1900};

// RESTART CALENDAR ON TODAY
now = new Date();
Calendar = now;
Calendar.setDate(now.getDate());


cal = '<TABLE BORDER=' + intInsideBorder + ' CELLSPACING=' + intInsideCellSpacing + ' CELLPADDING=' + intInsideCellPadding + ' BORDERCOLOR=' + intInsideBorderColor + ' WIDTH=130><TR>';
cal += '<TD COLSPAN="' + 7 + '" ' + strTitleTDSetting + '><CENTER><B><font ' + strTitleHeadingFontSetting + '>';
cal += strSubTitle  +  '</FONT></B></CENTER></TD></TR>';
cal += '<TR>';

// LOOPS FOR EACH DAY OF WEEK
for(index=0; index < 7; index++) {
   // BOLD TODAY'S DAY OF WEEK
   if(Calendar.getDay() == index)
      cal += '<TD WIDTH="' + intDaySqareWidth + '" ' + strDayHeadingTDSetting + '><CENTER><B><font style="color:#FFFFFF"' + strDayHeadingFontSetting + '>' + day_of_week[index] + '</FONT></B></CENTER></TD>';
   // PRINTS DAY
   else
      cal += '<TD WIDTH="' + intDaySqareWidth + '" ' + strDayHeadingTDSetting + '><CENTER><B><font style="color:#FFFFFF"' + strDayHeadingFontSetting + '>' + day_of_week[index] + '</FONT></B></CENTER></TD>';
}
cal += '</CENTER></TR>';
cal += '<TR>';

// FILL IN BLANK GAPS PAST DAYS
for(index=0; index < now.getDay(); index++)
   cal += '<TD WIDTH="' + intDaySqareWidth + '" ' + strBlankDayTDSetting + '></CENTER></TD>';
   
var i = index; //used to count the number of days to subtract from the total days shown
   
for(index=0; index < ((intWeeksToShow*7)-i); index++) {
   if (Calendar.getDay() == 0) {
         cal += '<TR>';
   }

   // HIGHLIGHT TODAY'S DATE
   if((Calendar.getDate() == today) && (Calendar.getMonth() == month))
   cal += '<TD ALIGN=CENTER WIDTH="' + intDaySqareWidth + '" ' + strTodayOutsideTDSetting + '><TABLE CELLSPACING=' + intTodayCellPadding + ' BORDER=' + intTodayBorder + '><TR><TD WIDTH="' + intDaySqareWidth + '" ' + strTodayInsideTDSetting + '><B><CENTER><font ' + strTodayFontSetting + '><A CLASS=NAV HREF="' + strResultsURL + 'cl_m=' + (Calendar.getMonth()+1) + '&cl_y=' + theRightYear + '" class="FORMHEADERWHITE">' + Calendar.getDate() + '</a></FONT></CENTER></TD></TR></TABLE></B></CENTER></TD>';

   // PRINTS DAY
   else
   cal += '<TD WIDTH="' + intDaySqareWidth + '" ' + strRegularDayTDSetting + '><CENTER><font ' + strRegularDayFontSetting + '><A CLASS=NAV HREF="' + strResultsURL + 'cl_m=' + (Calendar.getMonth()+1) + '&cl_y=' + theRightYear + '">' + Calendar.getDate() + '</a></FONT></CENTER></TD>';

   if (Calendar.getDay() == 7) {
         cal += '</TR>';
   }
   Calendar.setDate(Calendar.getDate()+1);
}

// SECTION BELOW ADDED BY JESSE PALMER PER FT. COLLINS REQUEST
//cal += '<TR>';
//cal += '<TD COLSPAN="7">';
//cal += '<font size="1">Click a date for list of events.</font>';
//cal += '</TD>';
//cal += '</TR>';
cal += '</TABLE>';

document.write(cal);
//  End -->




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: WHat is the Calendar used in this site?
Kilim
CZ Newbie
Kilim has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Dec 06, 2004
0.00 posts per day
Posts: 15
Points: 1,581
   
Was it MyCalendar by chance?
Looks soemthing like it and just wondering icon_biggrin.gif
I tought it was not working due to changes in bbtonuke v2.0.10+.

I think maybe the Adv. MyCalendar mod part was the one affected only.



Back to top Reply with quote
#4   re: WHat is the Calendar used in this site?
Kabilos
CZ Newbie
Kabilos has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jan 06, 2006
0.00 posts per day
Posts: 4
Points: 358
   
Not that I want to sound lke a total noob, but do I take the code and put it into the block creator or ? . I have Dreamweave 8 and it just doesnt look right when I paste the code into java script template or a php template.

Thank you in advance



Back to top Reply with quote
#5   re: WHat is the Calendar used in this site?
Kabilos
CZ Newbie
Kabilos has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jan 06, 2006
0.00 posts per day
Posts: 4
Points: 358
   
bump for information

Thanks in advance



Back to top Reply with quote
#6   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
What do you mean?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   re: WHat is the Calendar used in this site?
Kilim
CZ Newbie
Kilim has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Dec 06, 2004
0.00 posts per day
Posts: 15
Points: 1,581
   
So how do I use the javascript block you posted to work with the MyCalendar mod you have in your site?
Kinda confused here.

Any modifications I need to do?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum