Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

logo in place of file upload question

  • startx25
  • startx25's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago - 10 years 6 months ago #99421 by startx25
logo in place of file upload question was created by startx25
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
Last edit: 10 years 6 months ago by startx25. Reason: forget info
The topic has been locked.
  • startx25
  • startx25's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #99436 by startx25
Replied by startx25 on topic logo in place of file upload question
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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 6 months ago #99547 by tpartner
Replied by tpartner on topic logo in place of file upload question
Rather than hacking the core code, I would be inclined to add something like this to template.js:
Code:
$(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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose