Sunday, May 3, 2015

Display number of subscripers on a video page in ClipBucket

ClipBucket is the fastest growing video script which was first started as Youtube Clone, it is not that excellent but it the best around here.

Developed by Arslan Hassan originally, a brilliant programmer who later turned the project into, an unblocked YouTube clone in pakistan, Arslan made a fortune out of his projects. 

One of clipbucket problems is that it doesn't show the number of subscribers on a video page.

Many users who are cloning YouTube or would like to create a script similar to YouTube would love to show the number of subscribers in the script.

Fortunately, since I examined every piece of code in clipbucket, I easily know how to do it, it is extremely simple.

First go to watch_video.php and add the following:

//Getting the user information - Read more: BLOG.GEORGECHALHOUB.COM
echo $u = $vdo['username'];
$u = mysql_clean($u);
$udetails = $userquery->get_user_details($u);
//End Getting the user information

Then go to watch_video.html and add the following smarty line where you want to display the number:


That's it. It is pretty simple. The code should any version of clipbucket: 2.0 - 2.1 - 2.6 - 2.7.


Post a Comment