Skip to content

Commit

Permalink
v0.3.02
Browse files Browse the repository at this point in the history
  • Loading branch information
rossdotparker committed Apr 8, 2016
1 parent c68bb6f commit 19e87f0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Alumni/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@
$sql[$count][0]="0.3.01" ;
$sql[$count][1]="" ;

//v0.3.02
$count++ ;
$sql[$count][0]="0.3.02" ;
$sql[$count][1]="INSERT INTO `gibbonSetting` (`gibbonSystemSettingsID` ,`scope` ,`name` ,`nameDisplay` ,`description` ,`value`) VALUES (NULL , 'Alumni', 'facebookLink', 'Facebook Link', 'A URL pointing to a Facebook page for the school\'s alumni group.', '');" ;

?>
4 changes: 4 additions & 0 deletions Alumni/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
=========
v0.3.02
-------
Added setting/link to Facebook page. Setting is database only, no interface.

v0.3.01
-------
Fixed minor spelling mistake
Expand Down
3 changes: 2 additions & 1 deletion Alumni/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$entryURL="alumni_manage.php" ;
$type="Additional" ;
$category="People" ;
$version="0.3.01" ;
$version="0.3.02" ;
$author="Ross Parker" ;
$url="http://rossparker.org/free-learning" ;

Expand All @@ -36,6 +36,7 @@

//Settings
$gibbonSetting[0]="INSERT INTO `gibbonSetting` (`gibbonSystemSettingsID` ,`scope` ,`name` ,`nameDisplay` ,`description` ,`value`) VALUES (NULL , 'Alumni', 'showPublicRegistration', 'Show Public Registration', 'Should the alumni registration form be displayed on the school\'s Gibbon homepage, or available via a link only?.', 'Y');";
$gibbonSetting[1]="INSERT INTO `gibbonSetting` (`gibbonSystemSettingsID` ,`scope` ,`name` ,`nameDisplay` ,`description` ,`value`) VALUES (NULL , 'Alumni', 'facebookLink', 'Facebook Link', 'A URL pointing to a Facebook page for the school\'s alumni group.', '');";


//Action rows
Expand Down
4 changes: 4 additions & 0 deletions Alumni/publicRegistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
<p>
<?php
print sprintf(_('This registration form is for former members of the %1$s community who wish to reconnect. Please fill in your details here, and someone from our alumni team will get back to you.'), $_SESSION[$guid]["organisationNameShort"]) ;
$facebookLink=getSettingByScope($connection2, "Alumni", "facebookLink") ;
if ($facebookLink!="") {
print " " . sprintf(_('Please don\'t forget to take a look at, and like, our alumni %1$sFacebook page%2$s.'), "<a href='" . htmlPrep($facebookLink) . "' target='_blank'>" , "</a>") ;
}
?>
</p>
<form method="post" action="<?php print $_SESSION[$guid]["absoluteURL"] . "/modules/Alumni/publicRegistrationProcess.php" ?>" enctype="multipart/form-data">
Expand Down
2 changes: 1 addition & 1 deletion Alumni/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
/**
* Sets version information
*/
$moduleVersion="0.3.01" ;
$moduleVersion="0.3.02" ;
?>

0 comments on commit 19e87f0

Please sign in to comment.