RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
how to change the download button

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
Oswaldt



Joined: 21 May 2010
Posts: 46

PostPosted: Jun 10, 2010 11:07 pm    Post subject: how to change the download button Reply with quote

I have a jpg 206x46 with which id like to replace the current download button.

thanks.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 22 Mar 2006
Posts: 1123

PostPosted: Jun 11, 2010 11:56 am    Post subject: Reply with quote

Change input type to "image" and add "src" parameter.
Back to top
View user's profile Send private message Send e-mail
Oswaldt



Joined: 21 May 2010
Posts: 46

PostPosted: Jun 11, 2010 4:27 pm    Post subject: Reply with quote

in what file? download1.html?
Back to top
View user's profile Send private message
komi



Joined: 27 Nov 2009
Posts: 159

PostPosted: Jun 11, 2010 7:52 pm    Post subject: Reply with quote

Yes.
Back to top
View user's profile Send private message
Oswaldt



Joined: 21 May 2010
Posts: 46

PostPosted: Jun 13, 2010 10:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
admin
Site Admin


Joined: 22 Mar 2006
Posts: 1123

PostPosted: Jun 15, 2010 12:13 pm    Post subject: Reply with quote

There should be URL to image, but not local path
Back to top
View user's profile Send private message Send e-mail
komi



Joined: 27 Nov 2009
Posts: 159

PostPosted: Jun 15, 2010 2:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group