Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: How can I use a different logo for each survey, but without changing de template

How can I use a different logo for each survey, but without changing de template 1 month 1 week ago #109980

  • helviobrito
  • helviobrito's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
Hi.

Please help me. I've alreedy looked into the forum and the mamual and didn't find a clear answer for may issue.

I use LM 2.05+ Build 140302 and a mdified version of Vallendar template. I need to change the logo for each survey, but I didn't figure out how to do this. Can anone help me?
The administrator has disabled public write access.

How can I use a different logo for each survey, but without changing de template 1 month 1 week ago #110000

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
In the template file, you can use the placeholder for the survey ID in the filename of the logo image.

So, something like:

<img src="path/to/images/logo-{SID}.png" />

.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: helviobrito

How can I use a different logo for each survey, but without changing de template 1 month 6 days ago #110022

  • helviobrito
  • helviobrito's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
Thanks for your attention, tpartner. But, please, I'd like to know which template file I'll use to put this line in: survey. pstpl or starpage.pstpl?
The administrator has disabled public write access.

How can I use a different logo for each survey, but without changing de template 1 month 6 days ago #110023

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
It depends on where your logo is - probably in startpage.pstpl.

What template are you using? Can you activate a sample survey?


.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

How can I use a different logo for each survey, but without changing de template 1 month 6 days ago #110024

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
It depends on where your logo is - probably in startpage.pstpl.

What template are you using? Can you activate a sample survey?


.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

How can I use a different logo for each survey, but without changing de template 1 month 6 days ago #110025

  • helviobrito
  • helviobrito's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
I am using Vallendar, with a little modification only to change the color of warning texts from pink to red.

Here is a survey that you can see as an example: focuspesquisa.com.br/focusOnline/181521/lang-pt-BR.

See the logo focusOnline in the questions page? I'd like to change it only in this survey, for example, not affecting the others active ones.
The administrator has disabled public write access.

How can I use a different logo for each survey, but without changing de template 1 month 6 days ago #110027

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2549
  • Thank you received: 285
  • Karma: 102
Can't access the survey without a token and on the startpage there is no logo.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

How can I use a different logo for each survey, but without changing de template 1 month 6 days ago #110028

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2549
  • Thank you received: 285
  • Karma: 102
But Tpartners solution would affect all other surveys that depend on this template that you use.

But I think it is a very elegant solution, if you have many surveys and they all need a different logo. You just put the logo file into the respective folder with the Survey ID in the file name and the template will use this file.

However, this change will affect all previous surveys, because they don't have the correct name and one disadvantage is that you would have to create a logo file for each survey, even if the logo stays the same. So if you usually use always one logo and just for this survey you need to use another one, I think it is easier to copy the template and change the logo file.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

How can I use a different logo for each survey, but without changing de template 1 month 6 days ago #110029

  • helviobrito
  • helviobrito's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
Sorry. Use the login Testing and the token 123456.

So, I think that the logo goes in the survey.pstpl. My generic logo url is there. So, supose I have an image named newlogo.png and I want it just in the survey with the ID 181521. Do I change the images's name to newlogo-181521.png?
The administrator has disabled public write access.

How can I use a different logo for each survey, but without changing de template 1 month 6 days ago #110030

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
Yeah, no access for me either.

I think it is easier to copy the template and change the logo file.
No, we can do it dynamically for a single with JavaScript but I would need to see a survey to give the script details.


.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.140 seconds
Donation Image