Add Button

iguanashare4743

New Member
YetiShare User
Feb 7, 2015
125
0
0
Any way to change the ( Download ) text to a [ Download ] Button ??

Please check image to know what i mean .

 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
change the button code in this file
"plugins/mediaplayer/includes/_append_file_download_bottom.php"
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
i got multiple custom lines of codes in my file. in mine, its line: 624 but your will probably be different. do a search in that file and look for "$originalFileObj->generateDirectDownloadUrl();" (without double quotes) and that's the line you can change your code to display a button instead of just text.
 

iguanashare4743

New Member
YetiShare User
Feb 7, 2015
125
0
0
sukhman21 said:
i got multiple custom lines of codes in my file. in mine, its line: 624 but your will probably be different. do a search in that file and look for "$originalFileObj->generateDirectDownloadUrl();" (without double quotes) and that's the line you can change your code to display a button instead of just text.
First thank you sukhman21 , ur being so helpful over here for me and other members .

Last question , you mean i can change the code :


code: "$originalFileObj->generateDirectDownloadUrl();"

with : <a href="myfile.htm"><img src="anypic.gif" border="0"></a>
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
you r welcome!!
No here i ll give you an example

replace
Code:
<a href="<?php echo $originalFileObj->generateDirectDownloadUrl(); ?>" target="_blank">(<?php echo t('download', 'download'); ?>)</a>
with something like this
Code:
<a href="<?php echo $originalFileObj->generateDirectDownloadUrl(); ?>" target="_blank">(<?php echo t('download', 'download'); ?>)
<YOUR IMAGE CODE GOES HERE>
</a>