- Posts: 967
- Thank you received: 220
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Adding extra logo in theme
- tammo
- Topic Author
- Offline
- Official LimeSurvey Partner
Less
More
1 month 2 weeks ago #258262
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
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:
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.
I must be doing something wrong, but after some hours I ask for help here? What goes wrong?
Thanks in advance,
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>
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>
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
1 month 2 weeks ago #258272
by DenisChenu
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.
Replied by DenisChenu on topic Adding extra logo in theme
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
- Topic Author
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
1 month 2 weeks ago #258278
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
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
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
- Topic Author
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
1 month 2 weeks ago #258334
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
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
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
- Offline
- Official LimeSurvey Partner
1 month 2 weeks ago #258345
by Mazi
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
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!
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
1 month 2 weeks ago #258346
by DenisChenu
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.
Replied by DenisChenu on topic Adding extra logo in theme
No,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?
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
- Topic Author
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
1 month 2 weeks ago #258347
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Adding extra logo in theme
Thank you both, this helped!
Tammo
Tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Please Log in to join the conversation.
- tammo
- Topic Author
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
1 week 4 days ago #260357
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
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
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.