Quote:
Originally Posted by phill2003
The disclaimer thing is awesome thanks.
One thing though, to get it to work right (so the download button will not work on the file listing page you need to make a couple of changes in downloads.php
find
Code:
$filethumb = '<a href="./downloads.php?do=file&id='.$file['id'].'&act=down" '.$target.'><img src="'.$dl->url.$thumb_x['thumb'].'" align="middle" title="'.$vbphrase['ecdownloads_download'].' '.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a> ';
and change it too
Code:
$filethumb = '<a href="./downloads.php?do=file&id='.$file['id'].'" '.$target.'><img src="'.$dl->url.$thumb_x['thumb'].'" align="middle" title="'.$vbphrase['ecdownloads_download'].' '.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a> ';
Then you need to find
Code:
$download = '<a href="./downloads.php?do=file&id='.$file['id'].'&act=down" '.$target.'><img src="'.$stylevar[imgdir_button].'/'.$vbphrase['ecdownloads_download_pic'].'" width="15" height="15" align="middle" title="'.$vbphrase['ecdownloads_download'].' '.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a> ';
and replace it with
Code:
$download = '<a href="./downloads.php?do=file&id='.$file['id'].'" '.$target.'><img src="'.$stylevar[imgdir_button].'/'.$vbphrase['ecdownloads_download_pic'].'" width="15" height="15" align="middle" title="'.$vbphrase['ecdownloads_download'].' '.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a> ';
This stops the images being download links and the little giff downloading the fiel so people have now go to go into the download file page and click on the disclaimer tick box...
Hope this helps...
|
I have not done this yet, but everything seems to be working okay without having to do this yet.
I placed the code above this
Code:
<a href="downloads.php?do=file&id={$file['id']}&act=down" {$target}><img src="$stylevar[imgdir_button]/download.gif" alt="{$vbphrase['ecdownloads_download']}" title="{$vbphrase['ecdownloads_download']} {$file['name']}" border="0" /></a>
Then after I removed the above.
Can anyone else confirm if what he did should be done as well.
Also how do I get the old download button to show instead of the new one, or is that not possible with this.
thanks.