View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
08419Feature requestsSurvey takingpublic2013-12-12 09:05
ReporterDenisChenu Assigned To 
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary08419: 2 event before Survey Start
Description

Some existing system need to set something before survey start, for example registring is great to be pluggable.
Some other thing can be done for each page show to public.

Think we can have 2 new events:

  • beforeSurveyStart :
  • beforePublicPage : can only use Yii system and update $_SESSION/$_GET/$_POST (and setConfig)
  • afterPublicPage : get all information of the diplaying page
Additional Information

Some example of plugin possible

1) beforePublicPage :

  • Replace survey listing
  • Set a default survey (if no surveyid is set : set it to a default survey : some of our other have only one big survey, and don't use different survey.)
  • Add own registering susystem (test survey and token : if survey and no token : shown own page)
  • Add some default session
  • Allways registring some script
  • etc ...

2) afterPublicPage :

  • Update HTML (replace footer): add own #index (maybe move index in plugin)
  • Unregistering some js/css (why not) or put js and css in a CDN
  • etc ...
Tagsplugin
Bug heat8
Story point estimate
Users affected %

Relationships

related to 08351 closedDenisChenu Add option to public registration page that allows resending of already registered user's login details 

Users monitoring this issue

c_schmitz, mdekker

Activities

DenisChenu

DenisChenu

2013-12-10 16:05

developer   ~27539

Sam: what do you think of this kind af event ?

Think RegisterController for example is better in Plugin

sammousa

sammousa

2013-12-10 17:20

reporter   ~27544

I suggest the following:

  • Extend the survey settings wih a registration URL.
  • Create a plugin that sets the survey URL to its own direct request URL and creates a token if / when it wants to.

The advantage of this approach is that we can support any registration system whether it is a plugin or an external system that uses the API to create a token.

We don't need any new events since this would use the direct request event, which seems good since registration via a plugin or external application does not have anything to do with Limesurvey itself.

DenisChenu

DenisChenu

2013-12-12 08:58

developer   ~27552

Last edited: 2013-12-12 08:59

Then, your way is:

  • Put the actual "resitration" page to a plugin
  • Update the "registration Y/N" to registration page with default set to core/plugon/registration
  • Allow user to set their own url here

?
PS: and what for

  • "survey listing"
  • allways register script
  • Set some $_SESSION var
    etc
DenisChenu

DenisChenu

2013-12-12 09:05

developer   ~27553

Hi again,

A "beforePublicPage" can be used by https://www.limesurvey.org/en/forum/plugins/95306-plugin-to-decrypt-url-parameters-prefilled-answers#102442

This user can use "core prefill url" and update his $_GET array with needed var.

Denis

Issue History

Date Modified Username Field Change
2013-12-02 09:01 DenisChenu New Issue
2013-12-02 09:02 DenisChenu Relationship added related to 08351
2013-12-02 09:02 DenisChenu Tag Attached: plugin
2013-12-02 09:03 DenisChenu Additional Information Updated
2013-12-10 16:04 DenisChenu Issue Monitored: sammousa
2013-12-10 16:05 DenisChenu Note Added: 27539
2013-12-10 16:06 DenisChenu Additional Information Updated
2013-12-10 17:20 sammousa Note Added: 27544
2013-12-10 17:20 sammousa Issue Monitored: mdekker
2013-12-10 17:20 sammousa Issue Monitored: c_schmitz
2013-12-12 08:58 DenisChenu Note Added: 27552
2013-12-12 08:59 DenisChenu Note Edited: 27552
2013-12-12 09:05 DenisChenu Note Added: 27553