revision of Admin area bugs completed

This commit is contained in:
Fahad Abbas 2014-05-26 06:30:39 +00:00
parent eda42cce46
commit 9b4fddefc0
32 changed files with 521 additions and 120 deletions

View file

@ -62,6 +62,7 @@ if(@$_GET['msg']){
$data = get_video_details($video);
Assign('udata',$userquery->get_user_details($data['userid']));
Assign('data',$data);
//pr($data,true);
}else{
$msg[] = lang('class_vdo_del_err');
}

View file

@ -54,6 +54,7 @@ if(isset($_POST['update_order']))
assign('videos',$ep_videos);
assign('max',get_highest_sort_number());
assign('min',get_lowest_sort_number());

View file

@ -234,6 +234,7 @@ function format_number($number) {
}
}
Assign(BASEURL,'baseurl');
//subtitle(lang('video_manager'));
template_files('index.html');

View file

@ -1,7 +1,8 @@
<div class="advanceSearchButton clearfix">
<a href="#" class="btn btn-primary btn-sm pull-right" onclick="$('#collectionsearchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
<a href="#" class="btn btn-primary btn-sm pull-right current after" onclick="$('#collectionsearchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
Advanced Search
<i class="glyphicon glyphicon-chevron-down"></i>
<i class="glyphicon glyphicon-chevron-down down"></i>
<i class="glyphicon glyphicon-chevron-up up" style="display:none"></i>
</a>
</div>
<div class="search_box well" id="collectionsearchdiv" {if $smarty.cookies.show_searchdiv_search!='show'} style="display:none"{/if}>
@ -90,4 +91,29 @@
<input type="submit" name="search" id="search" value="Search" class="btn btn-success btn-sm"/>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function neww () {
$(".current").click(function() {
$(this).toggleClass('after');
if(!$(this).hasClass('after'))
{
$('.down').hide();
$('.up').show();
}
else
{
$('.down').show();
$('.up').hide();
}
});
})
</script >

View file

@ -1,7 +1,8 @@
<div class="advanceSearchButton clearfix">
<a href="#" class="btn btn-primary btn-sm pull-right" onclick="$('#groupsearchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
<a href="#" class="btn btn-primary btn-sm pull-right current after" onclick="$('#groupsearchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
Advanced Search
<i class="glyphicon glyphicon-chevron-down"></i>
<i class="glyphicon glyphicon-chevron-down down"></i>
<i class="glyphicon glyphicon-chevron-up up" style="display:none"></i>
</a>
</div>
<div class="search_box well" id="groupsearchdiv" {if $smarty.cookies.show_groupsearchdiv_search!='show'} style="display:none"{/if}>
@ -64,4 +65,30 @@
</div>
<input type="submit" name="search" id="search" value="Search" class="btn btn-success btn-sm"/>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function neww () {
$(".current").click(function() {
$(this).toggleClass('after');
if(!$(this).hasClass('after'))
{
$('.down').hide();
$('.up').show();
}
else
{
$('.down').show();
$('.up').hide();
}
});
})
</script >

View file

@ -1,7 +1,8 @@
<div class="advanceSearchButton clearfix">
<a href="#" class="btn btn-primary btn-sm pull-right" onclick="$('#membersearchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
<a href="#" class="btn btn-primary btn-sm pull-right current after" onclick="$('#membersearchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
Advanced Search
<i class="glyphicon glyphicon-chevron-down"></i>
<i class="glyphicon glyphicon-chevron-down down"></i>
<i class="glyphicon glyphicon-chevron-up up" style="display:none"></i>
</a>
</div>
<div class="search_box well" id="membersearchdiv" {if $smarty.cookies.show_memsearchdiv_search!='show'} style="display:none"{/if}>
@ -30,8 +31,8 @@
<div class="form-group">
<label for="status">Status</label>
<select name="status" id="status" class="form-control">
<option value="" ></option>
<option value="Ok" {if $smarty.get.status=='Ok'} selected="selected"{/if}>OK</option>
<option value="Ok" {if $smarty.get.status=='Ok'} selected="selected"{/if}>Active</option>
<option value="ToActivate" {if $smarty.get.status=='ToActivate'} selected="selected"{/if}>Inactive</option>
</select>
</div>
@ -43,8 +44,9 @@
<div class="form-group">
<label for="banned">Banned</label>
<select name="ban" id="ban" class="form-control">
<option value="yes" {if $smarty.get.ban=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.ban=='no'} selected="selected"{/if}>No</option>
<option value="yes" {if $smarty.get.ban=='yes'} selected="selected"{/if}>Yes</option>
</select>
</div>
</div>
@ -52,8 +54,9 @@
<div class="form-group">
<label for="featured">Featured</label>
<select name="featured" id="featured" class="form-control">
<option value="Yes" {if $smarty.get.featured=='Yes'} selected="selected"{/if}>Yes</option>
<option value="No" {if $smarty.get.featured=='No'} selected="selected"{/if}>No</option>
<option value="Yes" {if $smarty.get.featured=='Yes'} selected="selected"{/if}>Yes</option>
</select>
</div>
</div>
@ -90,4 +93,32 @@
<input type="submit" name="search" id="search" value="Search" class="btn btn-success btn-sm"/>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function neww () {
$(".current").click(function() {
$(this).toggleClass('after');
if(!$(this).hasClass('after'))
{
$('.down').hide();
$('.up').show();
}
else
{
$('.down').show();
$('.up').hide();
}
});
})
</script >

View file

@ -1,7 +1,8 @@
<div class="advanceSearchButton clearfix">
<a href="#" class="btn btn-primary btn-sm pull-right" onclick="$('#searchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
<a href="#" class="btn btn-primary btn-sm pull-right current after" onclick="$('#searchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
Advanced Search
<i class="glyphicon glyphicon-chevron-down"></i>
<i class="glyphicon glyphicon-chevron-down down"></i>
<i class="glyphicon glyphicon-chevron-up up" style="display:none"></i>
</a>
</div>
<div class="search_box well" id="searchdiv" {if $smarty.cookies.show_searchdiv_search!='show'} style="display:none"{/if}>
@ -77,4 +78,30 @@
<input class="btn btn-success btn-sm" type="submit" name="search" id="search" value="Search"/>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function neww () {
$(".current").click(function() {
$(this).toggleClass('after');
if(!$(this).hasClass('after'))
{
$('.down').hide();
$('.up').show();
}
else
{
$('.down').show();
$('.up').hide();
}
});
})
</script >

View file

@ -1,8 +1,10 @@
<div class="advanceSearchButton clearfix">
<a href="#" class="btn btn-primary btn-sm pull-right" onclick="$('#searchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
<a href="#" class="btn btn-primary btn-sm pull-right current after" onclick="$('#searchdiv').toggle();return false;" style="margin-bottom: 0px;position: relative; top: 15px;z-index:10000">
Advanced Search
<i class="glyphicon glyphicon-chevron-down"></i>
<i class="glyphicon glyphicon-chevron-down down"></i>
<i class="glyphicon glyphicon-chevron-up up" style="display:none"></i>
</a>
</div>
<div class="search_box well" id="searchdiv" {if $smarty.cookies.show_searchdiv_search!='show'} style="display:none"{/if}>
<form id="video_search" name="video_search" method="get" action="video_manager.php" class="video_search">
@ -37,9 +39,9 @@
<div class="form-group">
<label for="featured">Featured</label>
<select class="form-control" name="featured" id="featured">
<option value="" ></option>
<option value="yes" {if $smarty.get.featured=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.featured=='no'} selected="selected"{/if}>No</option>
<option value="yes" {if $smarty.get.featured=='yes'} selected="selected"{/if}>Yes</option>
</select>
</div>
</div>
@ -47,7 +49,6 @@
<div class="form-group">
<label for="active">Active</label>
<select class="form-control" name="active" id="active">
<option value="" ></option>
<option value="yes" {if $smarty.get.active=='yes'} selected="selected"{/if}>Yes</option>
<option value="no" {if $smarty.get.active=='no'} selected="selected"{/if}>No</option>
</select>
@ -57,7 +58,7 @@
<div class="form-group">
<label for="status">Conversion Status</label>
<select class="form-control" name="status" id="status">
<option value="" ></option>
<option value="Successful" {if $smarty.get.status=='Successful'} selected="selected"{/if}>Successful</option>
<option value="Processing" {if $smarty.get.status=='Processing'} selected="selected"{/if}>Processing</option>
<option value="Failed" {if $smarty.get.status=='Failed'} selected="selected"{/if}>Failed</option>
@ -85,4 +86,31 @@
<input type="submit" name="search" id="search" value="Search" class="btn btn-success btn-sm"/>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function neww () {
$(".current").click(function() {
$(this).toggleClass('after');
if(!$(this).hasClass('after'))
{
$('.down').hide();
$('.up').show();
}
else
{
$('.down').show();
$('.up').hide();
}
});
})
</script >

View file

@ -22,8 +22,8 @@
<tr>
<td width="40" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head">CID</td>
<td class="head">Comment</td>
<td width="85" class="head"><strong>CID</strong></td>
<td class="head"><strong>Comment</strong></td>
</tr>
</table>
@ -39,11 +39,11 @@
{/if}
<tr>
<td width="50"><input name="check_comments[]" type="checkbox" id="check_comments" value="{$comment.comment_id}" /></td>
<td>{$comment.comment_id}</td>
<td width="40"><input style="margin-left:5px;margin-top:10px;"name="check_comments[]" type="checkbox" id="check_comments" value="{$comment.comment_id}" /></td>
<td >{$comment.comment_id}</td>
<td onmouseover="$('#comm_opt-{$comment.comment_id}').show()" onmouseout="$('#comm_opt-{$comment.comment_id}').hide()" >
{if $type == '' || $type == 'v'}
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <span id="{$comment.comment_id}" class="edit_comment"><strong>{$comment.comment}</strong></span>
{if is_array($comment_owner)} <a href="{$userquery->profile_link($comment_owner)}"><strong>{$comment_owner.username}</strong></a> {else} <span id="{$comment.comment_id}" class="edit_comment"><strong style="margin-left:-10px;">{$comment.comment}</strong></span>
<div class="videoTitle row">
<div class="col-md-10">
<a href="view_user.php?uid={$video.userid}">{$comment_owner}</a> {/if} commented on a video named <a href="{videoLink vdetails=$comment}" title="{$comment.title}">{$comment.title|truncate:40}</a>

View file

@ -2,19 +2,19 @@
{assign var=otherFields value=$cbcollection->load_other_fields($data)}
<div class="heading clearfix marginBottomLarge paddingBottomSmall">
<h2 class="pull-left">Editing <small>&gt;&gt; {$data.collection_name}</small></h2>
<h2 class="pull-left">Editing <small>&gt; {$data.collection_name}</small></h2>
<div class="pull-right">
<span class="btn btn-app btn-sm btn-light no-hover">
<span class="line-height-1 bigger-170 blue">{$data.views|number_format}</span>
<span class="line-height-1 smaller-90 blue">{$data.views|number_format}</span>
<br>
<span class="line-height-1 smaller-90"> Views </span>
</span>
<span class="btn btn-app btn-sm btn-yellow no-hover">
{$comments = $data.comments_count}
{if $comments > 0}
<span class="line-height-1 bigger-170"> {$data.comments_count} </span>
<span class="line-height-1 smaller-90"> {$data.comments_count} </span>
{else}
<span class="line-height-1 bigger-170">0</span>
<span class="line-height-1 smaller-90">0</span>
{/if}
<br>
<span class="line-height-1 smaller-90"> Comments </span>
@ -40,14 +40,14 @@
{if $FlaggedPhotos != NULL}
{$FlaggedPhotos[list].total_flags}
{section name=list loop=$FlaggedPhotos}
<span class="line-height-1 bigger-170">
<span class="line-height-1 smaller-90">
{$FlaggedPhotos[list].total_flags}
</span>
{/section}
<br>
<span class="line-height-1 smaller-90"> Flagged </span>
{else}
<span class="line-height-1 bigger-170">
<span class="line-height-1 smaller-90">
0
</span>
<br>
@ -78,15 +78,43 @@
</ul>
<div class="tab-content">
<div id="cldetails" class="tab-pane active">
<fieldset class="fieldset">
<table class="myTable" width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td class="first"><label for="">Collection Id</label></td></td>
<td class="last"><p><span><input disabled="disabled" name="collecionID" type="text" id="collecionID" value="{$data.collection_id}" size="30" />
</span></p></td>
</tr>
{foreach from=$requiredFields item=field}
<tr>
<td class="first"><label for="" style="width:160px;">{$field.title}</label></td>
<td class="last" ><p><span>{$formObj->createField($field)}</span></p></td>
</tr>
{/foreach}
</table>
</fieldset>
<!--
<table class="myTable">
<tr>
<td class="first"><label for="">Collection Id</label></td></td>
<td class="last"><p><span>{$data.collection_id}</span></p></td>
<td class="last"><p><span>{$data.collection_id}</span></p></td>
<td class="last"><p>bollywood</p></td>
</tr>
{foreach from=$requiredFields item=field}
{if $field.title=='Collection name'}
{foreach from=$requiredFields item=field}
{if $field.title=='Collection name'}
<tr>
<td class="first"><label for="">{$field.title}</label></td>
<td class="last"><p><span>{$data[$field.db_field]}</span></p></td>
@ -126,12 +154,12 @@
{foreach from=$requiredFields item=field}
{if $field.title=='Collection category'}
<!-- <label>{$field.title}</label>
label>{$field.title}</label>
<div class="tab-content scroll">
{$formObj->createField($field)}
</div> -->
</div>
{/if}
{/foreach}
{/foreach}-->
</div>
<div id="uinformation" class="tab-pane">

View file

@ -1,6 +1,6 @@
<form action="" method="post" name="edit_photo" id="edit_photo">
<div class="heading">
<h2>Editing <small>&gt;&gt; {$data.photo_title|truncate:40}</small></h2>
<h2>Editing <small>&gt; {$data.photo_title|truncate:40}</small></h2>
</div>
<div class="btn-group">

View file

@ -4,43 +4,71 @@
<form action="" method="post" name="edit_video" id="edit_video">
<div class="row">
<div class="heading clearfix">
<h2 class="pull-left paddingLeftLarge">Editing <small>&gt;&gt; {$data.title|truncate:80}</small></h2>
<h2 class="pull-left paddingLeftLarge">Editing <small>&gt; {$data.title|truncate:80}</small></h2>
<div class="pull-right marginBottomLarge paddingBottomLarge">
<span class="btn btn-app btn-sm btn-light no-hover">
<span class="line-height-1 bigger-150 blue">{$data.views|format_number}</span>
<span class="line-height-1 smaller-90 blue">{$data.views|format_number}</span>
<br>
<span class="line-height-1 smaller-90"> Views </span>
</span>
<span class="btn btn-app btn-sm btn-yellow no-hover">
<span class="line-height-1 bigger-150"> {$data.comments_count} </span>
<span class="line-height-1 smaller-90"> {$data.comments_count} </span>
<br>
<span class="line-height-1 smaller-90"> Comments </span>
</span>
<span class="btn btn-app btn-sm btn-pink no-hover">
<span class="line-height-1"> {if $data.active=='yes'}<span class="glyphicon glyphicon-ok bigger-150"></span>
<span class="line-height-1"> {if $data.active=='yes'}<span class="glyphicon glyphicon-ok smaller-90"></span>
{else}<span class="glyphicon glyphicon-remove">{/if}</span>
<br>
<span class="line-height-1 smaller-90"> Active</span>
</span>
</span>
<span class="btn btn-app btn-sm btn-grey no-hover">
<span class="line-height-1"> {if $data.featured=='No'}<span class="glyphicon glyphicon-ok bigger-150"></span>
<span class="btn btn-app btn-sm btn-grey no-hover">
<span class="line-height-1"> {if $data.featured=='yes'}<span class="glyphicon glyphicon-ok smaller-90"></span>
{else}<span class="glyphicon glyphicon-remove">{/if}</span>
<br>
<span class="line-height-1 smaller-90">Featured</span>
</span>
</span>
<a href="?add_editor_pick={$data.videoid}">
<!--
<span class="btn btn-app btn-sm btn-success no-hover">
<span class="line-height-1 bigger-170"><span class="glyphicon glyphicon-remove"></span></span>
<span class="line-height-1">
{foreach from=$cbvid->video_manager_links_neww item=links}
{$cbvid->video_manager_link_neww($links,$data)}
{/foreach}
<br>
<span class="line-height-1 smaller-90"> Editor Pick </span>
<span class="line-height-1 smaller-90">Editor Pick</span>
</span>
</a>
</span>
-->
<span class="btn btn-app btn-sm btn-success no-hover">
<span class="line-height-1"> {if $data.in_editor_pick=='yes'}<span class="glyphicon glyphicon-ok smaller-90"></span>
{else}<span class="glyphicon glyphicon-remove">{/if}</span>
<br>
<span class="line-height-1 smaller-90">Editor Pick</span>
</span>
</span>
<span class="btn btn-app btn-sm btn-primary no-hover">
<span class="line-height-1"> {if $data.flagged=='yes'}<span class="glyphicon glyphicon-ok smaller-90"></span>
{else}<span class="glyphicon glyphicon-remove">{/if}</span>
<br>
<span class="line-height-1 smaller-90"> FLAGGED</span>
</span>
</span>
<!--
<span class="btn btn-app btn-sm btn-primary no-hover">
{section name=list loop=$flagedVideos}
@ -49,6 +77,11 @@
<br>
<span class="line-height-1 smaller-90"> Flagged </span>
</span>
-->
</div>
</div>
<div class="col-md-6">
@ -277,8 +310,8 @@
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12">
<div class="col-md-12" style="height:300px">
{FlashPlayer vdetails=$data width='100%' height='300px' }
<div class="col-md-12" style="height:250px;margin-left:2.5px;" >
{FlashPlayer vdetails=$data width='100%' height='100%' }
</div>
<div class="head col-md-12">

View file

@ -44,7 +44,10 @@
<span class="labels1"> <strong>{$video.date_added|niceTime}</strong>
{lang code='views'} : <strong>{$video.views|number_format}</strong></span>
<div class="labels">
{if $video.featured=='yes'}<span class="label label-primary">Featured{else}{/if}</span>
{if $video.featured=='yes'}<span class="label label-primary">Featured</span>{else}<span class="label label-primary">Unfeatured</span>{/if}
<span class="label label-info">
{$video.featured}</span>
<span class="label {if $video.active=='yes'}label-success{else}label-warning{/if}">
{if $video.active=='yes'}Active{else}InActive{/if} </span>
<span class="label {if $video.status=='Successful'}label-success{else}label-warning{/if}">

View file

@ -253,19 +253,8 @@
</div>
</div>
<div class="widget-body">
<div class="widget-main">
<div class="alert alert-info">
<p class="alert-info"><b>Words from ClipBucket!</b></p>
<hr>
<small><b>Head's Up its Clipbucket</b></small>
<li>What lies head?</li>
<p>
* Easy ClipBucket integeration with other applications<br>
* Make more secured, fast and optimized<br>
* HTML5 ready with mobile support<br>
* Full documentation of our source code
</p>
</div>
<div id="clipbucket_news" class="widget-main">
</div>
</div>
</div>
@ -769,9 +758,9 @@
</div>
-->
<!--
<div class="well" style="margin-top: 14px">
<h3>Who We Are</h3>
<h3>WE ARE GOING TO SHOW THEM WHO WE ARE</h3>
<p>ClipBucket is developed by <strong><a href="http://arslanhassan.com">Arslan Hassan</a></strong> and <strong><a href="http://clip-bucket.com/fawaz-tahir">Fawaz Tahir</a></strong>, we started with a small website application with only functionality of serving videos to the community later on we decided to add every possible social networking feature to make social communities more interactive. We didn't have any milestones, no road map, no charts, no nothing. Only thing we had was a vision as of our captain <strong><a href="http://clip-bucket.com/jahanzeb-hassan">Jahanzeb Hassan</a></strong> and plenty of hard work. </p>
<p>We also have two more members named <a href="http://clip-bucket.com/ruman-malik">Ruman Malik</a> and <a href="http://clip-bucket.com/zomail-tahir">Zomail Tahir</a> who manage sales and support department.</p>
<p><strong>ClipBucket team gives special thanks to</strong><br />
@ -785,10 +774,67 @@
<p>We belong to <a href="http://clip-bucket.com/pakistan">Islamic Republic of Pakistan</a> :) you may have seen many negative news about Pakistan on television but there are still <a href="http://clip-bucket.com/pakistan#the_truth">some facts</a> you should know about. Its a great country for us and we will always love it.<br />
<strong>Pakistan Zindabad </strong></p>
</div>
-->
<div class="well" style="margin-top: 14px;background:;border:1px solid rgba(128, 213, 255, 1);" >
<h3>WHO WE ARE</h3>
<p style="text-align:left;"><strong><a href="http://clip-bucket.com/" target="self">ClipBucket</a></strong> would not been possible without its team hardwork and determination for the betterment of the products quality and its services. We are proud that over _____ users are using worlds most popular open source video,audio and photo sharing script named
<strong>ClipBucket</strong>. We are team who is determined to deliver the best features to the open source community.
</p>
<p style="text-align:left;margin-top:20px; "><strong>Clipbucket</strong> was made in the year 2006 with the idea to bring a better platform for organizations and companies interested in launching their own video,audio or photo sharing website. In every version our mission and goal is to simplify the technology by adopting new technological methods and techniques to cut down several frontend and backend issues faced. The idea is to give the user a chance to explore more with the flexibility of our product.
We never compromise on our product interactivity. We always try to create a simple yet interactive and elegant design so that the user can have the best experience of the functions. With the improved social networking options like channels and groups. With ClipBuckets unmatched quantifiability, users will stretch their applications from family videos to photo-albums. We started off as a paid product and later realized there is more power in going open-source and here we stand today <strong>#1</strong> video sharing and media management script in the industry.</p>
<h3>OUR TEAM</h3>
<p style="text-align:left;padding-bottom:20px;">However the team behind ClipBucket always kept their heads and nerves, though they faced many difficulties and problems in meeting the requirements. But teams coordination and their creative techniques of solving issues and overcoming them with the best possible solution helped us in presenting Pakistan on international platform in the field of technology by bringing “Clip Bucket” A complete open source multimedia management script.
</p>
<div class="fahad">
<p>Founders <strong><a href="http://clip-bucket.com/jahanzeb-hassan" target="self">Jahanzeb Hassan</a></strong> and <strong><a href="http://arslanhassan.com" target="self">Arslan Hassan</a></strong></p>
<strong><a href="">Fawaz Tahir</a></strong> - Web Application Team Lead<br>
<strong><a href="">Ruman Malik</a></strong> - Project Manager<br>
<strong><a href="">Muneeb</a></strong> - Mobile Application Team Lead<br>
<strong><a href="">Zomail</a></strong> - Sales and Support<br>
<strong><a href="">Shahzaib</a></strong> - Network Engineer<br>
<strong><a href="">Zunair</a></strong> - SEO and Publishing Manager<br>
<br>
<h5><strong>We are from Pakistan with high heads and soft hearts</strong></h5>
<p style="padding-bottom:20px;">Pakistan is always been in the news for the bad reasons and has been criticized by the rest of the world,even then the people of Pakistan are patriotic and stand united for the goodwill of their country.no matter how worst the situation gets the youth is eager enough to bring out the best in all the fields like media,communication, IT and science. IT industry is fast growing with a large potential and is regarded as a successful sector even in countrys worst financial crisis. as the IT industry in Pakistan is growing like wise the demand for the softwares and programmes has taken up a rapid growth. ClipBucket is one of the fastest and the most used media sharing script with all the latest features and enhancements in the social media. We as Pakistani feel proud on creating this product which will lead our country to the highest levels in the international market.</p>
</div>
<p><button id="addTodo" class="btn btn-primary btn-sm clip_read clip_hide" style="float:right;margin-right:10px;margin-top:-30px;">Read More</button></p>
</div>
<style type="text/css">
.fahad{
display: none;
}
.flot_chart1{
height: 200px;
width: 400px;
@ -802,9 +848,57 @@
</style>
<script type="text/javascript">
$(function() {
<script type="text/javascript">
$( document ).ready(function() {
$(".clip_read").click(function() {
$(this).toggleClass('clip_hide');
if(!$(this).hasClass('clip_hide'))
{
$('.fahad').show();
$(".clip_read").text("Hide");
}
else
{
$('.fahad').hide();
$(".clip_read").text("Read More");
}
});
var baseurl="{$baseurl}";
$.ajax({
// url: baseurl+'/ajax.php',
url:baseurl+'/ajax.php',
type: "POST",
dataType : 'text',
data: { mode: "get_news"},
success : function(news){ $('#clipbucket_news').html(news) },
timeout : 5000,
error : function(err) { $('#clipbucket_news').html(' <div align="center"><em><strong>Unable to fetch news</strong></em></div>')},
});
});
$(function() {
var options = {
@ -838,6 +932,8 @@
var ChartsWorker = function(options){
this.options = options;
this.getUsersStatistics = function(callback){
var self = this;

View file

@ -618,26 +618,39 @@
</div>
</div>
<div class="row">
<!--
<div class="col-md-4">
<label for="flvtool2path">Flvtool2 Path</label>
<input class="form-control" name="flvtool2path" type="text" id="flvtool2path" value="{$row.flvtool2path}" size="45" />
<a href="http://docs.clip-bucket.com/clipbucket-docs/flvtool2" target="_blank">
<img src="{$imageurl}/help.png" alt="FLVTool2 info" border="0" class="tipsy_tip" title="FLVTool2 Binary Paths - Click For More Details" /></a>
</div>
-->
<div class="col-md-4">
<label for="mplayerpath">Mplayer Path</label>
<input class="form-control" name="mplayerpath" type="text" id="mplayerpath" value="{$row.mplayerpath}" size="45" />
<a href="http://docs.clip-bucket.com/clipbucket-docs/mplayer" target="_blank"><img src="{$imageurl}/help.png" alt="Mplayer info" border="0" class="tipsy_tip" title="MPlayer - Highly efficient library for generating thumbs from a video" /></a>
</div>
<div class="col-md-4">
<label for="max_conversion">Max video Processes at once</label>
<input class="form-control" name="max_conversion" type="text" id="max_conversion" value="{$row.max_conversion}" size="45" />
</div>
<div class="col-md-4">
<label for="max_time_wait">Max time wait after max processess</label>
<input class="form-control" name="max_time_wait" type="text" id="max_time_wait" value="{$row.max_time_wait}" size="45" />
</div>
<!--
<div class="col-md-4">
<label for="flvtoolpp">Flvtoo++ Path</label>
<input class="form-control" name="flvtoolpp" type="text" id="flvtoolpp" value="{$row.flvtoolpp}" size="45" />
<a href="http://docs.clip-bucket.com/clipbucket-docs/mplayer" target="_blank"><img src="{$imageurl}/help.png" alt="Flvtool++ info" border="0" class="tipsy_tip" title="FLVTool++ - Flv Meta Data Injector from Facebook, flvtool2 can take upto an hour which flvtool++ can do it in minutes, or sometimes seconds" /></a>
</div>
-->
</div>
<div class="row">
<!--
<div class="col-md-4">
<h5>Quickk Conversion</h5>
<label class="checkbox" for="quick_conv">
@ -646,7 +659,8 @@
<a href="javascript:void(0)" target="_blank"><img src="{$imageurl}/help.png" alt="info" border="0" class="tipsy_tip" title="If you check this option, videos will be converted as soon as uploading is complete, make sure your php path is correct before enabling this option otherwise may cause your website inaccessible" /></a>
</label>
</div>
-->
<!--
<div class="col-md-4">
<h5>Server Friendly Conversion</h5>
<label for="server_friendly_conversion">
@ -655,11 +669,8 @@
<a href="javascript:void(0)" target="_blank"><img src="{$imageurl}/help.png" alt="info" border="0" class="tipsy_tip" title="If you enable this option then sever will process 1 video at a time, once it is finished, it will start processing new video" /></a>
</label>
</div>
<div class="col-md-4">
<label for="max_conversion">Max video Processes at once</label>
<input class="form-control" name="max_conversion" type="text" id="max_conversion" value="{$row.max_conversion}" size="45" />
</div>
-->
</div>
<div class="row">
<div class="col-md-4">
@ -668,10 +679,7 @@
Sperate by comma [case insensitive]
</div>
<div class="col-md-4">
<label for="max_time_wait">Max time wait after max processess</label>
<input class="form-control" name="max_time_wait" type="text" id="max_time_wait" value="{$row.max_time_wait}" size="45" />
</div>
<div class="col-md-4">
<label for="max_upload_size">Max upload file size</label>
@ -679,14 +687,18 @@
in MegaBytes <br />
Default PHP Max Upload size is <strong>{$upload_max_size}</strong> and Post max size is <strong>{$post_max_size}</strong>, if you set max upload file size larger than this, it will be override by default, however, if set lower than default, it will work fine.
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="col-md-4">
<label for="max_video_duration">Max upload durations</label>
<input class="form-control" name="max_video_duration" type="text" id="max_video_duration" value="{$row.max_video_duration}" size="15" maxlength="5" />
in minutes
</div>
</div>
<div class="row">
<div class="col-md-2 marginTopLarge">
<label class="checkbox">
<input name="keep_original" type="checkbox" id="keep_original" value="1" {if $row.keep_original} checked="checked"{/if} />Save original file

View file

@ -65,8 +65,9 @@
Actions<i class="icon-angle-down icon-on-right"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li><a role="menuitem" tabindex="-1" href="view_user.php?uid={$u.userid}">Edit</a></li>
<li><a role="menuitem" tabindex="-1" href="view_user.php?uid={$u.userid}">View</a></li>
<li><a role="menuitem" tabindex="-1" href="view_user.php?uid={$u.userid}">Edit</a></li>
{if $u.usr_status == Ok}
<li><a role="menuitem" tabindex="-1" href="?deactivate={$u.userid}">Deactivate</a></li>
{elseif $u.usr_status == ToActivate}

View file

@ -4,6 +4,12 @@
</div>
<form name="photo_manager" method="post">
<div class="btn-group marginBottom">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
{if $smarty.get.active!='no'}
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate"
class="button"/>
{/if}
<input type="submit" name="move_to_selected" value="Move To" class="btn btn-primary btn-xs"/>
<input type="submit" name="make_featured_selected" value="Make Featured" class="btn btn-primary btn-xs"/>
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="btn btn-primary btn-xs"/>
<input type="submit" name="delete_selected" value="Delete" class="btn btn-primary btn-xs" onclick="return confirm_it('Are you sure you want to delete selected photos(s). This will permanently delete these photos from website.')"/>
@ -95,6 +101,13 @@
<div class="dropdown">
<button class="btn btn-primary btn-xs dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">Actions<i class="icon-angle-down icon-on-right"></i></button>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1">
<li>
<a href="edit_photo.php?photo={$photos[list].photo_id}">Edit</a>
</li>
<li>
<a href="{$baseurl}/view_item.php?item={$photos[list].photo_key}&amp;type=photos&amp;collection={$photos[list].collection_id}" target="_blank">View</a>
</li>
<li>
{if $photos[list]['active'] == 'yes'}
<a href="?deactivate={$photos[list].photo_id}">Deactivate</a>
@ -102,12 +115,8 @@
<a href="?activate={$photos[list].photo_id}">Activate</a>
{/if}
</li>
<li>
<a href="edit_photo.php?photo={$photos[list].photo_id}">Edit</a>
</li>
<li>
<a href="{$baseurl}/view_item.php?item={$photos[list].photo_key}&amp;type=photos&amp;collection={$photos[list].collection_id}" target="_blank">View</a>
</li>
{if $photos[list].featured == 'yes'}
<li>
<a href="?make_unfeature={$photos[list].photo_id}">Make Unfeatured</a>
@ -126,6 +135,11 @@
{/section}
</table>
<div class="btn-group">
<input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/>
{if $smarty.get.active!='no'}
<input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate"
class="button"/>
{/if}
<input type="submit" name="move_to_selected" value="Move To" class="btn btn-primary btn-xs"/>
<input type="submit" name="make_featured_selected" value="Make Featured" class="btn btn-primary btn-xs"/>
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="btn btn-primary btn-xs"/>

View file

@ -44,7 +44,7 @@
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions <i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
<li>
{if $plug.plugin_active == 'Active'}
{if $plug.plugin_active == 'yes'}
<a href="?deactivate={$plug.plugin_file}{if $plug.plugin_folder!=''}&f={$plug.plugin_folder}{/if}">Deactivate</a>
{else}
<a href="?activate={$plug.plugin_file}{if $plug.plugin_folder!=''}&f={$plug.plugin_folder}{/if}">Activate</a>

View file

@ -6,8 +6,8 @@
<h3 class="pull-left inline">Today</h3>
<h3 class="pull-left inline">
<input type="checkbox" class="ace ace-switch ace-switch-5" id="enableTooltipDaily">
<span class="lbl"></span>
<small class="muted">Enable Tooltip</small></h3></div>
<!-- <span class="lbl"></span>
<small class="muted">Enable Tooltip</small>--></h3></div>
<div class="clearfix"></div>
<div id="daily_chart_id" class="flot_chart">
<img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div>
@ -62,8 +62,8 @@
<h3 class="pull-left inline">This week</h3>
<h3 class="pull-left inline">
<input type="checkbox" class="ace ace-switch ace-switch-5" id="enableTooltipWeekly">
<span class="lbl"></span>
<small class="muted">Enable Tooltip</small></h3></div>
<!-- <span class="lbl"></span>
<small class="muted">Enable Tooltip</small>--></h3></div>
<div class="clearfix"></div>
<div id="weekly_chart_id" class="flot_chart"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div>
@ -121,8 +121,8 @@
<h3 class="pull-left inline">This Month</h3>
<h3 class="pull-left inline">
<input type="checkbox" class="ace ace-switch ace-switch-5" id="enableTooltipMonthly">
<span class="lbl"></span>
<small class="muted">Enable Tooltip</small></h3></div>
<!-- <span class="lbl"></span>
<small class="muted">Enable Tooltip</small>--></h3></div>
<div class="clearfix"></div>
<div id="monthly_chart_id" class="flot_chart"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div>
</div></td>

View file

@ -1,5 +1,6 @@
<div class="heading clearfix">
<h2 class="pull-left">Video Manager</h2>
{include file="$layout_dir/blocks/advanced_search.html" }
</div>
<!-- DIsplaying Videos -->
@ -26,14 +27,13 @@
<td>&nbsp;</td>
</tr>
{if $videos}
{*$smarty.post|print_r*}
{foreach from=$videos item=video}
{foreach from=$videos item=video}
<tr>
<td>
<input name="check_video[]" type="checkbox" id="check_video" value="{$video.videoid}"/>
</td>
<td>{$video.videoid}</td>
<td>{$video.in_editor_pick}</td>
<td>
<div class="row">
<div class="col-md-10">
@ -48,13 +48,24 @@
<span class="labels1"> <strong>{$video.date_added|niceTime}</strong>
{lang code='views'} : <strong>{$video.views|number_format}</strong></span>
<div class="labels">
{if $video.featured=='yes'}<span class="label label-primary">Featured{else}{/if}</span>
<span class="label {if $video.active=='yes'}label-success{else}label-warning{/if}">
{if $video.active=='yes'}Active{else}InActive{/if} </span>
<span class="label {if $video.status=='Successful'}label-success{else}label-warning{/if}">
{$video.status} </span>
<span class="label label-info">
{if $video.featured == 'yes'}Featured{else}Unfeatured{/if}</span>
<span class="label label-info">
Viewed {$video.last_viewed|niceTime}</span>
{foreach from=$cbvid->video_manager_links_new item=links}
{$cbvid->video_manager_link_new($links,$video)}
{/foreach}
</div>
</div>
</div>
@ -77,8 +88,7 @@
</li>
<li><a role="menuitem" tabindex="-1" href="javascript:_cb.Confirm_Delete('?delete_video={$video.videoid}')">Delete</a>
</li>
<li><a role="menuitem" tabindex="-1"
href="?make_unfeature={$video.videoid}">Make Unfeatured</a></li>
<li><a role="menuitem" tabindex="-1" href="?make_unfeature={$video.videoid}">Make Unfeatured</a></li>
{/if}
{if $video.featured == no}
<li><a role="menuitem" tabindex="-1" href="?make_feature={$video.videoid}">Make

View file

@ -4,7 +4,7 @@
<div class="row">
<div class="lead dropdown">
<div class="heading clearfix">
<h3 class="paddingLeftLarge pull-left">Editing <small>&gt;&gt; {$u.username}</small></h3>
<h3 class="paddingLeftLarge pull-left">Editing <small>&gt; {$u.username}</small></h3>
<div class="pull-right marginBottomLarge">
<span class="btn btn-app btn-sm btn-light no-hover">
<span class="line-height-1 blue">{$u.num_visits}</span>

File diff suppressed because one or more lines are too long

View file

@ -238,7 +238,7 @@ class ClipBucket
'Add Member' => 'add_member.php',
'Manage categories' => 'user_category.php',
'User Levels' => 'user_levels.php',
'Search Members' => 'members.php?view=search',
// 'Search Members' => 'members.php?view=search',
'Inactive Only' => 'members.php?search=yes&status=ToActivate',
'Active Only' => 'members.php?search=yes&status=Ok',
'Reported Users' => 'flagged_users.php',
@ -322,7 +322,7 @@ class ClipBucket
'Add Member' => 'add_member.php',
'Manage categories' => 'user_category.php',
'Search Members' => 'members.php?view=search',
// 'Search Members' => 'members.php?view=search',
'Inactive Only' => 'members.php?search=yes&status=ToActivate',
'Active Only' => 'members.php?search=yes&status=Ok',
'Reported Users' => 'flagged_users.php',

View file

@ -177,9 +177,9 @@ class CBvideo extends CBCategory
*/
function get_video( $vid, $file=false, $basic = false )
{
global $db;
global $db, $cb_columns;
$userFields = get_user_fields();
$userFields = $cb_columns->object('users')->temp_change('featured','user_featured')->get_columns();
$videoFields = array( 'video' => '*' );
if ( $basic === true ) {
@ -209,9 +209,10 @@ class CBvideo extends CBCategory
if ( $data ) {
return $data;
}
$result = select( $query );
if ( $result ) {
$result = apply_filters( $result[ 0 ], 'get_video' );
@ -620,7 +621,7 @@ class CBvideo extends CBCategory
function get_videos($params)
{
global $db;
global $db, $cb_columns;
$limit = $params['limit'];
$order = $params['order'];
@ -924,7 +925,7 @@ class CBvideo extends CBCategory
$fields = array(
'video' => get_video_fields(),
'users' => get_user_fields()
'users' => $cb_columns->object('users')->temp_change('featured','user_featured')->get_columns(),
);
$fields = tbl_fields( $fields );
@ -1371,6 +1372,26 @@ class CBvideo extends CBCategory
}
}
}
/**
* This function are just for temporary purpose,, will be changed later...
*/
function video_manager_link_new($link,$vid)
{
if(function_exists($link) && !is_array($link))
{
return $link($vid);
}else
{
if(!empty($link['title']) && !empty($link['link']))
{
return '<a href="'.$link['link'].'">'.$link['title'].'</a>';
}
}
}

View file

@ -24,7 +24,9 @@
<div class="cont fahad" id="cont" >
{ANCHOR place='overlay_ads'}
<video id="myVideo" class="myVideo largevid" preload="auto" poster="" >
<source src="{$normal_vid_file}" type="video/mp4" />

View file

@ -317,6 +317,7 @@ $(this).toggleClass('hdoff');
if(percentage < 0) {
percentage = 0;
}
$('.timeBar').css('width',percentage+'%');
video[0].currentTime = maxduration * percentage / 100;
};
@ -504,6 +505,10 @@ $('#name_v,#thumb_v').mouseout(function() {
//Time format converter - 00:00
var timeFormat = function(seconds){
var m = Math.floor(seconds/60)<10 ? "0"+Math.floor(seconds/60) : Math.floor(seconds/60);

View file

@ -45,6 +45,7 @@ if(!function_exists('editors_pick'))
{
$sort = get_highest_sort_number() + 1 ;
$db->insert(tbl("editors_picks"),array("videoid","sort","date_added"),array($vid,$sort,now()));
$db->update(tbl("video"), array("in_editor_pick"), array("yes")," videoid = '".$vid."'");
e(lang("Video has been added to editor's pick"),"m");
}else{
e(lang("Video is already in editor's pick"),"e");
@ -64,6 +65,7 @@ if(!function_exists('editors_pick'))
if(is_video_in_editors_pick($vid))
{
$db->delete(tbl('editors_picks'),array('videoid'),array($vid));
$db->update(tbl("video"), array("in_editor_pick"), array("no")," videoid = '".$vid."'");
e(lang("Video has been removed from editor's pick"),"m");
}
}
@ -116,6 +118,7 @@ if(!function_exists('editors_pick'))
}
/**
* Function used to get editor picks videos and details
*/
@ -216,8 +219,27 @@ if(!function_exists('editors_pick'))
}
//the following two written functions are for temporay purpose .. will be chaged later
function admin_area_tab($vid)
{
if(is_video_in_editors_pick($vid['videoid']))
return '<span class="label label-success" >Added to editors pick</span>';
else
{}
}
//Temporay purpose
$cbvid->video_manager_links_new[] = 'admin_area_tab';
//Adding Editor's Pick Link
$cbvid->video_manager_links[] = 'video_manager_ep_link';
//Calling Editor Picks Function
$cbvid->video_manager_funcs[] = 'editors_pick';
//ADding Admin Menu

View file

@ -17,7 +17,12 @@ function install_editors_pick()
);
//inserting new announcment
$db->Execute("INSERT INTO ".tbl('global_announcement')." (announcement) VALUES ('')");
//$db->Execute("INSERT INTO ".tbl('global_announcement')." (announcement) VALUES ('')");
$db->Execute("ALTER TABLE ".tbl('video')." ADD `in_editor_pick` varchar(255) DEFAULT 'no' ");
}

View file

@ -6,6 +6,9 @@
$db->Execute(
'DROP TABLE '.tbl("editors_picks")
);
$db->Execute("ALTER TABLE ".tbl('video')." DROP `in_editor_pick` ");
}
un_install_editors_pick();

View file

@ -6,6 +6,9 @@
<div class="cb-box pad-bottom-sm">
<div id="cb_player" class="no-pad">
{FlashPlayer vdetails=$video width='700' height='400'}
</div>
<div class="cb-item-title-container">
<div class="cb-item-thumb">

View file

@ -16,9 +16,9 @@ $pages->page_redir();
//Getting Video Key
$vkey = @$_GET['v'];
$vkey = mysql_clean($vkey);
$vdo = $cbvid->get_video($vkey);
//pr($vdo,true);
assign('vdo',$vdo);
if(video_playable($vdo))
@ -83,6 +83,8 @@ $vlist = $vid_cond;
$vlist['limit'] = 15;
$videos = get_videos($vlist);
Assign('videos', $videos);
//Displaying The Template
template_files('watch_video.html');