where i can change download link with a button

admin2102

New Member
YetiShare User
Jan 15, 2013
85
0
0
Open up share_file.php it should be in the root of your site.

I will show you both places

Find:
Code:
<?php echo safeOutputToScreen($file->originalFilename, null, 70); ?>&nbsp;&nbsp;<a href="<?php echo safeOutputToScreen($file->getFullShortUrl()); ?>" target="_blank">(<?php echo t('download', 'download'); ?>)</a>
Replace with:
Code:
<?php echo safeOutputToScreen($file->originalFilename, null, 70); ?>&nbsp;&nbsp;<a href="<?php echo safeOutputToScreen($file->getFullShortUrl()); ?>" target="_blank"><img src="Path to your image you want displayed"></a>
That will replace the first download link if you want to replace where it says url with a image

Find:
Code:
<td class="first">
                                <?php echo UCWords(t('url', 'url')); ?>:
                            </td>
                            <td>
                                <a href="<?php echo safeOutputToScreen($file->getFullShortUrl()); ?>" target="_blank"><?php echo safeOutputToScreen($file->getFullShortUrl()); ?></a>
Replace with:
Code:
<?php echo UCWords(t('url', 'url')); ?>:
                            </td>
                            <td>
                                <a href="<?php echo safeOutputToScreen($file->getFullShortUrl()); ?>" target="_blank"><img src="Path to your image you want displayed"></a>