Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to create modules In LS3 for custom Screens.

  • Hiccup
  • Hiccup's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago - 2 years 7 months ago #226279 by Hiccup
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Version 3.26.2+210503
Own server or LimeSurvey hosting: Own server
==================
Hi, everyone.
I m new in ls3 and I want to create custom screens using modules.
we tried some Demo Modules of LS 4.40 but that's will be not working in ls3.
while we run our module demo that will be reload the screen and display survey listing screen in ls3.

tried Demo Module URL:  github.com/LimeSurvey/LimeSurvey/tree/4.4.0/modules
We used simple Module admin/HelloWorld on screen.

anyone can help/guide me in this.

Thank you in advance.
Last edit: 2 years 7 months ago by Hiccup.

Please Log in to join the conversation.

More
2 years 7 months ago #226280 by jelo
The module directory was added in LS4. The feature is driven by the Yii-Framework, which is used in LS3 too. But I have never seen someone fiddling around adding them to LS3.

In LS5 the work continues:
github.com/LimeSurvey/LimeSurvey/tree/master/modules

I find it hard to invest time in LS3 since it is fading out.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 years 7 months ago #226288 by DenisChenu
Replied by DenisChenu on topic How to create modules In LS3 for custom Screens.
In 3.X : i dpon't think you can create custom screen.
Else about modules : never use it personnaly,
But you can find a lot of custom screen on my plugins : gitlab.com/SondagesPro

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • Hiccup
  • Hiccup's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #226290 by Hiccup
Hi jello
Modules are working for LS3.
But we did not get an example for that version.
we have LS4.4 and LS5 Modules example but that's not working in LS3.
Thanks For the URL but we already checked it.


Thank you Jelo

Please Log in to join the conversation.

  • Hiccup
  • Hiccup's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #226293 by Hiccup
Hi DenisChenu

Thank you for the details.

Please Log in to join the conversation.

More
2 years 7 months ago #226411 by bismark
we use yii modules on a regular basis

create a standard yii module (hello) with gii (index.php/gii), password "toto"
in application/config/config.php add your modules configuration
call your module index.php/hello

www.yiiframework.com/doc/guide/1.1/en/basics.module
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • Hiccup
  • Hiccup's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #226494 by Hiccup
Hi Bismark
Thank you for your info.
We created one Test module in the local system.
we set up the config file, modules folder inside this folder
we created our module folder [testmodule].

we reach the controller using URL: .../index/test
we try to display simple HTML on screen using index.php file inside view folder its showing error on screen.

can you please help us in this?
 

Please Log in to join the conversation.

More
2 years 7 months ago - 2 years 7 months ago #226498 by bismark
www.yiiframework.com/doc/guide/1.1/en/basics.view

you are using a LimeSurvey-Layout which you cannot use within your module. Define your own in yourModule/views/layouts/main.php

then in your Controller set

public $layout = 'main';

or within your Action

$this->layout = main;

or $this->layout = false; if you just want to display the view without being wrapped by a layout

furthermore I would set debug = 2 in your application/config/config.php
Last edit: 2 years 7 months ago by bismark.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #227250 by tpartner
Please remove the company name and link from your signature. That is not permitted u less you are a LimeSurvey partner.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 4 months ago #229501 by ervinjason
Replied by ervinjason on topic How to create modules In LS3 for custom Screens.
Modules are working for LS3.

But I did not get an example for that version.

I have LS4.4 and LS5 Modules example but that's not working in LS3.

Alight Motion is the first professional motion design app on computer bringing you professional-quality animation, motion graphics, visual effects, video editing, video compositing, and more!

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose