ADDED : Background Attachemnt Feature
UPDATE : View Channel Fixed : Channel Comment System (Ajaxed)
This commit is contained in:
parent
280d287981
commit
3ec0c8ac6d
19 changed files with 314 additions and 94 deletions
|
@ -127,7 +127,7 @@ include('../includes/config.inc.php');
|
|||
exit(0);
|
||||
}else{
|
||||
$Upload->add_conversion_queue($file_name);
|
||||
//exec(php_path()." -q ".BASEDIR."/actions/video_convert.php &> /dev/null &");
|
||||
exec(php_path()." -q ".BASEDIR."/actions/video_convert.php &> /dev/null &");
|
||||
}
|
||||
|
||||
exit(0);
|
||||
|
|
|
@ -14,7 +14,7 @@ $SYSTEM_OS = $row['sys_os'] ? $row['sys_os'] : 'linux';
|
|||
require_once(BASEDIR.'/includes/classes/conversion/ffmpeg.win32.php');
|
||||
|
||||
//Get Vido
|
||||
$queue_details = get_queued_video();
|
||||
$queue_details = get_queued_video(TRUE);
|
||||
|
||||
//Setting up details, moving files
|
||||
$tmp_file = $queue_details['cqueue_name'];
|
||||
|
@ -68,7 +68,7 @@ rename($temp_file,$orig_file);
|
|||
$ffmpeg->remove_input=FALSE;
|
||||
$ffmpeg->ClipBucket();
|
||||
//Converting File In HD Format
|
||||
$ffmpeg->convert_to_hd();
|
||||
//$ffmpeg->convert_to_hd();
|
||||
|
||||
$db->update("conversion_queue",
|
||||
array("cqueue_conversion"),
|
||||
|
@ -77,7 +77,7 @@ rename($temp_file,$orig_file);
|
|||
update_processed_video($queue_details);
|
||||
|
||||
/**
|
||||
* Calling Functions before converting Video
|
||||
* Calling Functions after converting Video
|
||||
*/
|
||||
if(get_functions('after_convert_functions'))
|
||||
{
|
||||
|
|
|
@ -21,6 +21,7 @@ if(!empty($mode))
|
|||
case 'recent_viewed_vids':
|
||||
{
|
||||
$videos = get_videos(array('limit'=>'20','order'=>'last_viewed DESC'));
|
||||
if($videos)
|
||||
foreach($videos as $video)
|
||||
{
|
||||
assign('video',$video);
|
||||
|
@ -32,6 +33,7 @@ if(!empty($mode))
|
|||
case 'most_viewed':
|
||||
{
|
||||
$videos = get_videos(array('limit'=>'20','order'=>'views DESC'));
|
||||
if($videos)
|
||||
foreach($videos as $video)
|
||||
{
|
||||
assign('video',$video);
|
||||
|
@ -43,6 +45,7 @@ if(!empty($mode))
|
|||
case 'recently_added':
|
||||
{
|
||||
$videos = get_videos(array('limit'=>'20','order'=>'date_added DESC'));
|
||||
if($videos)
|
||||
foreach($videos as $video)
|
||||
{
|
||||
assign('video',$video);
|
||||
|
@ -219,37 +222,53 @@ if(!empty($mode))
|
|||
case 'video':
|
||||
default:
|
||||
{
|
||||
$id = mysql_clean($_POST['obj_id']);
|
||||
$comment = $_POST['comment'];
|
||||
if($comment=='undefined')
|
||||
$comment = '';
|
||||
$reply_to = $_POST['reply_to'];
|
||||
$id = mysql_clean($_POST['obj_id']);
|
||||
$comment = $_POST['comment'];
|
||||
if($comment=='undefined')
|
||||
$comment = '';
|
||||
$reply_to = $_POST['reply_to'];
|
||||
|
||||
$cid = $cbvid->add_comment($comment,$id,$reply_to);
|
||||
if(msg())
|
||||
$cid = $cbvid->add_comment($comment,$id,$reply_to);
|
||||
}
|
||||
break;
|
||||
case 'u':
|
||||
case 'c':
|
||||
{
|
||||
$msg = msg_list();
|
||||
$msg = '<div class="msg">'.$msg[0].'</div>';;
|
||||
}
|
||||
if(error())
|
||||
{
|
||||
$err = error_list();
|
||||
$err = '<div class="error">'.$err[0].'</div>';;
|
||||
}
|
||||
|
||||
$ajax['msg'] = $msg ? $msg : '';
|
||||
$ajax['err'] = $err;
|
||||
$id = mysql_clean($_POST['obj_id']);
|
||||
$comment = $_POST['comment'];
|
||||
if($comment=='undefined')
|
||||
$comment = '';
|
||||
$reply_to = $_POST['reply_to'];
|
||||
|
||||
//Getting Comment
|
||||
if($cid)
|
||||
{
|
||||
$ajax['cid'] = $cid;
|
||||
$cid = $userquery->add_comment($comment,$id,$reply_to);
|
||||
}
|
||||
break;
|
||||
|
||||
echo json_encode($ajax);
|
||||
}
|
||||
}
|
||||
|
||||
if(msg())
|
||||
{
|
||||
$msg = msg_list();
|
||||
$msg = '<div class="msg">'.$msg[0].'</div>';;
|
||||
}
|
||||
if(error())
|
||||
{
|
||||
$err = error_list();
|
||||
$err = '<div class="error">'.$err[0].'</div>';;
|
||||
}
|
||||
|
||||
$ajax['msg'] = $msg ? $msg : '';
|
||||
$ajax['err'] = $err;
|
||||
|
||||
//Getting Comment
|
||||
if($cid)
|
||||
{
|
||||
$ajax['cid'] = $cid;
|
||||
}
|
||||
|
||||
echo json_encode($ajax);
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -135,7 +135,6 @@ class ffmpeg
|
|||
$opt_av .= " -b $vbrate ";
|
||||
}
|
||||
|
||||
|
||||
# video size, aspect and padding
|
||||
$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, $pad_left, $pad_right );
|
||||
$opt_av .= " -s {$width}x{$height} -aspect $ratio -padcolor 000000 -padtop $pad_top -padbottom $pad_bottom -padleft $pad_left -padright $pad_right ";
|
||||
|
@ -225,7 +224,9 @@ class ffmpeg
|
|||
if( $stats === false )
|
||||
$this->log .= "Failed to stat file $path_source!\n";
|
||||
$info['size'] = (integer)$stats['size'];
|
||||
$this->ffmpeg." -i $path_source -acodec copy -vcodec copy -f null /dev/null 2>&1";
|
||||
$output = $this->exec( $this->ffmpeg." -i $path_source -acodec copy -vcodec copy -f null /dev/null 2>&1" );
|
||||
|
||||
# parse output
|
||||
if( $this->parse_format_info( $output, $info ) === false )
|
||||
return false;
|
||||
|
@ -695,7 +696,7 @@ class ffmpeg
|
|||
$convert = false;
|
||||
//Checkinf for HD or Not
|
||||
$opt_av = '';
|
||||
pr($i);
|
||||
|
||||
if(substr($i['video_wh_ratio'],0,5) == '1.777' && $i['video_width'] > '500')
|
||||
{
|
||||
|
||||
|
@ -809,7 +810,7 @@ class ffmpeg
|
|||
$this->log .= "\r\n\r\n\n=========ENDING $type CONVERSION==============\n\n";
|
||||
|
||||
$fields = array('file_conversion_log',strtolower($type));
|
||||
$values = array($this->log,'yes');
|
||||
$values = array(mysql_clean($this->log),'yes');
|
||||
$db->update($this->tbl,$fields,$values," id = '".$this->row_id."'");
|
||||
return true;
|
||||
}else
|
||||
|
|
|
@ -2129,11 +2129,9 @@ class userquery {
|
|||
{
|
||||
global $db,$signup,$Upload;
|
||||
//Updating User Avatar
|
||||
if($array['avatar_url'])
|
||||
{
|
||||
$uquery_field[] = 'avatar_url';
|
||||
$uquery_val[] = mysql_clean($array['avatar_url']);
|
||||
}
|
||||
$uquery_field[] = 'avatar_url';
|
||||
$uquery_val[] = mysql_clean($array['avatar_url']);
|
||||
|
||||
|
||||
//Deleting User Avatar
|
||||
if($array['delete_avatar']=='yes')
|
||||
|
@ -2164,17 +2162,11 @@ class userquery {
|
|||
|
||||
|
||||
//Updating User Background
|
||||
if($array['background_url'])
|
||||
{
|
||||
$uquery_field[] = 'background_url';
|
||||
$uquery_val[] = mysql_clean($array['background_url']);
|
||||
}
|
||||
$uquery_field[] = 'background_url';
|
||||
$uquery_val[] = mysql_clean($array['background_url']);
|
||||
|
||||
if($array['background_color'])
|
||||
{
|
||||
$uquery_field[] = 'background_color';
|
||||
$uquery_val[] = mysql_clean($array['background_color']);
|
||||
}
|
||||
$uquery_field[] = 'background_color';
|
||||
$uquery_val[] = mysql_clean($array['background_color']);
|
||||
|
||||
if($array['background_repeat'])
|
||||
{
|
||||
|
@ -2182,6 +2174,10 @@ class userquery {
|
|||
$uquery_val[] = mysql_clean($array['background_repeat']);
|
||||
}
|
||||
|
||||
//Background ATtachement
|
||||
$uquery_field[] = 'background_attachement';
|
||||
$uquery_val[] = mysql_clean($array['background_attachement']);
|
||||
|
||||
|
||||
if(isset($_FILES['background_file']['name']))
|
||||
{
|
||||
|
|
|
@ -1241,11 +1241,12 @@
|
|||
/**
|
||||
* Function used to get video from downloading queue
|
||||
*/
|
||||
function get_queued_video()
|
||||
function get_queued_video($update=TRUE)
|
||||
{
|
||||
global $db;
|
||||
$results = $db->select("conversion_queue","*","cqueue_conversion='no'");
|
||||
$result = $results[0];
|
||||
if($update)
|
||||
$db->update("conversion_queue",array("cqueue_conversion"),array("p")," cqueue_id = '".$result['cqueue_id']."'");
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -322,10 +322,7 @@
|
|||
},
|
||||
function(data)
|
||||
{
|
||||
if(!data)
|
||||
alert("No data");
|
||||
else
|
||||
$(div).html(data);
|
||||
$(div).html(data);
|
||||
},'text');
|
||||
}
|
||||
|
||||
|
@ -411,7 +408,7 @@
|
|||
}
|
||||
|
||||
|
||||
function subscriber(user,type)
|
||||
function subscriber(user,type,result_cont)
|
||||
{
|
||||
var page = baseurl+'/ajax.php';
|
||||
$.post(page,
|
||||
|
@ -425,8 +422,8 @@
|
|||
alert("No data");
|
||||
else
|
||||
{
|
||||
$("#video_detail_result_cont").css("display","block");
|
||||
$("#video_detail_result_cont").html(data);
|
||||
$("#"+result_cont).css("display","block");
|
||||
$("#"+result_cont).html(data);
|
||||
}
|
||||
},'text');
|
||||
}
|
||||
|
@ -480,7 +477,7 @@
|
|||
if(data.msg!='')
|
||||
$("#add_comment_result").html(data.msg);
|
||||
|
||||
if(data.cid!='')
|
||||
if(data.cid)
|
||||
{
|
||||
get_the_comment(data.cid,"#latest_comment_container");
|
||||
$("#"+form_id).slideUp();
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 34 KiB |
BIN
upload/styles/cbv2new/images/view_channel.png
Normal file
BIN
upload/styles/cbv2new/images/view_channel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 740 B |
|
@ -5,6 +5,7 @@
|
|||
<div class="container_container">
|
||||
<div id="container" class="clearfix">
|
||||
{include file="$style_dir/header.html" }
|
||||
<div class="nav_shadow"></div>
|
||||
<div id="content">
|
||||
<!-- Message -->
|
||||
{include file="$style_dir/message.html"}
|
||||
|
|
|
@ -134,6 +134,8 @@ OR
|
|||
</select>
|
||||
<br />
|
||||
|
||||
<input type="checkbox" {if $user.background_attachement=='yes'} checked="checked"{/if} value="yes" name="background_attachement" id="background_attachement" />
|
||||
<label for="background_attachement" style="display:inline">Fix Background</label>
|
||||
{if $userquery->getUserBg($user)}<input name="delete_bg" type="checkbox" id="delete_bg" value="yes" /><label for="delete_bg" style="display:inline">Delete This Image</label>{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -52,11 +52,18 @@ var imageurl = '{$imageurl}';
|
|||
|
||||
|
||||
|
||||
{if $page == 'upload_video'}
|
||||
{if $smarty.const.THIS_PAGE == 'upload'}
|
||||
|
||||
<script src="{$js}/swfupload/swfupload.js"></script>
|
||||
<script src="{$js}/swfupload/plugins/fileprogress.js"></script>
|
||||
<script src="{$js}/swfupload/plugins/handlers.js"></script>
|
||||
<script src="{$js}/swfupload/plugins/swfupload.cookies.js"></script>
|
||||
<script src="{$js}/swfupload/plugins/swfupload.queue.js"></script>
|
||||
<script src="{$js}/swfupload/plugins/swfupload.speed.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var swfu;
|
||||
var file_name = {$file_name};
|
||||
var file_name = '{$file_name}';
|
||||
{literal}
|
||||
window.onload = function() {
|
||||
var settings = {
|
||||
|
|
|
@ -58,6 +58,4 @@
|
|||
</div> <!--SEARCH_CON END-->
|
||||
</div> <!--NAVI END-->
|
||||
</div> <!--NAVI_CON END-->
|
||||
|
||||
<div class="nav_shadow"></div>
|
||||
<div class="clear"></div>
|
181
upload/styles/cbv2new/layout/upload.html
Normal file
181
upload/styles/cbv2new/layout/upload.html
Normal file
|
@ -0,0 +1,181 @@
|
|||
</body><head>
|
||||
{if $show_upload != 'no'}
|
||||
{if $data.usr_status !=''}
|
||||
<body>
|
||||
<table width="930" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#B9E3FF" style="border:solid 1px #0099CC;">
|
||||
<tr>
|
||||
<td ><table width="98%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="5%"><img src="{$imageurl}/alert.png" /></td>
|
||||
<td width="95%"><span class="tips">{$LANG.vdo_inactive_msg}</span> <a href="{$baseurl}/activation.php">{$LANG.vdo_click_here}</a></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
<script src="{$js}/flashobject.js"></script>
|
||||
<script src="{$js}/uploader.js"></script>
|
||||
{$java}
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{assign var='requiredFields' value=$Upload->loadRequiredFields()}
|
||||
{assign var='optionFields' value=$Upload->loadOptionFields()}
|
||||
{assign var='locationFields' value=$Upload->loadLocationFields()}
|
||||
{assign var='cust_fields' value=$Upload->custom_form_fields}
|
||||
|
||||
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<div id="link_button">
|
||||
<ul>
|
||||
{foreach from=$plugin_list item=plugin}
|
||||
{if $plugin.plugin_type == upload}
|
||||
{$plugin.plugin_link}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">{if $step =='1'}
|
||||
<form name="upload_01" method="post" action="">
|
||||
<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height="30" align="left" valign="middle" class="header1" >{$LANG.vdo_upload_step1} <span class="header2">{$LANG.vdo_upload_step2}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" valign="middle" bgcolor="#F0F0F0"><img src="{$imageurl}/uploader_tr.gif"></td>
|
||||
</tr>
|
||||
<tr bgcolor="#F6F6F6">
|
||||
<td align="left" valign="middle" bgcolor="#F0F0F0"><table width="95%" border="0" align="center" cellpadding="2" cellspacing="1">
|
||||
<tr>
|
||||
<td colspan="2" align="left" class="header2">{$LANG.vdo_video_details}</td>
|
||||
</tr>
|
||||
{foreach from=$requiredFields item=field}
|
||||
<tr>
|
||||
<td width="117" align="right" valign="top" class="header3">{$field.title}* :</td>
|
||||
<td class="tips">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td height="130" colspan="2" align="right"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
|
||||
<tr>
|
||||
<td colspan="2" align="left" class="header2">{$LANG.vdo_date_loc}</td>
|
||||
</tr>
|
||||
{foreach from=$locationFields item=field}
|
||||
<tr>
|
||||
<td width="117" align="right" valign="top" class="header3">{$field.title}* :</td>
|
||||
<td width="347" class="tips">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="80" colspan="2" align="right"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
|
||||
<tr>
|
||||
<td colspan="2" align="left" class="header2">{$LANG.vdo_share_opt}</td>
|
||||
</tr>
|
||||
{foreach from=$optionFields item=field}
|
||||
<tr>
|
||||
<td width="117" align="right" valign="top" class="header3">{$field.title}* :</td>
|
||||
<td class="tips">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{foreach from=$cust_fields item=field}
|
||||
<tr>
|
||||
<td width="117" align="right" valign="top" class="header3">{$field.title}* :</td>
|
||||
<td class="tips">{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||
<br>
|
||||
{$field.hint_2}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr bgcolor="#F6F6F6">
|
||||
<td align="right" valign="middle" bgcolor="#F0F0F0"><img src="{$imageurl}/uploader_br.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" valign="middle">
|
||||
<input type="submit" name="submit_data" id="button" value="{$LANG.vdo_continue_upload}" onClick="return validate_upload_form(upload_01)"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/if}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
{if $step =="2"}
|
||||
<form action="{$upload_link}" method="post" enctype="multipart/form-data" name="{$upload_form_name}" id="{$upload_form_name}" >
|
||||
{$Upload->load_post_fields()}
|
||||
<input name="file_name" type="hidden" value="{$file_name}">
|
||||
{assign var=opt_list value=$Upload->load_upload_options()}
|
||||
|
||||
{foreach from=$opt_list item=opt key=divid}
|
||||
<div class="upload_opt" id="{$divid}">
|
||||
<span class="header1">{$opt.title}</span>
|
||||
{load_form name=$opt.load_func}
|
||||
</div>
|
||||
{/foreach}
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
|
||||
{if $step==3}
|
||||
|
||||
<table width="445" border="0" align="center" cellspacing="0">
|
||||
<tr>
|
||||
<td width="50%" class="header1" style="padding-left:5px">{$LANG.vdo_video_upload_complete}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" align="right" bgcolor="#F0F0F0" style="padding:0px; margin:0px"><img src="{$imageurl}/uploader_tr.gif" width="20" height="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" bgcolor="#F0F0F0" style="padding:5px"><span class="header1">{$LANG.vdo_thanks_you_upload_complete_1}.</span><br>
|
||||
<span class="tips">{$LANG.vdo_thanks_you_upload_complete_2} <a href="{$manage_videos}"><strong>{$LANG.com_my_videos}</strong></a> {$LANG.vdo_after_it_has_process} </span><span class="header1"><br>
|
||||
</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" align="right" bgcolor="#F0F0F0" style="padding:0px; margin:0px"><img src="{$imageurl}/uploader_br.gif" width="20" height="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" align="right" style="padding:0px; margin:0px"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:0px; margin:0px">
|
||||
<div id="link_button" align="center">
|
||||
<ul>
|
||||
<li><a href="{$upload_link}" >{$LANG.vdo_upload_another_video}</a></li>
|
||||
<li><a href="{$manage_videos}" >{$LANG.vdo_goto_my_videos}</a></li>
|
||||
</ul>
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
</td>
|
||||
<td width="450"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{/if}
|
|
@ -1,19 +1,22 @@
|
|||
{* Including Global Header *}
|
||||
{include file="$style_dir/global_header.html"}
|
||||
<body>
|
||||
<div {if $userquery->getUserBg($u) || $u.background_color!=''}style="background-position:center;background:{if $userquery->getUserBg($u)}url('{$userquery->getUserBg($u)}');background-repeat: {$u.background_repeat};{elseif $u.background_color!=''}{$u.background_color}{/if}; {if $u.background_attachement=='yes'}background-attachment:fixed{/if}"{/if}>
|
||||
<div id="container" class="clearfix" style="background-color:none">
|
||||
|
||||
<!-- Including Commong header -->
|
||||
{include file="$style_dir/header.html" }
|
||||
<div style="height:10px; background-attachment:"></div>
|
||||
{include file="$style_dir/message.html"}
|
||||
<div id="content_container" {if $userquery->getUserBg($u) || $u.background_color!=''}style="background-position:center;background:{if $userquery->getUserBg($u)}url('{$userquery->getUserBg($u)}');background-repeat: {$u.background_repeat};{elseif $u.background_color!=''}{$u.background_color}{/if}"{/if}>
|
||||
<div id="content_container" >
|
||||
<div id="content" style="padding-bottom:15px">
|
||||
<!-- Channel Top -->
|
||||
<div class="channel_box">
|
||||
<div class="channel_inner_box channel_top">
|
||||
<div class="usr_small_thumb"><img src="{$userquery->getUserThumb($u,'small')}" class="user_small_thumb" alt="{$u.username}"></div>
|
||||
<div class="usr_channel">{lang code='user_s_channel' assign='usr_s'}{$usr_s|sprintf:$u.username} <a href="#" class="cb_button">{lang code='subscribe'}</a></div>
|
||||
|
||||
<div class="channel_top_user_box">
|
||||
<div class="usr_small_thumb"><img src="{$userquery->getUserThumb($u,'small')}" class="user_small_thumb" alt="{$u.username}"></div>
|
||||
<div class="usr_channel">{lang code='user_s_channel' assign='usr_s'}{$usr_s|sprintf:$u.username} </div>
|
||||
</div>
|
||||
{assign var='channel_links' value=$userquery->get_inner_channel_top_links($u)}
|
||||
<ul class="top_channel_links">
|
||||
{foreach from=$channel_links item=link key=link_title}
|
||||
|
@ -49,7 +52,9 @@
|
|||
<!-- User Video Blcok Ends-->
|
||||
{/if}
|
||||
|
||||
|
||||
<div class="channel_box">
|
||||
<div class="channel_inner_box" id="result_cont" style="display:none"></div>
|
||||
</div>
|
||||
|
||||
<!-- Starting Bottom Channel Box -->
|
||||
<div class="channel_box" style="margin-bottom:0px">
|
||||
|
@ -59,7 +64,7 @@
|
|||
<div class="usr_thumb_container" align="center">
|
||||
<img src="{$userquery->getUserThumb($u)}" alt="{$u.username}" class="user_thumb">
|
||||
</div>
|
||||
<a href="" class="cb_button">{lang code='subscribe'}</a><br>
|
||||
<span class="cb_button" onclick="subscriber('{$u.userid}','subscribe_user','result_cont')">{lang code='subscribe'}</span><br>
|
||||
{assign var='channel_action_links' value=$userquery->get_channel_action_links($u)}
|
||||
<ul class="channel_action_links">
|
||||
{foreach from=$channel_action_links item=link key=link_title}
|
||||
|
@ -106,7 +111,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<span class="channel_heading">{lang code='Personal Details'|capitalize:true}</span>
|
||||
{assign var="personal_details" value=$userquery->load_personal_details($p)}
|
||||
{foreach from=$personal_details item=field}
|
||||
|
@ -157,7 +162,7 @@
|
|||
<div class="right_column">
|
||||
<div class="channel_inner_box">
|
||||
<span class="channel_heading">{lang code='users_videos' assign='users_videos'}{$users_videos|sprintf:$u.username}</span>
|
||||
<hr width="100%" size="1" noshade>
|
||||
|
||||
{get_videos assign='usr_vids' limit='4' order='date_added DESC' user=$u.userid}
|
||||
{section name=v_list loop=$usr_vids}
|
||||
{include file="$style_dir/blocks/video.html" video=$usr_vids[v_list]}
|
||||
|
@ -172,7 +177,6 @@
|
|||
|
||||
<div class="channel_inner_box">
|
||||
<span class="channel_heading">{lang code='users_subscribers' assign='users_videos'}{$users_videos|sprintf:$u.username}</span>
|
||||
<hr width="100%" size="1" noshade>
|
||||
{assign var='usr_subs' value=$userquery->get_user_subscribers_detail($u.userid)}
|
||||
{section name=u_list loop=$usr_subs}
|
||||
{include file="$style_dir/blocks/user.html" user=$usr_subs[u_list] block_type='small'}
|
||||
|
@ -191,15 +195,9 @@
|
|||
<div class="channel_inner_box" >
|
||||
<span class="channel_heading">{lang code='comments'|capitalize:true}</span>
|
||||
<hr width="100%" size="1" noshade><!-- Displaying Comments -->
|
||||
{include file="$style_dir/blocks/comments.html" id=$u.userid type=c}<hr width="100%" size="1" noshade>
|
||||
<span class="channel_heading_mid">{lang code='user_add_comment'}</span>
|
||||
<form name="add_comment" action="" method="post">
|
||||
<label for="comment"></label>
|
||||
<textarea name="comment" id="comment" cols="45" rows="5"></textarea>
|
||||
<br>
|
||||
<label for="add_comment"></label>
|
||||
<input type="submit" name="add_comment" id="add_comment" value="Submit">
|
||||
</form>
|
||||
{include file="$style_dir/blocks/comments/comments.html" id=$u.userid type=c}<hr width="100%" size="1" noshade>
|
||||
{include file="$style_dir/blocks/comments/add_comment.html" id=$u.userid type=c}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -221,5 +219,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -53,7 +53,7 @@
|
|||
<li><a href="#">View Profile</a></li>
|
||||
<li><a href="#">View Videos</a></li>
|
||||
</ul>
|
||||
<div align="center"><span class="small_button non_button" onclick="subscriber('{$user.userid}','subscribe_user')">Subscribe</span></div>
|
||||
<div align="center"><span class="small_button non_button" onclick="subscriber('{$user.userid}','subscribe_user','video_detail_result_cont')">Subscribe</span></div>
|
||||
</div>
|
||||
<div class="vd_details">
|
||||
<div class="uploading_detail">
|
||||
|
|
|
@ -14,7 +14,7 @@ body,html { background:url(../images/main_bg.png) repeat-x; background-color:#ff
|
|||
.clearfix:after{ content: "."; display:block; height:0; font-size:0; clear:both; visibility:visible; }
|
||||
|
||||
/* GENERAL CSS */
|
||||
a,a:visited { color:#0066cc; text-decoration:underline; outline:none; }
|
||||
a{ color:#0066cc; text-decoration:underline; outline:none; }
|
||||
a:hover,a:active { /*color:#464646; */ color:#d54e21; outline:none; }
|
||||
a[rel=sponsors] { padding:5px; background:#0099cc; border:1px solid transparent; }
|
||||
a[rel=sponsors]:hover { background:#555; border:1px solid #232323; }
|
||||
|
@ -90,7 +90,7 @@ span.remember { font-size:10px; }
|
|||
.top_tabs { margin:0px; padding:0px; clear:both; }
|
||||
.top_tabs ul { margin:0px; padding:0px; list-style:none; float:left; position:relative; left:50%; }
|
||||
.top_tabs ul li { margin:0px; padding:0px; float:left; list-style:none; position:relative; right:50%; top:1px; }
|
||||
.top_tabs ul li a { width:139px; display:block; height:33px; line-height:33px; background:#62b3ff; text-align:center; text-decoration:none; color:#FFF; margin-right:9px; font-size:14px; border-radius:5px; -moz-border-radius-topleft:5px; -webkit-border-top-left-radius:5px; -moz-border-radius-topright:5px; -webkit-border-top-right-radius:5px; background:url(../images/nav_grads.png); background-position:-0px -162px; background-repeat:repeat-x}
|
||||
.top_tabs ul li a { width:139px; display:block; height:33px; line-height:33px; background:#62b3ff; text-align:center; text-decoration:none; color:#FFF; margin-right:9px; font-size:14px; border-radius:5px 5px 0px 0px; -moz-border-radius:5px 5px 0px 0px; -webkit-border-radius:5px 5px 0px 0px; background:url(../images/nav_grads.png); background-position:-0px -162px; background-repeat:repeat-x}
|
||||
.top_tabs ul li a:hover { background:#0099cc; }
|
||||
.top_tabs ul li a.selected { background:url(../images/nav_grads.png) top repeat-x; border:1px solid #006699; border-bottom:0px none; }
|
||||
|
||||
|
@ -501,3 +501,7 @@ display:inline-block; width:18px; height:18px; line-height:18px; text-align:cent
|
|||
|
||||
.videosharing{width:280px;}
|
||||
.videosharing input{border:1px solid #999; color:#999; font-size:10px}
|
||||
|
||||
.user_block_small{width:70px; height:80px; margin:3px; float:left; padding:5px; font-size:10px; border:1px solid #CCC}
|
||||
.user_block_small a{font-size:11px; font-weight:bold}
|
||||
.user_mid_thumb{width:60px; height:60px;display:inline; border:1px solid #999; padding:2px;}
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
|
||||
.channel_inner_box, .channel_inner_box a{color:#fff; }
|
||||
.channel_box{background-color:#CCC;}
|
||||
.channel_inner_box{background-color:#666;}
|
||||
|
||||
.channel_inner_box a{font-weight:bold}
|
||||
.channel_inner_box, .channel_inner_box a{font-weight:bold; text-decoration:none;font-family:Arial, Helvetica, sans-serif ; color:#333 }
|
||||
|
||||
.channel_box{background-color:#d7d8d8;}
|
||||
.channel_inner_box{background-color:#fff;}
|
||||
|
||||
|
||||
.channel_box
|
||||
{
|
||||
|
||||
|
@ -25,20 +27,30 @@
|
|||
width:99%; margin:auto;
|
||||
padding:5px;
|
||||
font-size:12px;
|
||||
background-color:#fff
|
||||
}
|
||||
.channel_heading, .channel_top{font-size:16px; font-weight:bold}
|
||||
|
||||
.channel_inner_box .error{color:#ed0000}
|
||||
.channel_inner_box .msg{color:#0099cc}
|
||||
|
||||
.channel_top{font-size:16px; font-weight:bold}
|
||||
.channel_heading_mid{font-size:12px; font-weight:bold}
|
||||
|
||||
.channel_heading{background-image:url(../images/view_channel.png); background-position:0px -375px; background-repeat:repeat-x; height:25px; display:block; margin-bottom:5px; padding-left:8px; line-height:25px; font-size:16px; color:#fff;border-radius:3px;
|
||||
-moz-border-radius:3px;
|
||||
-webkit-border-radius:3px; }
|
||||
.channel_inner_box .usr_small_thumb
|
||||
{
|
||||
width:40px;
|
||||
height:30px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.usr_channel{ display:inline-block; float:left; margin-right:15px }
|
||||
.channel_top_user_box{float:left; display:inline-block}
|
||||
.usr_channel{ display:inline-block; margin-right:15px }
|
||||
|
||||
.top_channel_links{display:block; margin:0px; padding:0px; float:left; line-height:33px}
|
||||
.top_channel_links li{list-style:none; padding:0px; margin:0px; display:block; float:left; width:100px}
|
||||
.top_channel_links{display:block; margin:0px; padding:0px; float:left; }
|
||||
.top_channel_links li{list-style:none; padding:0px; margin:0px; display:block; float:left; width:100px; text-align:center; margin:0px 3px 0px 3px}
|
||||
.top_channel_links li a{color:#fff; display:block; background-color:#0099cc;border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px; height:20px}
|
||||
|
||||
.usr_thumb_container{margin-bottom:10px}
|
||||
.user_thumb{max-width:260px}
|
||||
|
@ -54,5 +66,5 @@
|
|||
.float_left{float:left}
|
||||
|
||||
|
||||
.right_column{float:right; width:675px; margin-right:3px}
|
||||
.right_column{float:right; width:705px; margin-right:3px}
|
||||
.right_column .channel_inner_box{margin-bottom:5px}
|
|
@ -53,6 +53,7 @@ var imageurl = '{$imageurl}';
|
|||
|
||||
{if $page == 'upload_video'}
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var swfu;
|
||||
var file_name = {$file_name};
|
||||
|
|
Loading…
Add table
Reference in a new issue