Implemented RFE 9204 - Add Reply Filter Code and Reply Rich Editor Option to Collaboration System - Provides ability to specify different Rich Editors and FilterCodes for posts (start of thread) and replies
This commit is contained in:
parent
90717eee40
commit
2fb41ce8e8
5 changed files with 67 additions and 5 deletions
|
|
@ -33,6 +33,7 @@
|
|||
- rfe #9134: Pluggable Storage to support Amazon S3 and Cloudfront (Funded by donor.com, coded by Whizman)
|
||||
- Added PayPal paydriver. (Thanks to Paul Wrightson)
|
||||
- rfe #9908: Inbox: SMS delivery
|
||||
- rfe #9204: Add Reply Filter Code Option to Collaboration System - provides ability to specify a code filter for collaboration system replies which might be different than the one used for posts.
|
||||
- rfe #10384: Change the view Groups in this Group area
|
||||
|
||||
7.7.5
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ installSMSUserProfileFields($session);
|
|||
installSMSSettings($session);
|
||||
upgradeSMSMailQueue($session);
|
||||
addPayDrivers($session);
|
||||
addCollaborationColumns($session);
|
||||
installFriendManagerSettings($session);
|
||||
installFriendManagerConfig($session);
|
||||
|
||||
|
|
@ -234,6 +235,26 @@ sub addPayDrivers {
|
|||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
sub addCollaborationColumns {
|
||||
my $session = shift;
|
||||
print "\tAdding columns to store htmlArea Rich Editor and Filter Code for Replies in Collaboration Table ..." unless $quiet;
|
||||
|
||||
my $sth = $session->db->read( 'show columns in Collaboration where field = "replyRichEditor"' );
|
||||
if ($sth->rows() == 0) { # only add columns if it hasn't been added already
|
||||
$session->db->write( 'alter TABLE `Collaboration` add column `replyRichEditor` varchar(22) default "PBrichedit000000000002"') ;
|
||||
$session->db->write( 'update `Collaboration` set `replyRichEditor` = `richEditor` ') ;
|
||||
}
|
||||
|
||||
$sth = $session->db->read( 'show columns in Collaboration where field = "replyFilterCode"' );
|
||||
if ($sth->rows() == 0) { # only add columns if it hasn't been added already
|
||||
$session->db->write( 'alter TABLE `Collaboration` add column `replyFilterCode` varchar(30) default "javascript"') ;
|
||||
$session->db->write( 'update `Collaboration` set `replyFilterCode` = `filterCode` ') ;
|
||||
}
|
||||
|
||||
print "Done\n" unless $quiet;
|
||||
|
||||
}
|
||||
|
||||
sub installFriendManagerSettings {
|
||||
my $session = shift;
|
||||
print "\tInstalling FriendManager into settings...";
|
||||
|
|
@ -263,7 +284,6 @@ sub installFriendManagerConfig {
|
|||
print "\tDone\n";
|
||||
}
|
||||
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue