Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA: 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 10 Monate 1 Tag her #110031

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4690
  • Dank erhalten: 942
  • Karma: 409
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I use a different logo for each survey, but without changing de template 10 Monate 1 Tag her #110032

  • helviobrito
  • helviobritos Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 18
  • Dank erhalten: 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I use a different logo for each survey, but without changing de template 10 Monate 1 Tag her #110033

  • helviobrito
  • helviobritos Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 18
  • Dank erhalten: 1
  • Karma: 0
Plase, try again. Now the template is right.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I use a different logo for each survey, but without changing de template 10 Monate 22 Stunden her #110051

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4690
  • Dank erhalten: 942
  • Karma: 409
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

How can I use a different logo for each survey, but without changing de template 10 Monate 18 Stunden her #110065

  • helviobrito
  • helviobritos Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 18
  • Dank erhalten: 1
  • Karma: 0
Thanks, tpartner. I'll try this solution and report the result to you.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.138 Sekunden
Donation Image