Browse Source

New configurations for etherpad; more documentation on the wiki coming.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
8789a289b7
  1. 30
      Connections/database_functions.php

30
Connections/database_functions.php

@ -29,13 +29,15 @@ MEMBERSHIP
At Positive Spin
Actual memberships begin on the day they are purchased
Memberships - $60/year
Memberships include unlimited access to an available work stand during open shop hours and a 10% discount on parts.
Memberships include unlimited access to an available work stand during open shop hours and a 10% discount on new parts.
*/
// Needs to volunteer at least this amount of defined hours before being considered a member
// Needs to volunteer at least this amount of defined hours before being considered a member
// Note: used only as a metric for reports
define("MEMBERSHIP_HOURS",8);
// Needs to volunteer at least this number of days before being considered a member
// Note: used only as a metric for reports
define("MEMBERSHIP_DAYS",2);
// Define how long a patron remains a member if they purchase a membership.
@ -62,7 +64,8 @@ define("FREE_STAND_TIME_PERIOD",30); // IN DAYS
/********************************
SWEAT EQUITY / VOLUNTEER BENEFITS
*********************************/
// This is specific to Positive Spin Policies
// For example:
// The settings below are specific to Positive Spin Policies
// Calendar Year = January 1 .. December 31 (366 for leap years)
/*
These hours can only be used to purchase used parts, bicycles and stand time.
@ -74,8 +77,6 @@ If you would like to spend more than $100 in volunteer hours during a calendar y
for volunteers who have volunteered fewer than 100 hours. For volunteers who have
donated more than 100 hours of their time in the past 365 days, this match can be reduced to 50%.
May add capability to adjust limits based on status, but that can get complex if same person has more than 1 status.
(Sweat Equity / Volunteer Benefits can't be combined with Membership Benefits.)
*/
@ -86,7 +87,9 @@ define("VOLUNTEER_DISCOUNT",25); // PERCENTAGE
define("SPECIAL_VOLUNTEER_HOURS_QUALIFICATION",100); // IN HOURS
define("SPECIAL_VOLUNTEER_DISCOUNT",50); // PERCENTAGE
// Determines the behaviour of Bicycles (transaction_type_id) for volunteer to earn-a-bike purchases
// Determines the behaviour of Bicycles (transaction_type_id) for volunteer to earn-a-bike purchases.
// Keeping things equitable, if a patron decides to purchase a bike, rather than earning it,
// that counts to the EAB limit for the year.
define("EARN_A_BIKE_LIMIT",1);
// Determine if stand time behaviour will be based on the SWEAT_EQUITY_LIMIT with discounts applied,
@ -278,9 +281,12 @@ define('SHOW_SHOP_ID',0);
**************/
// Allow comments/feedback/notes to be added per individual_history_log in reports,
// and globally in shop_log. An etherpad host has to be defined for this to work.
// See wiki for instructions on how to setup an etherpad docker instance.
// See wiki for instructions on how to setup an etherpad docker instance.r
//
// See https://github.com/ether/etherpad-lite-jquery-plugin for information about configurations.
// prefix allows you to set a prefix to the name of the autogenerated padID:
// etherpad = prefix + "pad_contact_id_" + contact_id;
// etherpad_global = prefix_ + "global_pad"
// See https://github.com/ether/etherpad-lite-jquery-plugin for information about other configurations.
$etherpad = array(
"host" => "",
"userName" => "PositiveSpin",
@ -289,6 +295,14 @@ $etherpad = array(
"plugins" => array()
);
$etherpad_global = array(
"host" => "",
"userName" => "PositiveSpin",
"noColors" => true,
"height" => "100%",
"plugins" => array()
);
// END OF USER DEFINED CONFIGURATIONS

Loading…
Cancel
Save