Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: logo in place of file upload question

logo in place of file upload question 11 Monate 1 Tag her #99421

  • startx25
  • startx25s Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 50
  • Karma: 0
LM 1.92

Hi all,

When i insert a file upload question,

a link appear in my survey like this "File upload"

I am looking to replace this link with an image like a "camera" or other like that

how can i replace this link with a picutre ?

I hope someone can help me

Regards
Letzte Änderung: 11 Monate 1 Tag her von startx25. Begründung: forget info
Der Administrator hat öffentliche Schreibrechte deaktiviert.

logo in place of file upload question 11 Monate 19 Stunden her #99436

  • startx25
  • startx25s Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 50
  • Karma: 0
Hi,

here is the solution,


file : quanda.php

line :2688


$uploadbutton = "<h2><a id='upload_".$ia[1]."' class='upload' ";
$uploadbutton .= " href='#' onclick='javascript:upload_$ia[1]();'";
$uploadbutton .=">" .$clang->gT('Upload files'). "</a></h2><br /><br />";

you can put what you want in $uploadbutton variable
Der Administrator hat öffentliche Schreibrechte deaktiviert.

logo in place of file upload question 10 Monate 3 Wochen her #99547

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4069
  • Dank erhalten: 748
  • Karma: 341
Rather than hacking the core code, I would be inclined to add something like this to template.js:
$(document).ready(function(){
	$('a.upload').html('<img src="path/to/your/image.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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.140 Sekunden
Donation Image