HomeHelpTrac

Ignore:
Timestamp:
03/10/10 11:19:50 (2 years ago)
Author:
Leonid Sokushev
Message:

ticket #1900 + mem levels checking for sounds and videos blocks at profile page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/videos/classes/BxVideosSearch.php

    r13731 r13775  
    112112    function serviceGetVideoArray ($iPicId, $sImgType = 'browse') { 
    113113        $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'"; 
    126125        $aImageInfo = db_arr($sqlQuery); 
    127126 
     
    211210        } 
    212211        else { 
    213             $sVideoTxt = _t('_bx_videos_wall_video'); 
     212            $sVideoTxt = _t('_bx_videos_wall_video'); 
    214213            $aOut = array(  
    215214                'title' => $aOwner['username'] . ' ' . $sAddedNewTxt . ' ' . $sVideoTxt, 
     
    220219                    'cpt_video_url' => $aVideo['url'], 
    221220                    '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']), 
    223222                    'post_id' => $aEvent['id'] 
    224223                )) 
     
    229228     
    230229    function serviceProfileVideoBlock($iProfileId) { 
    231         $aVars = array ( 
     230        if(!$this->checkMemAction($iProfileId, 'view')) 
     231            return ''; 
     232        $aVars = array ( 
    232233            'title' => false, 
    233234            'prefix' => 'id' . time() . '_' . rand(1, 999999), 
Note: See TracChangeset for help on using the changeset viewer.