diff --git a/upload/styles/cb_28/layout/view_channel.html b/upload/styles/cb_28/layout/view_channel.html index b05b3be9..a0a09eda 100644 --- a/upload/styles/cb_28/layout/view_channel.html +++ b/upload/styles/cb_28/layout/view_channel.html @@ -1,8 +1,9 @@ {$myAccountLinks = $userquery->my_account_links()} {$leftMenuLinks = array_slice($myAccountLinks, 7)} {lang code='channel' assign='object_type'} -{$uservideos=get_videos(["user"=>$user.userid, "order"=>"date_added DESC"])} +{$uservideos=get_videos(["user"=>$user.userid, "order"=>"date_added DESC","limit" =>10])} {$first_video = $uservideos.0} +{$total_videos = $user.total_videos}
{include file="$style_dir/blocks/view_channel/channel_header.html"} @@ -100,13 +101,14 @@
-
+
{if $uservideos} {foreach $uservideos as $video}
{include file="$style_dir/blocks/videos/video.html" display_type='homeVideos'}
{/foreach} + {else}
No Videos Found !
{/if} @@ -308,4 +310,34 @@ $('#cover_info').show(); var total = $(this).attr("total"); load_more(limit,mode,inner_mode,append_id,attrb,cat_id,total); }); + + $('#container').on("click","#more-view-channel",function(){ + loadHit = $(this).attr('dataHit'); + loadLimit = $(this).attr('dataLimit'); + user = "{$smarty.get.user}"; + totalVids = "{$total_videos}"; + nextHit = parseInt(loadHit) + 1; + $.ajax({ + url: baseurl + "/ajax/view_channel.php", + type: "post", + dataType: "html", + data: { + "mode":'channelMore', + "loadHit":loadHit, + "loadLimit":loadLimit, + "totalVids":totalVids, + "userid":user, + }, + + success: function(data) { + $('#more-view-channel').remove(); + if (data.length > 1) { + $(data).appendTo('.user_vids').fadeIn('slow'); + $('').appendTo('.user_vids').fadeIn('slow'); + } + + + } + }); + });