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 4 months 1 week ago #110031

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4281
  • Thank you received: 807
  • Karma: 370
Still don't see a logo. That survey is using the default template with no logos.
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 4 months 1 week ago #110032

  • helviobrito
  • helviobrito's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
Yes, I agree. I didn't think of copy the template for each survey. But I had a doubt it the logo name with the survey ID solution wouldn't affect all previous surveys, as you said, hotch. Thanks.
The administrator has disabled public write access.

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

  • helviobrito
  • helviobrito's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
Plase, try again. Now the template is right.
The administrator has disabled public write access.

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

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4281
  • Thank you received: 807
  • Karma: 370
But I had a doubt it the logo name with the survey ID solution wouldn't affect all previous surveys, as you said, hotch.
I made that suggestion before you said you had other surveys that you don't want affected.


If you want to insert a logo only for survey ID 181521, you can add this to the end of template.js. This will insert the defined image before your survey description.

$(document).ready(function(){
	// Image URL
	var imagePath = 'http://www.google.com/logos/2011/thai_elephant_day11-hp.jpg';
 
	// Insert the image
	if($('input#sid').val() == 181521) {
		$('td.survey-description').prepend('<img class="logo-image" src="'+imagePath+'" />');
	}
});


.
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 4 months 1 week ago #110065

  • helviobrito
  • helviobrito's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
Thanks, tpartner. I'll try this solution and report the result to you.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.109 seconds
Donation Image