rEQS/eb67795a60efmaster
rEQS/
eb67795a60efmaster
/
/
README.md
README.md
QuickSurveys Extension
The QuickSurveys extension displays and gathers data via EventLogging for configured surveys in both desktop and mobile
Installation
Add the following to your LocalSettings.php file: wfLoadExtension( 'QuickSurveys' );
Example Survey Configuration
<?php /* Example QuickSurveys config */ $wgQuickSurveysConfig[] = array( // Survey name 'name' => 'example', // Internal or external link survey 'type' => 'internal', // Survey question message key 'question' => 'ext-quicksurveys-example-question', // Possible answer message keys for positive, neutral, and negative 'answers' => array( 'ext-quicksurveys-example-answer-positive', 'ext-quicksurveys-example-answer-neutral', 'ext-quicksurveys-example-answer-negative', ), // Which schema to log to 'schema' => 'QuickSurveysResponses', // Percentage of users that will see the survey 'coverage' => '50', // Is the survey enabled 'enabled' => false, // For each platform (desktop, mobile), which version of it is targeted (stable, beta, alpha) 'platform' => array( 'desktop' => array( 'stable' ), 'mobile' => array( 'stable', 'beta', 'alpha' ), ), );
You can enable insecure external surveys by enabling wgQuickSurveysRequireHttps however this is discouraged. This will allow you to run a survey from an external website that runs only on http.
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL