updated: design fixes and error removes

This commit is contained in:
Mohammad Shoaib 2014-09-23 12:07:50 +00:00
parent 0436294e03
commit 7fee6942f6
23 changed files with 174 additions and 240 deletions

View file

@ -153,8 +153,9 @@ switch($mode)
exit(0); exit(0);
} }
move_uploaded_file($tempFile,$targetFile); move_uploaded_file($tempFile,$targetFile);
$Upload->add_conversion_queue($targetFileName); $Upload->add_conversion_queue($targetFileName);
$quick_conv = config('quick_conv'); $quick_conv = config('quick_conv');

View file

@ -38,7 +38,7 @@ if(isset($_POST['delete_selected']))
e("Selected collections have been deleted","m"); e("Selected collections have been deleted","m");
} }
if(isset($_REQUEST['delete_flags'])) if(isset($_GET['delete_flags']))
{ {
$collect = mysql_clean($_GET['delete_flags']); $collect = mysql_clean($_GET['delete_flags']);
$cbcollection->action->delete_flags($collect); $cbcollection->action->delete_flags($collect);
@ -64,6 +64,7 @@ switch($mode)
$page = mysql_clean($_GET['page']); $page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,5); $get_limit = create_query_limit($page,5);
$collects = $cbcollection->action->get_flagged_objects($get_limit); $collects = $cbcollection->action->get_flagged_objects($get_limit);
assign('cl', $collects); assign('cl', $collects);
//Collecting Data for Pagination //Collecting Data for Pagination

View file

@ -4,8 +4,10 @@
<h2>Add New User</h2> <h2>Add New User</h2>
</div> </div>
<p class="alert alert-info">Required Member Details</p>
<p class="alert alert-info">Required Member Details</p>
<form action="" method="post"> <form action="" method="post">
<div class="row"> <div class="row">

View file

@ -2,6 +2,7 @@
<div class="heading"> <div class="heading">
<h2>Flagged Groups Manager</h2> <h2>Flagged Groups Manager</h2>
</div> </div>
<!-- DIsplaying Videos --> <!-- DIsplaying Videos -->
<form name="flagged_video" method="post" id="flagged_video"> <form name="flagged_video" method="post" id="flagged_video">
<div class="btn-group"> <div class="btn-group">

View file

@ -33,9 +33,11 @@ if($myquery->VideoExists($video)){
$vid_file = VIDEOS_DIR.'/'.$data['file_directory'].'/'.get_video_file($data,false,false); $vid_file = VIDEOS_DIR.'/'.$data['file_directory'].'/'.get_video_file($data,false,false);
# Uploading Thumbs # Uploading Thumbs
if(isset($_POST['upload_thumbs'])){ if(isset($_POST['upload_thumbs'])){
if($data['files_thumbs_path']!=''){ if($data['files_thumbs_path']!=''){
$files_thumbs_path= $data['files_thumbs_path']; $files_thumbs_path= $data['files_thumbs_path'];
$serverApi = str_replace('/files/thumbs', '', $files_thumbs_path); $serverApi = str_replace('/files/thumbs', '', $files_thumbs_path);
$serverApi = $serverApi.'/actions/custom_thumb_upload.php'; $serverApi = $serverApi.'/actions/custom_thumb_upload.php';

View file

@ -64,7 +64,8 @@ switch($mode)
//GettinG Level Permission //GettinG Level Permission
$level_perms = $userquery->get_level_permissions($lid); $level_perms = $userquery->get_level_permissions($lid);
//pr($level_perms, true);
$plugin_perms = $level_perms['plugins_perms']; $plugin_perms = $level_perms['plugins_perms'];
$plugin_perms = json_decode($plugin_perms,true); $plugin_perms = json_decode($plugin_perms,true);
@ -88,6 +89,11 @@ switch($mode)
} }
} }
//$lev = $userquery->get_level_types();
//$per = $userquery->get_permissions(2);
//pr($per, true);
subtitle("User levels"); subtitle("User levels");
template_files('user_levels.html'); template_files('user_levels.html');
display_it(); display_it();

View file

@ -54,6 +54,7 @@ $glist = $g_cond;
$glist['limit'] = $get_limit; $glist['limit'] = $get_limit;
$groups = $cbgroup->get_groups($glist); $groups = $cbgroup->get_groups($glist);
Assign('groups', $groups); Assign('groups', $groups);
//Collecting Data for Pagination //Collecting Data for Pagination

View file

@ -59,13 +59,16 @@ class ResizeImage
function ValidateImage($file,$ext=NULL){ function ValidateImage($file,$ext=NULL){
$array = getimagesize($file); $array = getimagesize($file);
if($ext == 'jpg' || $ext == 'JPG' ||$ext == 'JPEG' || $ext == 'gif' || $ext == 'GIF' || $ext == 'PNG' || $ext == 'png'){ if($ext == 'jpg' || $ext == 'JPG' ||$ext == 'JPEG' || $ext == 'gif' || $ext == 'GIF' || $ext == 'PNG' || $ext == 'png')
{
if(empty($array[0]) || empty($array[1])){ if(empty($array[0]) || empty($array[1])){
$validate = false; $validate = false;
}else{ }else{
$validate = true; $validate = true;
} }
}else{ }
else
{
$validate = false; $validate = false;
} }
return $validate; return $validate;

View file

@ -313,7 +313,7 @@ class Upload{
$file_path = THUMBS_DIR.'/'.$file_name.'-'.$file_num.'.'.$ext; $file_path = THUMBS_DIR.'/'.$file_name.'-'.$file_num.'.'.$ext;
$big_file_path = THUMBS_DIR.'/'.$file_name.'-big-'.$file_num.'.'.$ext; $big_file_path = THUMBS_DIR.'/'.$file_name.'-big-'.$file_num.'.'.$ext;
} }
move_uploaded_file($file['tmp_name'][$key],$file_path); move_uploaded_file($file['tmp_name'][$key],$file_path);
$imgObj->CreateThumb($file_path,$big_file_path,config('big_thumb_width'),$ext,config('big_thumb_height'),false); $imgObj->CreateThumb($file_path,$big_file_path,config('big_thumb_width'),$ext,config('big_thumb_height'),false);

View file

@ -366,15 +366,16 @@ class userquery extends CBCategory{
{ {
global $LANG,$Cbucket,$sess; global $LANG,$Cbucket,$sess;
if($verify_logged_user) if($verify_logged_user)
{ {
//First check weather userid is here or not //First check weather userid is here or not
if(!userid()) if(!userid())
{ {
if(!$check_only) if(!$check_only)
e(lang('you_not_logged_in')); e(lang('you_not_logged_in'));
return false; return false;
} }
elseif(!$this->session_auth(userid())) elseif(!$this->session_auth(userid()))
{ {
@ -405,6 +406,7 @@ class userquery extends CBCategory{
{ {
//$access_details = $this->get_user_level(userid()); //$access_details = $this->get_user_level(userid());
$access_details = $this->permission; $access_details = $this->permission;
if(is_numeric($access)) if(is_numeric($access))
{ {
if($access_details['level_id'] == $access) if($access_details['level_id'] == $access)
@ -1923,6 +1925,8 @@ class userquery extends CBCategory{
//First Checking Level //First Checking Level
$level = $this->get_level_details($id); $level = $this->get_level_details($id);
if($level) if($level)
{ {
foreach($this->get_access_type_list() as $access => $name) foreach($this->get_access_type_list() as $access => $name)
@ -1930,6 +1934,8 @@ class userquery extends CBCategory{
$fields_array[] = $access; $fields_array[] = $access;
$value_array[] = $array[$access]; $value_array[] = $array[$access];
} }
//Checking level Name //Checking level Name
if(!empty($array['level_name'])) if(!empty($array['level_name']))
@ -1939,12 +1945,14 @@ class userquery extends CBCategory{
$db->update(tbl("user_levels"),array("user_level_name"),array($level_name)," user_level_id = '$id'"); $db->update(tbl("user_levels"),array("user_level_name"),array($level_name)," user_level_id = '$id'");
} }
if(isset($_POST['plugin_perm'])) if(isset($_POST['plugin_perm']))
{ {
$fields_array[] = 'plugins_perms'; $fields_array[] = 'plugins_perms';
$value_array[] = '|no_mc|'.json_encode($_POST['plugin_perm']); $value_array[] = '|no_mc|'.json_encode($_POST['plugin_perm']);
} }
//Updating Permissions //Updating Permissions
$db->update(tbl("user_levels_permissions"),$fields_array,$value_array," user_level_id = '$id'"); $db->update(tbl("user_levels_permissions"),$fields_array,$value_array," user_level_id = '$id'");
@ -3385,13 +3393,14 @@ class userquery extends CBCategory{
'title' => lang('user_date_of_birth'), 'title' => lang('user_date_of_birth'),
'type' => 'textfield', 'type' => 'textfield',
'name' => 'dob', 'name' => 'dob',
'readonly' => 'true',
'id' => 'dob', 'id' => 'dob',
'anchor_after' => 'date_picker', 'anchor_after' => 'date_picker',
'value'=> $dob, 'value'=> $dob,
'validate_function' => 'verify_age', 'validate_function' => 'verify_age',
'db_field'=>'dob', 'db_field'=>'dob',
'required'=>'yes', 'required'=>'yes',
'invalid_err'=>lang('You must be atleast '.config('min_age_reg').' to register'), 'invalid_err'=>lang('You must be atleast '.config('min_age_reg').' to register'),
), ),
'cat' => array('title'=> lang('Category'), 'cat' => array('title'=> lang('Category'),

View file

@ -942,8 +942,6 @@ class CBvideo extends CBCategory
if(!$params['count_only'] && !$params['show_related']) if(!$params['count_only'] && !$params['show_related'])
{ {
$query = "SELECT $fields FROM ".cb_sql_table( 'video' ); $query = "SELECT $fields FROM ".cb_sql_table( 'video' );
$query .= " LEFT JOIN ".cb_sql_table( 'users' )." ON video.userid = users.userid"; $query .= " LEFT JOIN ".cb_sql_table( 'users' )." ON video.userid = users.userid";

View file

@ -168,7 +168,7 @@ if(!@$in_bg_cron)
//Setting Time Zone date_default_timezone_set //Setting Time Zone date_default_timezone_set
require_once('classes/search.class.php'); require_once('classes/search.class.php');
@ -196,7 +196,7 @@ if(!@$in_bg_cron)
require_once('classes/photos.class.php'); require_once('classes/photos.class.php');
require_once('classes/menuhandler.class.php'); require_once('classes/menuhandler.class.php');
require_once('classes/cbfeeds.class.php'); require_once('classes/cbfeeds.class.php');
require_once('classes/resizer.class.php'); require_once('classes/resizer.class.php');
//Adding Gravatar //Adding Gravatar
require_once('classes/gravatar.class.php'); require_once('classes/gravatar.class.php');
@ -564,7 +564,7 @@ if(!@$in_bg_cron)
Assign('lang_count',(isset($languages)) ? count($languages) : false); Assign('lang_count',(isset($languages)) ? count($languages) : false);
//Configration of time formate //Configration of time formate
$config['date'] = '%I:%M %p'; $config['date'] = '%I:%M %p';
$config['time'] = '%H:%M'; $config['time'] = '%H:%M';
assign('config', $config); assign('config', $config);
//Assign Player Div Id //Assign Player Div Id
@ -589,7 +589,8 @@ $Smarty->assign_by_ref('cbgroup', $cbgroup);
$Smarty->assign_by_ref('db', $db); $Smarty->assign_by_ref('db', $db);
$Smarty->assign_by_ref('adsObj', $adsObj); $Smarty->assign_by_ref('adsObj', $adsObj);
$Smarty->assign_by_ref('formObj', $formObj); $Smarty->assign_by_ref('formObj', $formObj);
$Smarty->assign_by_ref('Cbucket', $Cbucket);$Smarty->assign_by_ref('ClipBucket', $Cbucket); $Smarty->assign_by_ref('Cbucket', $Cbucket);
$Smarty->assign_by_ref('ClipBucket', $Cbucket);
$Smarty->assign_by_ref('eh', $eh); $Smarty->assign_by_ref('eh', $eh);
$Smarty->assign_by_ref('lang_obj', $lang_obj); $Smarty->assign_by_ref('lang_obj', $lang_obj);
$Smarty->assign_by_ref('cbvid', $cbvid); $Smarty->assign_by_ref('cbvid', $cbvid);

View file

@ -262,6 +262,7 @@ function cb_select( $query ) {
* @return mixed * @return mixed
*/ */
function select( $query ) { function select( $query ) {
return cb_select( $query ); return cb_select( $query );
} }

View file

@ -153,7 +153,6 @@ function get_photo_default_thumb( $size = null, $output = null ) {
function get_image_file( $params ) { function get_image_file( $params ) {
global $cbphoto, $Cbucket; global $cbphoto, $Cbucket;
//var_dump($params); //var_dump($params);
$details = $params[ 'details' ]; $details = $params[ 'details' ];
@ -197,8 +196,6 @@ function get_image_file( $params ) {
} }
} }
$path = PHOTOS_DIR; $path = PHOTOS_DIR;
$directory = get_photo_date_folder( $photo ); $directory = get_photo_date_folder( $photo );
$with_path = $params['with_path'] = ( $params['with_path'] === false ) ? false : true; $with_path = $params['with_path'] = ( $params['with_path'] === false ) ? false : true;

View file

@ -71,6 +71,7 @@ switch($mode)
$photo_arr['title'] = mysql_clean(get('query')); $photo_arr['title'] = mysql_clean(get('query'));
$photo_arr['tags'] = mysql_clean(get('query')); $photo_arr['tags'] = mysql_clean(get('query'));
} }
$photos = get_photos($photo_arr); $photos = get_photos($photo_arr);
assign('photos',$photos); assign('photos',$photos);

View file

@ -27,43 +27,43 @@
{/if} {/if}
{if $control == "partail"} {if $control == "partail"}
<div class="account_vid_list clearfix" style="background-color:#{cycle values='FFFFFF,EFF5F8'}; padding:3px 0px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="25"><input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}" /></td> <td><input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}" /></td>
<td valign="middle"> <td valign="middle">
<label for="check_photo-{$photo.photo_id}">{get_photo details=$photo output='html' class='acc_usr_video_thumb' style='width:auto;'}</label> <label for="check_photo-{$photo.photo_id}">{get_photo details=$photo output='html' class='acc_usr_video_thumb' style='width:auto;'}</label>
{$photo.photo_title|truncate:100}<br /> {$photo.photo_title|truncate:100}<br />
<span class="video_control"> <span class="btn-group show">
<a href="{$cbphoto->photo_links($photo,'view_item')}">view</a> - <a href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to remove photo from favorites?"}','?mode={$mode}&amp;remove_fav_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">{lang code='delete'}</a> <a class="btn btn-primary btn-sm" href="{$cbphoto->photo_links($photo,'view_item')}">view</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to remove photo from favorites?"}','?mode={$mode}&amp;remove_fav_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">{lang code='delete'}</a>
</span> </span>
</td> </td>
<td width="100">{$photo.date_added|date_format}</td> <td>{$photo.date_added|date_format}</td>
<td width="100">{$photo.views|number_format}</td> <td>{$photo.views|number_format}</td>
<td width="100">{$photo.total_comments|number_format}</td> <td>{$photo.total_comments|number_format}</td>
<td width="100" class="last_td">{$photo.total_favorites|number_format}</td> <td>{$photo.total_favorites|number_format}</td>
</tr> </tr>
</table>
</div>
{/if} {/if}
{if $control == 'orphan'} {if $control == 'orphan'}
<div class="account_vid_list clearfix" style="background-color:#{cycle values='FFFFFF,EFF5F8'}; padding:3px 0px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="25"><input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}" /></td> <td><input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}" /></td>
<td valign="middle">
<td valign="middle">
<label for="check_photo-{$photo.photo_id}">{get_photo details=$photo output='html' class='acc_usr_video_thumb' style='width:auto;'}</label> <label for="check_photo-{$photo.photo_id}">{get_photo details=$photo output='html' class='acc_usr_video_thumb' style='width:auto;'}</label>
{$photo.photo_title|truncate:100}<br /> {$photo.photo_title|truncate:100}<br />
<span class="video_control"> <span class="btn-group show">
<a href="{$baseurl}/edit_photo.php?photo={$photo.photo_id}">edit</a> - <a href="{get_photo size='o' details=$photo}">Direct Link</a> - <a href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to delete this photo? This action will delete photo permanently."}','?mode={$mode}&amp;delete_orphan_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">{lang code='delete'}</a> <a class="btn btn-primary btn-sm" href="{$baseurl}/edit_photo.php?photo={$photo.photo_id}">edit</a>
<a class="btn btn-primary btn-sm" href="{get_photo size='o' details=$photo}">Direct Link</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to delete this photo? This action will delete photo permanently."}','?mode={$mode}&amp;delete_orphan_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">{lang code='delete'}</a>
</span> </span>
</td> </td>
<td width="100">{$photo.date_added|date_format}</td> <td>{$photo.date_added|date_format}</td>
<td width="100">{$photo.views|number_format}</td> <td>{$photo.views|number_format}</td>
<td width="100">{$photo.total_comments|number_format}</td> <td>{$photo.total_comments|number_format}</td>
<td width="100" class="last_td">{$photo.total_favorites|number_format}</td> <td>{$photo.total_favorites|number_format}</td>
</tr> </tr>
</table>
</div>
{/if} {/if}

View file

@ -1,8 +1,9 @@
{$topMenuLinks = array_slice($myAccountLinks, 0, 6)} {*$topMenuLinks = array_slice($myAccountLinks, 0, 6)*}
{$topMenuLinks = $myAccountLinks}
<div class="col-md-3 column margintop20"> <div class="col-md-3 column margintop20">
<ul class="nav nav-pills nav-stacked"> <ul class="nav nav-pills nav-stacked">
{foreach $topMenuLinks as $key => $value} {foreach $topMenuLinks as $key => $value}
{if $key!='Contacts'}
<tr> <tr>
<td> <td>
<li class="active"><a href="#">{$key}</a></li> <li class="active"><a href="#">{$key}</a></li>
@ -14,6 +15,7 @@
{foreach $value as $subKey => $subValue} {foreach $value as $subKey => $subValue}
<li class="leftmenu"><a href="{$subValue}">{$subKey}</a></li> <li class="leftmenu"><a href="{$subValue}">{$subKey}</a></li>
{/foreach} {/foreach}
{/if}
{/foreach} {/foreach}
</ul> </ul>
</div> </div>

View file

@ -1,11 +1,12 @@
<div class="container"> {$myAccountLinks = $userquery->my_account_links()}
<div class="container marginBottom">
{include file="$style_dir/blocks/manage/account_menu.html"} {include file="$style_dir/blocks/manage/account_menu.html"}
<div class="row"> <div class="row cb-box">
<div class="col-md-3 leftSidebar"> <div class="col-md-3 leftSidebar">
{include file="$style_dir/blocks/manage/userMenuLeft.html"} {include file="$style_dir/blocks/manage/userMenuLeft.html"}
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
<div class="cb-box marginBottom"> <div class="marginBottom">
{*include file="$style_dir/blocks/manage/account_head.html" user=$user*} {*include file="$style_dir/blocks/manage/account_head.html" user=$user*}
<h2>Edit Photo</h2> <h2>Edit Photo</h2>
<div> <div>

View file

@ -1,5 +1,13 @@
<div class="container"> {$myAccountLinks = $userquery->my_account_links()}
<div class="cb-box marginBottom"> <div class="container marginBottom">
{include file="$style_dir/blocks/manage/account_menu.html"}
<div class="row cb-box">
<div class="leftSidebar col-md-3">
{include file="$style_dir/blocks/manage/userMenuLeft.html"}
</div>
<div class="mainContent col-md-9">
{if $mode == 'uploaded'} {if $mode == 'uploaded'}
<h2>{lang code="Manage Photos"}</h2> <h2>{lang code="Manage Photos"}</h2>
<form clasws="form-inline" id="form1" name="form1" method="get" action=""> <form clasws="form-inline" id="form1" name="form1" method="get" action="">
@ -24,6 +32,7 @@
<img src="{$imageurl}/dot.gif" class="arrow_pointing" /> <img src="{$imageurl}/dot.gif" class="arrow_pointing" />
<input type="submit" name="delete_photos" id="delete_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" /> <input type="submit" name="delete_photos" id="delete_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" />
</div> </div>
<br>
<div class="account_table"> <div class="account_table">
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<tr> <tr>
@ -38,7 +47,11 @@
{section name=p_list loop=$photos} {section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='full'} {include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='full'}
{sectionelse} {sectionelse}
<tr>
<td colspan="5">
<div align="center" style="padding:5px"><strong><em>{lang code='You dont have any photos'}</em></strong></div> <div align="center" style="padding:5px"><strong><em>{lang code='You dont have any photos'}</em></strong></div>
</td>
</tr>
{/section} {/section}
</table> </table>
</div> </div>
@ -47,19 +60,35 @@
{if $mode == "favorite"} {if $mode == "favorite"}
<h2>{lang code="manage_favorite_photos"}</h2> <h2>{lang code="manage_favorite_photos"}</h2>
<div> <div class="row">
<div class="col-md-6 col-md-offset-3">
<form id="form1" name="form1" method="get" action=""> <form id="form1" name="form1" method="get" action="">
<input name="query" type="text" class="search_field" id="query" value="{$smarty.get.query|form_val}" /> <div class="col-md-11">
<input name="input" type="submit" class="search_field_button" value="{lang code='search'}"/> <div class="form-group">
<input name="mode" value="{$mode}" type="hidden" /> <input name="query" type="text" class="form-control" id="query" value="{$smarty.get.query|form_val}" />
</form>
</div>
</div>
<div class="col-md-1">
<div class="form-group text-right">
<input name="input" type="submit" class="btn btn-primary" value="{lang code='search'}"/>
<input name="mode" value="{$mode}" type="hidden" />
</div>
</div>
</form>
</div> </div>
</div>
<form name="photos_manager" method="post"> <form name="photos_manager" method="post">
<div> <div>
<img src="{$imageurl}/dot.gif" class="arrow_pointing" /> <img src="{$imageurl}/dot.gif" class="arrow_pointing" />
<input type="submit" name="remove_fav_photos" id="remove_fav_photos" value="{lang code='delete'}" class="small_button" /> <input type="submit" name="remove_fav_photos" id="remove_fav_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" />
</div> </div>
<br>
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<tr> <tr>
<td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/> <td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
@ -70,20 +99,25 @@
<td width="100">{lang code='comments'}</td> <td width="100">{lang code='comments'}</td>
<td width="100" class="last_td">{lang code='favorites'}</td> <td width="100" class="last_td">{lang code='favorites'}</td>
</tr> </tr>
</table>
{section name=p_list loop=$photos} {section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='partail'} {include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='partail'}
{sectionelse} {sectionelse}
<div><strong><em>{lang code='You dont have any favorite photos'}</em></strong></div> <tr>
{/section} <td colspan="5">
<div align="center" style="padding:5px"><strong><em>{lang code='You dont have any favorite photos'}</em></strong></div>
</td>
</tr>
{/section}
</table>
</form> </form>
{/if} {/if}
{if $mode == 'orphan'} {if $mode == 'orphan'}
<h2 style="margin-bottom:5px;">{lang code="manage_my_album"}</h2> <h2>{lang code="manage_my_album"}</h2>
<div align="right"> <div align="right">
Make my album Make my album
<label> <label>
<input type="radio" name="my_album_privacy" value="public" {if $user.album_privacy =='public'} checked="checked" {/if} onclick="window.location = '{$albumPrivacyUrl}album_privacy=public'"/> Public <input type="radio" name="my_album_privacy" value="public" {if $user.album_privacy =='public'} checked="checked" {/if} onclick="window.location = '{$albumPrivacyUrl}album_privacy=public'"/> Public
</label> </label>
@ -96,20 +130,36 @@
</label> </label>
</div> </div>
<p>All the photos uploaded are dependent on their collections/albums. When you remove some photo from collection/album, this will not delete photo permenently. It will move photo here. You can also use this to make your photos private. Direct link is available for you to share with your friends.</p> <p>All the photos uploaded are dependent on their collections/albums. When you remove some photo from collection/album, this will not delete photo permenently. It will move photo here. You can also use this to make your photos private. Direct link is available for you to share with your friends.</p>
<div>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form id="form1" name="form1" method="get" action=""> <form id="form1" name="form1" method="get" action="">
<input name="query" type="text" class="search_field" id="query" value="{$smarty.get.query|form_val}" /> <div class="col-md-11">
<input name="input" type="submit" class="search_field_button" value="{lang code='search'}"/> <div class="form-group">
<input name="mode" value="{$mode}" type="hidden" /> <input name="query" type="text" class="form-control" id="query" value="{$smarty.get.query|form_val}" />
</form>
</div>
</div>
<div class="col-md-1">
<div class="form-group text-right">
<input name="input" type="submit" class="btn btn-primary" value="{lang code='search'}"/>
<input name="mode" value="{$mode}" type="hidden" />
</div>
</div>
</form>
</div> </div>
</div>
<form name="photos_manager" method="post"> <form name="photos_manager" method="post">
<div> <div>
<img src="{$imageurl}/dot.gif" class="arrow_pointing" /> <img src="{$imageurl}/dot.gif" class="arrow_pointing" />
<input type="submit" name="delete_orphan_photos" id="delete_orphan_photos" value="{lang code='delete'}" class="small_button" /> <input type="submit" name="delete_orphan_photos" id="delete_orphan_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" />
</div> </div>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table class="table table-bordered table-striped">
<tr> <tr>
<td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/> <td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td> </td>
@ -119,17 +169,24 @@
<td width="100">{lang code='comments'}</td> <td width="100">{lang code='comments'}</td>
<td width="100" class="last_td">{lang code='favorites'}</td> <td width="100" class="last_td">{lang code='favorites'}</td>
</tr> </tr>
</table>
{section name=p_list loop=$photos} {section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='orphan'} {include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='orphan'}
{sectionelse} {sectionelse}
<div align="center" style="padding:5px"><strong><em>{lang code='you_dont_have_orphan_photos'}</em></strong></div> <tr>
{/section} <td colspan="5">
<div align="center" style="padding:5px"><strong><em>{lang code='you_dont_have_orphan_photos'}</em></strong></div>
</td>
</tr>
{/section}
</table>
</form> </form>
{/if} {/if}
</div>
</div>
</div>
</div> </div>

View file

@ -20,22 +20,12 @@
</a> </a>
<hr> <hr>
</div> </div>
<!--
<div class="row final" style="margin-top: -16px"> <div class="col-md-2" style="margin-left:-14px;">
<div class="col-md-2"> <div class="cb-item-thumb">
<div class="cb-item-thumb"> <img src="{$userquery->getUserThumb($user)}" class="img-circle" style="border: solid; border-color: #3880FC; width: 90px; height: 90px"/>
<img src="{$userquery->getUserThumb($user)}" class="img-circle" style="border: solid; border-color: #3880FC; width: 90px; height: 90px"/>
</div>
</div>
<div class="col-md-8 overflow_hidden" style="margin-top: -25px">
<h2><small class="smallColor">{$photo.photo_title}</small></h2>
</div>
</div>-->
<div class="col-md-2" style="margin-left:-14px;">
<div class="cb-item-thumb">
<img src="{$userquery->getUserThumb($user)}" class="img-circle" style="border: solid; border-color: #3880FC; width: 90px; height: 90px"/>
</div>
</div> </div>
</div>
<div class="cb-item-title-container"> <div class="cb-item-title-container">
@ -51,23 +41,7 @@
<button class="btn btn-primary btn-sm btn-xs" onclick="subscriber('{$user.userid}','subscribe_user','video_detail_result_cont')">{lang code='subscribe'}</button> <button class="btn btn-primary btn-sm btn-xs" onclick="subscriber('{$user.userid}','subscribe_user','video_detail_result_cont')">{lang code='subscribe'}</button>
</a> </a>
<!--<div class="clearfix" id="rating_container" style="margin-top: -30px;" >
<div class="pull-right col-md-3" id="rating_container" style="width:200px;">
<div class="pull-right col-md-8" style="border-bottom: 2px solid green;text-align: right;">{$photo.views|number_format} <span class="small" style="font-size:17px;">{lang('views')}</span></div>
<br/>
<div class="cb-item-rating-new pull-right col-md-9 row paddingleft0" style="padding-left: 0px;">
<span class="cb-rating-span pull-left cb-rating-up" {if !$disable} onclick="rate('{$photo.photo_id}','5','photo')"{/if} onMouseOver="rating_over('Like this photo','{$disable}')" onmouseout="rating_out('{$likes} Likes, {$dislikes} Dislikes','{$disable}')">
<i class="glyphicon glyphicon-thumbs-up"></i>
<span class="cb-rating-digit small">{$likes|number_format}</span>
</span>
<span class="cb-rating-span pull-right cb-rating-down " {if !$disable} onclick="rate('{$photo.photo_id}','1','photo')"{/if} onMouseOver="rating_over('Dislike this photo','{$disable}')" onmouseout="rating_out('{$likes} Likes, {$dislikes} Dislikes','{$disable}')">
<i class="glyphicon glyphicon-thumbs-down" ></i>
<span class="cb-rating-digit small">{if $dislikes}-{/if}{$dislikes|number_format}</span>
</span>
</div>
</div>
</div>-->
<!--likes and views--> <!--likes and views-->
<div class="pull-right col-md-8" style="width:200px;"> <div class="pull-right col-md-8" style="width:200px;">
@ -86,84 +60,14 @@
<!--
<div class="row ViewphotoPadding">
<div class="col-md-1">
<a href>
{$user.username}
</a>
</div>
<div class="col-md-4">
<button class="btn btn-primary btn-sm btn-xs" onclick="subscriber('{$user.userid}','subscribe_user','video_detail_result_cont')">{lang code='subscribe'}</button>
</div>
<div class="pull-right col-md-3" id="rating_container">
<div class="pull-right col-md-8" style="border-bottom: 2px solid green; text-align: right;">{$photo.views|number_format} <span class="small">{lang('views')}</span></div>
<br/>
<div class="cb-item-rating-new pull-right col-md-9 row paddingleft0">
<span class="cb-rating-span pull-left cb-rating-up small" {if !$disable} onclick="rate('{$photo.photo_id}','5','photo')"{/if} onMouseOver="rating_over('Like this photo','{$disable}')" onmouseout="rating_out('{$likes} Likes, {$dislikes} Dislikes','{$disable}')">
<i class="glyphicon glyphicon-thumbs-up"></i>
<span class="cb-rating-digit small">{$likes|number_format}</span>
</span>
<span class="cb-rating-span pull-right cb-rating-down small" {if !$disable} onclick="rate('{$photo.photo_id}','1','photo')"{/if} onMouseOver="rating_over('Dislike this photo','{$disable}')" onmouseout="rating_out('{$likes} Likes, {$dislikes} Dislikes','{$disable}')">
<i class="glyphicon glyphicon-thumbs-down"></i>
<span class="cb-rating-digit small">{if $dislikes}-{/if}{$dislikes|number_format}</span>
</span>
</div>
</div>
</div>
-->
<div class='PhotoRating' style="margin-bottom: -17px"> <div class='PhotoRating' style="margin-bottom: -17px">
{*show_video_rating rating=$photo.rating ratings=$photo.rated_by total='10' id=$photo.photo_id type=photo*}</div> {*show_video_rating rating=$photo.rating ratings=$photo.rated_by total='10' id=$photo.photo_id type=photo*}</div>
<!--<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 pull-right">-->
<!--<div class="pull-right">-->
<!--<a class="Ticon twitter" href="http://twitter.com/home?status=%7Bvideo.title%7Ctitle%7D%20%7BvideoLink($video)%7D" target="_blank">-->
<!--<i class="fa fa-twitter"></i>-->
<!--</a>-->
<!--<a class="Gicon googlep" href="https://plus.google.com/share?url={urlencode(videolink($video))}" target="_blank">-->
<!--<i class="fa fa-google-plus"></i>-->
<!--</a>-->
<!--<a class="Ficon facebook" href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]={videoLink($video)|urlencode}&p[images][0]={get_thumb vdetails=$video}&p[title]={$video.title|title|urlencode}&p[summary]={$video.description|description|urlencode}" target="_blank">-->
<!--<i class="fa fa-facebook"></i>-->
<!--</a>-->
<!--</div>-->
<!--</div>-->
<br> <br>
<div class="action_box alert alert-info" id="video_detail_result_cont" style="display:none"></div> <div class="action_box alert alert-info" id="video_detail_result_cont" style="display:none"></div>
<!--<div class="col-md-4 cb-box">-->
<!--<div class="media padding40">-->
<!--<div class="media-body">-->
<!--<div class="row">-->
<!--<div class="col-md-8 procolor fsize">-->
<!--<h4 class="media-heading headcolor photoprofile">{$user.username} ({assign var=category value=$userquery->get_category($user.category)}-->
<!--{$category.category_name})</h4>-->
<!--<b>{lang code='Since:'}</b> ({$user.doj|date_format})-->
<!--<b>{lang code='Login:'}</b> ({$user.last_logged|nicetime})-->
<!--<hr>-->
<!--<div class="row">-->
<!--<div class="col-md-2">-->
<!--<button class="btn btn-info btn-sm btn-xs" onclick="subscriber('{$user.userid}','subscribe_user','video_detail_result_cont')">{lang code='subscribe'}</button>-->
<!--</div>-->
<!--<div class="col-md-2 padding39">-->
<!--<button class="btn btn-info btn-sm btn-xs">{lang code='View Channel'}</button>-->
<!--</div>-->
<!--</div>-->
<!--<div class="action_box" id="video_detail_result_cont" style="display:none"></div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<div class="row fonts"> <div class="row fonts">
<div class="tabbable"> <div class="tabbable">
@ -183,30 +87,7 @@
</ul> </ul>
<!-- <div class="tab-content">
<ul class="nav nav-tabs" id="myTab2">
<li class="active">
<a data-toggle="tab" href="#pinfo">
<h5 class="PhotoColor">Info</h5>
</a>
</li>
<li class="">
<a data-toggle="tab" href="#pshare">
<h5 class="PhotoColor">Share</h5>
</a>
</li>
<li class="">
<a data-toggle="tab" href="#pcode">
<h5 class="PhotoColor">Embed Code</h5>
</a>
</li>
<li class="">
<a data-toggle="tab" href="#preport" href="javascript:void(0)" onclick="slide_up_watch_video('#flag_item');$('#flag_item').slideToggle();">
<h5 class="PhotoColor">Report</h5>
</a>
</li>
</ul>-->
<div class="tab-content">
<div class="tab-pane active" id="pinfo" style="font-size:16px;margin-top:9px;"> <div class="tab-pane active" id="pinfo" style="font-size:16px;margin-top:9px;">
<div id="cb-item-info"> <div id="cb-item-info">
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12"> <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
@ -260,36 +141,6 @@
</div> </div>
<style type="text/css">
</style>
<!--
<div id="pinfo" class="tab-pane active">
<h2 class="VphotoMargin"><small class="smallColor">{lang code='Category:'}{assign var=category value=$userquery->get_category($user.category)}
{$category.category_name}
</small></h2>
<h2 class="VphotoMargin"><small class="smallColor">{lang code='Description:'}{$photo.photo_description}</small></h2>
<h2 class="VphotoMargin"><small class="smallColor">{lang code='Tags:'}{$photo.photo_tags|tags:photos}</small></h2>
<div class="row" style="margin-top: -20px">
<div class="col-md-2">
<h2><small class="smallColor">{lang code="views:"}{$photo.views|number_format}</small></h2>
</div>
<div class="col-md-3">
<h2><small class="smallColor">{lang code="Comments:"}{$photo.total_comments} </small></h2>
</div>
</div>
</div>-->
<div id="pshare" class="tab-pane"> <div id="pshare" class="tab-pane">
{show_share_form id=$photo.photo_id type=Photo} {show_share_form id=$photo.photo_id type=Photo}
</div> </div>
@ -315,8 +166,7 @@
</div> </div>
<div class="cb-box col-md-4 pull-right" > <div class="cb-box col-md-4 pull-right" >
<div class="ad">{AD place='ad_320x250'}</div> <div class="ad">{AD place='ad_320x250'}</div>
<!-- <a href="http://www.arvixe.com/clipbucket_hosting?utm_campaign=300x250_Demo&utm_medium=banner&utm_source=clipbucket.com"><img class="banner" src="{$theme}/assets/images/add320x250.png" style="margin-bottom: 10px; width: 100%;" >-->
</a>
<h3>{lang code='Most Popular'}</h3> <h3>{lang code='Most Popular'}</h3>
{section name=p_list loop=$photos} {section name=p_list loop=$photos}
{include file="$style_dir/blocks/PopularPhotos.html" photo=$photos[p_list]} {include file="$style_dir/blocks/PopularPhotos.html" photo=$photos[p_list]}

View file

@ -21,6 +21,8 @@ define("PARENT_PAGE","upload");
require 'includes/config.inc.php'; require 'includes/config.inc.php';
//var_dump($_POST);die(); //var_dump($_POST);die();
//$userquery->logincheck();
$pages->page_redir(); $pages->page_redir();
subtitle('upload'); subtitle('upload');
@ -30,8 +32,11 @@ if(userid())
else else
$verify_logged_user = false; $verify_logged_user = false;
//dump(has_access('allow_video_upload',false,$verify_logged_user));
if(has_access('allow_video_upload',false,$verify_logged_user)) if(has_access('allow_video_upload',false,$verify_logged_user))
{ {
$file_name = time().RandomString(5); $file_name = time().RandomString(5);
assign('file_name',$file_name); assign('file_name',$file_name);

View file

@ -86,6 +86,7 @@ $vlist = $vid_cond;
$count_query = $vid_cond; $count_query = $vid_cond;
$vlist['limit'] = $get_limit; $vlist['limit'] = $get_limit;
$videos = get_videos($vlist); $videos = get_videos($vlist);
Assign('videos', $videos); Assign('videos', $videos);

View file

@ -203,12 +203,6 @@ $pages->paginate($total_pages,$page,$link,$extra_params,$tag);
} }
add_js(array('jquery_plugs/compressed/jquery.jCarousel.js'=>'view_channel')); add_js(array('jquery_plugs/compressed/jquery.jCarousel.js'=>'view_channel'));
if($Cbucket->show_page){ if($Cbucket->show_page){
template_files('view_channel.html'); template_files('view_channel.html');
display_it(); display_it();