modified..
This commit is contained in:
parent
7e94a66d7e
commit
36fcace67d
1 changed files with 21 additions and 2 deletions
|
@ -52,21 +52,40 @@ if($udetails)
|
|||
|
||||
|
||||
|
||||
|
||||
//Getting users channel List
|
||||
$result_array['limit'] = $get_limit;
|
||||
if(!$array['order'])
|
||||
$result_array['order'] = " doj DESC ";
|
||||
$result_array['order'] = " profile_hits DESC limit 6 ";
|
||||
|
||||
$users = get_users($result_array);
|
||||
|
||||
Assign('users', $users);
|
||||
|
||||
|
||||
|
||||
//Collecting Data for Pagination
|
||||
$vcount = $vid_cond;
|
||||
$counter = get_counter('video',$count_query);
|
||||
if(!$counter)
|
||||
{
|
||||
$vcount['count_only'] = true;
|
||||
$total_rows = get_videos($vcount);
|
||||
$total_pages = count_pages($total_rows,VLISTPP);
|
||||
$counter = $total_rows;
|
||||
update_counter('video',$count_query,$counter);
|
||||
}
|
||||
|
||||
$total_pages = count_pages($counter,VLISTPP);
|
||||
//Pagination
|
||||
$pages->paginate($total_pages,$page);
|
||||
|
||||
|
||||
//Getting Video List
|
||||
$result_array['limit'] = $get_limit;
|
||||
$result_array['user'] = $udetails["userid"];
|
||||
if(!$array['order'])
|
||||
$result_array['order'] = " videoid DESC ";
|
||||
$result_array['order'] = " videoid DESC limit 9 ";
|
||||
$videos = get_videos($result_array);
|
||||
|
||||
Assign('videos', $videos);
|
||||
|
|
Loading…
Add table
Reference in a new issue