How to limit the number of video uploads per user in Clip-Bucket v2

A fellow follower of our Blog, recently asked for a way of limiting the maximum number of videos a user can upload. In this article, I will show you how you can do just that! This article has been tested in version 2.6 of Clip-Bucket.

1. Open ./upload.php

2. Find


after that, add the following code

$video_limit = 10; //Change this as per your needs
	if($userquery->get_user_field(userid(),"total_videos") =< $video_limit) {

4. Where it says $video_limit = 10;, modify the 10 to the limit you want to set per user.

5. Find


and after that, add the following code

} else { 
		header("Location: ".BASEURL);

6. Save & Upload

There you go! Once a user has exceeded that limit, it won’t be able to upload. You can make this modification more user friendly by showing them a message saying they couldn’t upload because they have exceeded the limit of X uploads per user.

If you get stuck at any step or need some assistance, do let me know and I’ll be more than glad to help you out.

Best Regards,
Richi González

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.

2 Comments on How to limit the number of video uploads per user in Clip-Bucket v2

  1. Vesontio says:

    Nice useful article but no more working on ClipBucket 2.7
    Is it possible to get the code for CB 2.7 ?
    Thanks !

Leave a Reply

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