How to Hide Download Link for X Seconds in Clip-Bucket v2.6


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">
	setTimeout(function() {   //calls click event after a certain time
	}, 10000);

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,


Looking for quality Clip-Bucket hosting? Try out Arvixe and you won’t be disappointed.
Tags: , , , , , , , , , , , , , , , | Posted under ClipBucket | RSS 2.0

Author Spotlight

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

Leave a Reply

Your email address will not be published. Required fields are marked *