Added : get featured videos via ajax.php

Updated : 2.5.1 sql
Added : no-tag option
Updated : phrases
This commit is contained in:
Arslan Hassan 2011-06-30 12:09:16 +00:00
parent f039293ba0
commit 3ac54e9e69
4 changed files with 23 additions and 3 deletions

View file

@ -59,6 +59,20 @@ if(!empty($mode))
}
break;
case 'featured_videos':
{
if(!isSectionEnabled('videos') || !$userquery->perm_check('view_videos',false,true) )
exit();
$videos = get_videos(array('limit'=>config('videos_items_hme_page'),'featured'=>'yes','order'=>'featured_date DESC'));
if($videos)
foreach($videos as $video)
{
assign('video',$video);
Template('blocks/video.html');
}
}
break;
case 'rating':
{

View file

@ -1,4 +1,7 @@
ALTER TABLE `{tbl_prefix}groups` ADD `group_admins` TEXT NOT NULL AFTER `userid`;
INSERT INTO `{tbl_prefix}config` (`configid`, `name`, `value`) VALUES (NULL, 'embed_type', 'iframe');
INSERT INTO `{tbl_prefix}config` (`configid`, `name`, `value`) VALUES (NULL, 'playlistsSection', 'yes');
INSERT INTO `{tbl_prefix}config` (`configid`, `name`, `value`) VALUES (NULL, 'playlistsSection', 'yes');
INSERT INTO `{tbl_prefix}config` (`configid`, `name`, `value`) VALUES (NULL, 'vid_cat_height', '120');
INSERT INTO `{tbl_prefix}config` (`configid`, `name`, `value`) VALUES (NULL, 'vid_cat_width', '120');

View file

@ -1057,7 +1057,10 @@
}
//Creating new tag string
$tagString = implode(',',$newTags);
if(is_array($newTags))
$tagString = implode(',',$newTags);
else
$tagString = 'no-tag';
return $tagString;
}

File diff suppressed because one or more lines are too long