dir|^|Packages file|^|Packages/modification.mod|^|237|^|1054068473 index.php If you are reading this then you must have done something wrong. Please see that you have followed the installation instructions and that you have any required mods installed first. Thanks. file|^|Packages/modification.php|^|1849|^|1054068474 This Mod requires that you have the "Force Calendar Board" mod installed.
"calforceboard.mod.yp" was not in your installed list.
It is not advised that you install this mod before the other.

'; } if (file_exists("Packages/uninstall.php")) unlink("Packages/uninstall.php"); if (file_exists("Packages/uninstall.txt")) unlink("Packages/uninstall.txt"); if (file_exists("Packages/uninstall.sql")) unlink("Packages/uninstall.sql"); function doQuery($query) { mysql_query("$query"); if(($SQL_error = mysql_error()) != '') repError($SQL_error); } function repError($error) { echo 'Error: MySQL said:
' . $error . '
If you have previously installed this mod, disregard this error as the required table column is already there. '; } ?>file|^|Packages/modification.txt|^|185|^|1054068474 This mod allows for you to mark a calendar event as a "Club Event" to seperate it from the other events. It is requried that you have already installed the "Force Calendar Board" mod. file|^|Packages/modification1.4.1.mod|^|5527|^|1054068475 english.lng $txt[1] = $txt['calclubmod1'] = "*"; $txt['calclubmod2'] = "denotes club event"; $txt['calclubmod3'] = "Club Event:"; $txt['calclubmod4'] = "(MOASF)"; Sources/Calendar.php print ""; print ""; print ""; print "$txt[calclubmod1] $txt[calclubmod2]"; ,cal.id "; ,cal.id,cal.club_event "; $strOwner = ""; if ($row['club_event'] == 1) $strEvType = " $txt[calclubmod1]"; else $strEvType = ""; $txt[calendar4] $strOwner $txt[calendar4]
$strOwner
$row[title]"; $row[title]$strEvType"; $strOwner$row[title]"; $strOwner$row[title]$strEvType"; print ""; print "$txt[calendar12]"; print ""; print ""; print ""; print "$txt[calclubmod3]"; print ""; print ""; year,id_member From year,id_member,club_event From print ""; print "$txt[calendar12]"; print ""; print ""; if ($row['club_event'] == 1) $strEvType = " checked"; else $strEvType = ""; print ""; print "$txt[calclubmod3]"; print ""; print ""; global $eventid, global $evtype,$txt; Select id_member From Select id_member,id_topic,title From else mysql_query("Update {$db_prefix}calendar Set month='$month',day='$day',year='$year',title='$evtitle' Where id='$eventid'"); else { mysql_query("Update {$db_prefix}calendar Set month='$month',day='$day',year='$year',title='$evtitle', club_event='$evtype' Where id='$eventid'"); if ($evtype == 1) $strEvType = " $txt[calclubmod4]"; else $strEvType = ""; $rs = mysql_query("Select cal.id_topic,t.ID_FIRST_MSG From {$db_prefix}calendar as cal,{$db_prefix}topics as t Where cal.id='$eventid' and cal.id_topic=t.ID_TOPIC"); $row = mysql_fetch_assoc($rs); mysql_query("Update {$db_prefix}messages Set subject='$evtitle - $month/$day/$year$strEvType' Where ID_MSG='$row[ID_FIRST_MSG]'"); } print ""; print ""; function CalendarAddHidden() { global $evtype; function CalendarLinkEvent2() { global $evtype,$txt,$db_prefix; CalendarInsertEvent($board,$threadid,$evtitle,$ID_MEMBER,$month,$day,$year,$span); CalendarInsertEvent($board,$threadid,$evtitle,$ID_MEMBER,$month,$day,$year,$span,$evtype); if ($evtype == 1) $strEvType = " $txt[calclubmod4]"; else $strEvType = ""; $rs = mysql_query("Select id_first_msg From {$db_prefix}topics Where id_topic='$threadid'"); $row = mysql_fetch_row($rs); mysql_query("Update {$db_prefix}messages Set subject='$evtitle - $month/$day/$year$strEvType' Where ID_MSG='$row[0]'"); function CalendarInsertEvent($id_board,$id_topic,$title,$id_member,$month,$day,$year,$span) function CalendarInsertEvent($id_board,$id_topic,$title,$id_member,$month,$day,$year,$span,$type) mysql_query("Insert Into {$db_prefix}calendar(id_board,id_topic,title,id_member,month,day,year) values('$id_board','$id_topic','$title','$id_member','$month','$day','$year')"); mysql_query("Insert Into {$db_prefix}calendar(id_board,id_topic,title,id_member,month,day,year,club_event) values('$id_board','$id_topic','$title','$id_member','$month','$day','$year','$type')"); mysql_query("Insert Into {$db_prefix}calendar(id_board,id_topic,title,id_member,month,day,year) values('$id_board','$id_topic','$title','$id_member',$eventTime[4],$eventTime[3],$year)"); mysql_query("Insert Into {$db_prefix}calendar(id_board,id_topic,title,id_member,month,day,year,club_event) values('$id_board','$id_topic','$title','$id_member',$eventTime[4],$eventTime[3],$year,'$type')"); Sources/Post.php function Post (){ // Club Calendar. global $evtitle,$evtype,$year,$month,$day; if ($evtype == '') $evtype = 0; if(!$form_subject) { $sub = "$txt[33]"; } else { $sub = $form_subject; } if (isset($linkcalendar)) { $form_subject = "$evtitle - $month/$day/$year"; if ($evtype == 1) $form_subject .= " $txt[calclubmod4]"; } function Post2 (){ // Club Calendar. global $evtype; CalendarInsertEvent($board,$threadid,$evtitle,$ID_MEMBER,$month,$day,$year,$span); CalendarInsertEvent($board,$threadid,$evtitle,$ID_MEMBER,$month,$day,$year,$span,$evtype); file|^|Packages/uninstall.php|^|773|^|1054068476 '; if ($myversion == '1.5+') { rename('Packages/modification1.5.x.mod', 'Packages/modification.mod'); unlink('Packages/modification1.4.1.mod'); } else { rename('Packages/modification1.4.1.mod', 'Packages/modification.mod'); unlink('Packages/modification1.5.x.mod'); } $q1 = <<' . $error . ' '; } ?>file|^|Packages/uninstall.txt|^|55|^|1054068476 Trying to run uninstall files for calclubmod.mod.yp....file|^|Packages/modification1.5.x.mod|^|7195|^|1054068475 Calendar Club Event 1.0 (YabbSE 1.5.x) Jack.R.Abbit Jack.R.Abbit Jack.R.Abbit This mod allows for you to mark a calendar event as a "Club Event" to seperate it from the other events. It is requried that you have already installed the "Force Calendar Board" mod. no english.lng $txt[1] $txt['calclubmod1'] = '*'; $txt['calclubmod2'] = 'denotes club event'; $txt['calclubmod3'] = 'Club Event:'; $txt['calclubmod4'] = '(MOASF)'; Sources/Calendar.php ' . $txt['calclubmod1'] . ' ' . $txt['calclubmod2'] . ' ,cal.id "; ,cal.id,cal.location,cal.club_event "; $strOwner = ''; if ($row['club_event'] == 1) $strEvType = " $txt[calclubmod1]"; else $strEvType = ''; $txt['calendar4'] . ' ' . $strOwner $txt['calendar4'] . '
' . $strOwner
$row['title'] . ''; $row['title'] . '' . $strEvType; $strOwner.$row['title']; $strOwner . $row['title'] . $strEvType; ' . $txt['calendar12'] . ' ' . $txt[227] . ': ' . $txt['calclubmod3'] . ' year,id_member FROM year,id_member,location,club_event FROM ' . $txt['calendar12'] . ' '; if ($row['club_event'] == 1) $strEvType = ' checked="checked"'; else $strEvType = ''; echo ' ' . $txt[227] . ': ' . $txt['calclubmod3'] . ' global $eventid, global $evlocale, $evtype, $txt; SELECT id_member FROM SELECT id_member, id_topic, title FROM else mysql_query("Update {$db_prefix}calendar Set month='$month',day='$day',year='$year',title='$evtitle' WHERE id='$eventid'") or database_error(__FILE__, __LINE__); else { mysql_query("UPDATE {$db_prefix}calendar SET month='$month',day='$day',year='$year',title='$evtitle',location='$evlocale',club_event='$evtype' WHERE id='$eventid';") or database_error(__FILE__, __LINE__); if ($evtype == 1) $strEvType = " $txt[calclubmod4]"; else $strEvType = ''; $evMonth = $month + 1; $rs = mysql_query("SELECT cal.id_topic, t.ID_FIRST_MSG FROM {$db_prefix}calendar AS cal, {$db_prefix}topics AS t WHERE cal.id='$eventid' AND cal.id_topic=t.ID_TOPIC;") or database_error(__FILE__, __LINE__); $row = mysql_fetch_assoc($rs); mysql_query("UPDATE {$db_prefix}messages SET subject='$evtitle - $evMonth/$day/$year$strEvType' WHERE ID_MSG='$row[ID_FIRST_MSG]';"); } function CalendarAddHidden() { global $evlocale, $evtype; function CalendarLinkEvent2() { global $evlocale,$evtype,$txt,$db_prefix; CalendarInsertEvent($board,$threadid,$evtitle,$ID_MEMBER,$month,$day,$year,$span); CalendarInsertEvent($board,$threadid,$evtitle,$ID_MEMBER,$month,$day,$year,$span,$evlocale,$evtype); if ($evtype == 1) $strEvType = " $txt[calclubmod4]"; else $strEvType = ''; $evMonth = $month + 1; $rs = mysql_query("SELECT id_first_msg FROM {$db_prefix}topics WHERE id_topic='$threadid';") or database_error(__FILE__, __LINE__); $row = mysql_fetch_row($rs); mysql_query("UPDATE {$db_prefix}messages SET subject='$evtitle - $evMonth/$day/$year$strEvType' WHERE ID_MSG='$row[0]';") or database_error(__FILE__, __LINE__); function CalendarInsertEvent($id_board, $id_topic, $title, $id_member, $month, $day, $year, $span) function CalendarInsertEvent($id_board, $id_topic, $title, $id_member, $month, $day, $year, $span, $locale, $type) INSERT INTO {$db_prefix}calendar(id_board,id_topic,title,id_member,month,day,year) VALUES('$id_board','$id_topic','$title','$id_member','$month','$day','$year')") or database_error(__FILE__, __LINE__); INSERT INTO {$db_prefix}calendar(id_board,id_topic,title,id_member,month,day,year,location,club_event) VALUES('$id_board','$id_topic','$title','$id_member','$month','$day','$year','$locale','$type')") or database_error(__FILE__, __LINE__); INSERT INTO {$db_prefix}calendar(id_board,id_topic,title,id_member,month,day,year) VALUES('$id_board','$id_topic','$title','$id_member',$eventTime[4],$eventTime[3],$year)") or database_error(__FILE__, __LINE__); INSERT INTO {$db_prefix}calendar(id_board,id_topic,title,id_member,month,day,year,location,club_event) VALUES('$id_board','$id_topic','$title','$id_member',$eventTime[4],$eventTime[3],$year,'$locale','$type')") or database_error(__FILE__, __LINE__); Sources/Post.php function Post () { // Club Calendar. global $evtitle, $evlocale, $evtype, $year, $month, $day; if ($evtype == '') $evtype = 0; if (!$form_subject) $sub = '' . $txt[33] . ''; else $sub = $form_subject; if (isset($linkcalendar)) { $evMonth = $month + 1; $form_subject = "$evtitle - $evMonth/$day/$year"; if ($evtype == 1) $form_subject .= " $txt[calclubmod4]"; } function Post2 () { // Club Calendar. global $evlocale, $evtype; CalendarInsertEvent($board, $threadid, $evtitle, $ID_MEMBER, $month, $day, $year, $span); CalendarInsertEvent($board, $threadid, $evtitle, $ID_MEMBER, $month, $day, $year, $span, $evlocale, $evtype);