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

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

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

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 became a Liaison between Arvixe and Clip-Bucket, so I am here to assist you with anything you need regarding Clip-Bucket or any particular computer-related subject you need. Best Regards, Richi

Leave a Reply

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


3 × = 21

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>