Changeset 13775 for trunk/modules/boonex/videos/classes/BxVideosSearch.php
- Timestamp:
- 03/10/10 11:19:50 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/boonex/videos/classes/BxVideosSearch.php
r13731 r13775 112 112 function serviceGetVideoArray ($iPicId, $sImgType = 'browse') { 113 113 $iPicId = (int)$iPicId; 114 $sqlQuery = "SELECT `ID` as `id`, 115 `Title` as `title`, 116 `Description` as `description`, 117 `Uri` as `uri`, 118 `Owner` as `owner`, 119 `Date` as `date`, 120 `Video`, 121 `Source`, 122 `id_album` as `album_id` 123 FROM `RayVideoFiles` 124 LEFT JOIN `sys_albums_objects` ON `sys_albums_objects`.`id_object` = `RayVideoFiles`.`ID` 125 WHERE `ID`='$iPicId' AND `Status` != 'disapproved'"; 114 $sqlQuery = "SELECT a.`ID` as `id`, 115 a.`Title` as `title`, 116 a.`Description` as `description`, 117 a.`Uri` as `uri`, 118 a.`Owner` as `owner`, 119 a.`Date` as `date`, 120 b.`id_album` as `album_id` 121 FROM `RayVideoFiles` as a 122 LEFT JOIN `sys_albums_objects` as b ON b.`id_object` = a.`ID` 123 LEFT JOIN `sys_albums` as c ON c.`ID`=b.`id_album` 124 WHERE a.`ID`='$iPicId' AND a.`Status`<>'approved' AND c.`Type`='bx_videos'"; 126 125 $aImageInfo = db_arr($sqlQuery); 127 126 … … 211 210 } 212 211 else { 213 $sVideoTxt = _t('_bx_videos_wall_video');212 $sVideoTxt = _t('_bx_videos_wall_video'); 214 213 $aOut = array( 215 214 'title' => $aOwner['username'] . ' ' . $sAddedNewTxt . ' ' . $sVideoTxt, … … 220 219 'cpt_video_url' => $aVideo['url'], 221 220 'cpt_video' => $sVideoTxt, 222 'cnt_player' => $this-> oTemplate->getFileConcept($aEvent['object_id'], array('ext'=>$aVideo['video'], 'source'=>$aVideo['source'])),221 'cnt_player' => $this->_getSharedThumb($aEvent['object_id'], $aVideo['url']), 223 222 'post_id' => $aEvent['id'] 224 223 )) … … 229 228 230 229 function serviceProfileVideoBlock($iProfileId) { 231 $aVars = array ( 230 if(!$this->checkMemAction($iProfileId, 'view')) 231 return ''; 232 $aVars = array ( 232 233 'title' => false, 233 234 'prefix' => 'id' . time() . '_' . rand(1, 999999),
Note: See TracChangeset
for help on using the changeset viewer.