Welcome to the LimeSurvey Community Forum

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

Adding extra logo in theme

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 month 2 weeks ago #258262 by tammo
Adding extra logo in theme was created by tammo
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.4
Own server or LimeSurvey hosting: Own
Survey theme/template: Extended Vanilla
==================
I am extending Vanilla and want to add a second logo, but run into a wall.

In config.xml I added:
Code:
<!-- logo1 -->
        <brandlogo type="buttons" category="Logos" width="4" title="Logo" options="on|off" optionlabels="Yes|No">on</brandlogo>
        <brandlogofile type="dropdown" category="Logos" width="6" title="Logo file" parent="brandlogo">files/logo.png</brandlogofile>
        <!-- logo2 -->
        <logo2 type="buttons" category="Logos" width="4" title="Second logo" options="on|off" optionlabels="Yes|No">on</logo2>
        <logo2file type="dropdown" category="Logos" width="6" title="Second logo file" parent="logo2">files/logo.png</logo2file>
Of course the first logo was already in config.xml
But adding the second logo seemed impossible: when going to the theme options I cannot see the files list. Opening the flies list show an empty list.

Strange enough I can add a Background dialog in config.xml and this show normally.
Code:
<backgroundimage type="buttons" category="Background" width="4" title="Background image" options="on|off" optionlabels="Yes|No">on</backgroundimage>
        <backgroundimagefile type="dropdown" category="Background" width="6" title="Background image file" parent="backgroundimage">files/pattern.jpg</backgroundimagefile>
I must be doing something wrong, but after some hours I ask for help here? What goes wrong?

Thanks in advance,
 


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 2 weeks ago #258272 by DenisChenu
Replied by DenisChenu on topic Adding extra logo in theme
github.com/LimeSurvey/LimeSurvey/pull/3621

imageFileList for type (not in manual ?)
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 month 2 weeks ago #258278 by tammo
Replied by tammo on topic Adding extra logo in theme
Hi, from what I read in the pull request it look like this was something that was developed, but deprecated after some discussion? It that right?

I think that this is needed, a second ( or even third) logo is something my customers want dearly. Why would there be a restriction on the number of images that can be used in a theme? Even if it would be unimaginable for the developer, I would say: every theme developer has the right to make it as difficult as he/she want. Even if it would not work.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 month 2 weeks ago #258334 by tammo
Replied by tammo on topic Adding extra logo in theme
@Denis (or others): can you please look into this? Is this something:
1. that was developed and afterwards deprecated?
2. was never solved
3. will never be solved
4. can be solved easily
5. can only be solved with difficulties


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 month 2 weeks ago #258345 by Mazi
Replied by Mazi on topic Adding extra logo in theme
Hi tammo,
we have successfully added multiple logos (left/middle/right) at custom Limesurvey themes. For example our "Backy" theme comes with these placeholders:
- Download theme: survey-consulting.com/product/limesurvey-template-backy/
- Demo survey: ls300demo.survey-consulting.com/index.ph...74?newtest=Y&lang=en
- Options: survey-consulting.com/wp-content/uploads...ky_theme_options.png

Thing is that at LS 6.x defining the logo options at config.xml had several issues, see bugs.limesurvey.org/view.php?id=18880 and bugs.limesurvey.org/view.php?id=19086 .
So make sure to use the latest 6.x version when developing this. It includes the necessary fixes.

This is how we have defined the different image details at config.xml:
<backgroundimage type="buttons" category="Images" width="4" title="Background image" options="on|off" optionlabels="Yes|No">off</backgroundimage>
<backgroundimagefile type="imagefile" category="Images" width="6" title="Background image file" parent="backgroundimage"/>
<banner type="buttons" category="Images" width="4" title="Banner" options="on|off" optionlabels="Yes|No">off</banner>
<bannerfile type="imagefile" category="Images" width="6" title="Banner file" parent="banner"/>
<logoleft type="buttons" category="Images" width="4" title="Logo left" options="on|off" optionlabels="Yes|No">on</logoleft>
<logoleftfile type="imagefile" category="Images" width="6" title="Logo left file" parent="logoleft">./files/logo.png</logoleftfile>
<logomiddle type="buttons" category="Images" width="4" title="Logo middle" options="on|off" optionlabels="Yes|No">off</logomiddle>
<logomiddlefile type="imagefile" category="Images" width="6" title="Logo middle file" parent="logomiddle">./files/logo.png</logomiddlefile>
<logoright type="buttons" category="Images" width="4" title="Logo right" options="on|off" optionlabels="Yes|No">off</logoright>
<logorightfile type="imagefile" category="Images" width="6" title="Logo right file" parent="logoright">./files/logo.png</logorightfile>
<favicon type="buttons" category="Images" width="4" title="Favicon" options="on|off" optionlabels="Yes|No">on</favicon>
<faviconfile type="imagefile" category="Images" width="6" title="Favicon file" parent="favicon">./files/favicon.png</faviconfile>

Hope this helps!

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The following user(s) said Thank You: tammo

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 2 weeks ago #258346 by DenisChenu
Replied by DenisChenu on topic Adding extra logo in theme

Hi, from what I read in the pull request it look like this was something that was developed, but deprecated after some discussion? It that right?
 
No,

The deprecated part are for brandlogofile and backgroundfile :

1. both must move to the new imageFile typoe in core theme for 6.X
2. both must be clearly set as deprecated usage for 6.X (show it's a deprecated usage in code, but still allow it)
3. both must be removed in 7X


Finally we must use only imafeFile for imageFile dropdown

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: tammo

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 month 2 weeks ago #258347 by tammo
Replied by tammo on topic Adding extra logo in theme
Thank you both, this helped!

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 week 5 days ago #260357 by tammo
Replied by tammo on topic Adding extra logo in theme
Still not completely clear: how to upload a new file? I do not see an option for that?

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose