Hello,
Somebody in the Official Clip-Bucket Forums asked how they could hide the download link after certain time had passed, so I decided to share this with all of you. Learn how to do the former in Clip-Bucket v2.6.
Make sure you keep a backup of all the files to be edited, in case you later want to revert the changes.
1. Open ./styles/cbv2new/layout/global_header.html
2. Find
{include_header file='global_header'}
and after that line, paste
{if $smarty.const.THIS_PAGE =='watch_video'} <script type="text/javascript"> {literal} setTimeout(function() { //calls click event after a certain time $('#downloadlabel').show(); }, 10000); {/literal} </script> {/if}
The 10000, is the number of milliseconds you want to wait before showing the download link. Change that number as per your needs.
3. Open ./styles/cbv2new/layout/watch_video.html
4. Find
<label><a href="{videoLink vdetails=$vdo type=download}">{lang code='click_to_download_video'}</a></label>
and replace that line, with
<label id='downloadlabel' style='display:none'><a href="{videoLink vdetails=$vdo type=download}">{lang code='click_to_download_video'}</a></label>
5. Save & Upload.
That’s all! Remember that this will only work when they have JS enabled in their browsers. Should you have any questions, feel free to contact me so I can further assist you. Comments are welcome!
Best Regards,
Richi