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
global $db_prefix,$db_name;
global $YaBBversion;
$mods = array();
$rf = fopen("Packages/installed.list", "r") or die("Could not connect to server");
while (!feof($rf))
$mods[] = fgets($rf, 4096);
fclose($rf);
for ($i=0 ; $iThis 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 "
";
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
global $db_prefix,$db_name;
global $YaBBversion;
$pos = strpos($YaBBversion, "YaBB SE 1.5");
if (!($pos === false))
$myversion = '1.5+';
echo 'Building modification.mod ';
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.AbbitJack.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