Changeset 11007


Ignore:
Timestamp:
Jun 24, 2009, 5:18:29 AM (16 years ago)
Author:
Leonid Sokushev
Message:
 
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/modules/boonex/photos/classes/BxPhotosSearch.php

    r11000 r11007  
    2424class BxPhotosSearch extends BxTemplSearchResultSharedMedia { 
    2525    function BxPhotosSearch ($sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '') { 
    26         $this->aPermalinks = array( 
    27             'param' => 'bx_photos_permalinks', 
    28             'enabled' => array( 
    29                 'home' => 'home', 
    30                 'file' => '{siteUrl}photo/gallery/{uri}', 
    31                 'category' => '{siteUrl}photo/gallery/category/{uri}', 
    32                 'browseAll' => '{siteUrl}photo/all/10/1', 
    33                 'browseUserAll' => '{siteUrl}photo/gallery/all/{uri}', 
    34                 'browseAllTop' => '{siteUrl}photo/gallery_top/', 
    35                 'tag' => '{siteUrl}photo/gallery_tag/{uri}', 
    36                 'album' => 'browse/album/{uri}', 
    37                 'add' => 'browse/my/add' 
    38             ), 
    39             'disabled' => array( 
    40                 'home' => 'home', 
    41                 'file' =>  'view/{uri}', 
    42                 'category' =>  'browse/category/{uri}', 
    43                 'browseAll' =>  'browse/all', 
    44                 'browseUserAll' =>  'browse/owner/{uri}', 
    45                 'browseAllTop' =>  'browse/top', 
    46                 'tag' =>  'browse/owner/{uri}', 
    47                 'album' => 'browse/album/{uri}', 
    48                 'add' => 'browse/my/add' 
    49             ) 
    50         ); 
    51         parent::BxTemplSearchResultSharedMedia(); 
     26        parent::BxTemplSearchResultSharedMedia('BxPhotosModule'); 
    5227        // main settings 
    5328        $this->aCurrent = array( 
     
    8358        $this->aAddPartsConfig['favorite']['mainField'] = 'ID'; 
    8459                 
    85         $this->sCssPref = 'sharedPhotos'; 
    86         $this->oModule = BxDolModule::getInstance('BxPhotosModule'); 
    8760        $this->oTemplate = &$this->oModule->_oTemplate;  
    8861        $this->aConstants['filesUrl'] = $this->oModule->_oConfig->getFilesUrl(); 
  • TabularUnified trunk/modules/boonex/sounds/classes/BxSoundsModule.php

    r10995 r11007  
    7070        } 
    7171    } 
     72     
     73    function serviceGetWallData(){ 
     74        return array( 
     75            'handlers' => array( 
     76                array( 
     77                    'alert_unit' => 'bx_sounds',  
     78                    'alert_action' => 'upload',  
     79                    'module_uri' => 'sounds',  
     80                    'module_class' => 'Search',  
     81                    'module_method' => 'get_wall_post' 
     82                ) 
     83            ), 
     84            'alerts' => array( 
     85                array('unit' => 'bx_sounds', 'action' => 'upload') 
     86            ) 
     87        ); 
     88    } 
    7289} 
    7390 
  • TabularUnified trunk/modules/boonex/sounds/classes/BxSoundsUploader.php

    r11005 r11007  
    372372            return MsgBox(_t('_Empty')); 
    373373    } 
     374     
     375    function serviceGetUploaderForm($aExtras) { 
     376        $this->sPredefCategory = 'wall'; 
     377        return $this->GenMainAddMusicForm($aExtras); 
     378    } 
    374379} 
    375380 
  • TabularUnified trunk/templates/base/scripts/BxBaseSearchResultSharedMedia.php

    r11000 r11007  
    4242    var $sCurrentAlbum; 
    4343 
     44    var $sModuleClass; 
    4445    var $oModule; 
    4546     
    46     function BxBaseSearchResultSharedMedia () { 
     47    function BxBaseSearchResultSharedMedia ($sModuleClass = '') { 
    4748        /* main settings for shared modules 
    4849           ownFields - fields which will be got from main table ($this->aCurrent['table']) 
     
    9596        parent::BxBaseSearchResult(); 
    9697        bx_import('BxTemplVotingView'); 
     98        $this->sModuleClass = $sModuleClass; 
     99        $this->oModule = BxDolModule::getInstance($this->sModuleClass); 
    97100        $this->oTemplate = $GLOBALS['oSysTemplate']; 
    98101        $this->aConstants['linksTempl'] = $this->isPermalinkEnabled() ? $this->aPermalinks['enabled'] : $this->aPermalinks['disabled']; 
  • TabularUnified trunk/templates/tmpl_uni/scripts/BxTemplSearchResultSharedMedia.php

    r8240 r11007  
    44 
    55class BxTemplSearchResultSharedMedia extends BxBaseSearchResultSharedMedia { 
    6     function BxTemplSearchResultSharedMedia () { 
    7         parent::BxBaseSearchResultSharedMedia(); 
     6    function BxTemplSearchResultSharedMedia ($sModuleClass = '') { 
     7        parent::BxBaseSearchResultSharedMedia($sModuleClass); 
    88    } 
    99} 
Note: See TracChangeset for help on using the changeset viewer.
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub