| View previous topic :: View next topic |
| Author |
Message |
Oswaldt
Joined: 21 May 2010 Posts: 46
|
Posted: Jun 10, 2010 11:07 pm Post subject: how to change the download button |
|
|
I have a jpg 206x46 with which id like to replace the current download button.
thanks. |
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1123
|
Posted: Jun 11, 2010 11:56 am Post subject: |
|
|
| Change input type to "image" and add "src" parameter. |
|
| Back to top |
|
 |
Oswaldt
Joined: 21 May 2010 Posts: 46
|
Posted: Jun 11, 2010 4:27 pm Post subject: |
|
|
| in what file? download1.html? |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: Jun 11, 2010 7:52 pm Post subject: |
|
|
| Yes. |
|
| Back to top |
|
 |
Oswaldt
Joined: 21 May 2010 Posts: 46
|
Posted: Jun 13, 2010 10:15 pm Post subject: |
|
|
so this
<TMPL_IF direct_links>
<input type="hidden" name="down_direct" value="1">
<input type="submit" id="btn_download" value="<TMPL_VAR lang_create_link>">
<TMPL_ELSE>
<input type="hidden" name="down_script" value="1">
<input type="submit" id="btn_download" value="<TMPL_VAR lang_download_file>">
wuold become:
<TMPL_IF direct_links>
<input type="hidden" name="down_direct" value="1">
<input type="submit" id="btn_download" value="<TMPL_VAR lang_create_link>">
<TMPL_ELSE>
<input type="hidden" name="down_script" value="1">
<input type="image" src="html/images/downloadblue.png "<TMPL_VAR lang_download_file>">
right?? |
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1123
|
Posted: Jun 15, 2010 12:13 pm Post subject: |
|
|
| There should be URL to image, but not local path |
|
| Back to top |
|
 |
komi
Joined: 27 Nov 2009 Posts: 159
|
Posted: Jun 15, 2010 2:13 pm Post subject: |
|
|
The following code will do it:
| Code: | <TMPL_IF direct_links>
<input type="hidden" name="down_direct" value="1">
<input type="image" id="btn_download" src="/images/downloadblue.png">
<TMPL_ELSE>
<input type="hidden" name="down_script" value="1">
<input type="image" id="btn_download" src="/images/downloadblue.png">
</TMPL_IF> |
Note that <TMPL_VAR lang_create_link> and <TMPL_VAR lang_download_file> can be safely removed since that's the text which will not be shown when using an image. |
|
| Back to top |
|
 |
|