Changeset 11176


Ignore:
Timestamp:
Jul 6, 2009, 2:42:15 AM (16 years ago)
Author:
Andrey Prikaznov
Message:
 
Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/inc/classes/BxDolFilesUploader.php

    r11163 r11176  
    2929    var $_aExtras; 
    3030 
    31     var $sPredefCategory; 
    32     var $sPredefAlbum; 
     31    // var $sPredefCategory; //TODO remove 
     32    // var $sPredefAlbum; //TODO remove 
     33 
    3334    var $sSendFileInfoFormCaption; 
    34  
    3535    var $sMultiUploaderParams; 
    3636 
     
    5050         
    5151        $this->_iOwnerId = $this->_getAuthorId(); 
    52         //$this->_sJsPostObject = 'oCommonUpload'; 
    53         //$this->_aExtras = array(); 
    5452 
    5553        $this->_sJsPostObject = 'o'.$this->sUploadTypeNC.'Upload'; 
    56  
    57         //$this->sWorkingFile = BX_DOL_URL_MODULES . 'boonex/'.$this->sUploadTypeLC.'/add'.$this->sUploadTypeNC.'.php'; 
    5854        $this->sSendFileInfoFormCaption = ''; 
    5955 
    60         $this->sPredefCategory = (isset($_REQUEST['category']) && $_REQUEST['category']!='') ? process_db_input($_REQUEST['category'], 1) : ''; 
    61         $this->sPredefAlbum = (isset($_REQUEST['album']) && $_REQUEST['album']!='') ? process_db_input($_REQUEST['album'], 1) : ''; 
     56        // $this->sPredefCategory = (isset($_REQUEST['category']) && $_REQUEST['category']!='') ? process_db_input($_REQUEST['category'], 1) : ''; 
     57        // $this->sPredefAlbum = (isset($_REQUEST['album']) && $_REQUEST['album']!='') ? process_db_input($_REQUEST['album'], 1) : ''; 
    6258        global $oTemplConfig; 
    6359        $oTemplConfig->aJsLangStrings[] = '_bx_'.$this->sUploadTypeLC.'_val_title_err'; 
     
    6864        if(!empty($_REQUEST)) 
    6965            $this->_aExtras = $this->_getExtraParams($_REQUEST); 
    70  
    7166 
    7267        $this->sMultiUploaderParams = array( //Important! Should be override with necessary params 
     
    206201        ); 
    207202 
    208         /* 
    209         //--- Process Extras ---// 
    210         foreach($this->_aExtras as $sKey => $mixedValue) 
    211             $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 
    212                 'type' => 'hidden', 
    213                 'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey, 
    214                 'value' => $mixedValue 
    215             ); 
    216  
    217         $aFormCategories = array(); 
    218         if ($this->sPredefCategory != '') { 
    219              $aFormCategories['category'] = array( 
    220                 'type' => 'hidden', 
    221                 'name' => 'category', 
    222                 'value' => $this->sPredefCategory 
    223             ); 
    224         } 
    225         if (count($aFormCategories)>0) { 
    226             $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 
    227         }*/ 
    228  
    229203        $oForm = new BxTemplFormView($aForm); 
    230  
    231204        return $sCssJs . $this->getLoadingCode() . $oForm->getCode(); 
    232205    } 
     
    260233        $sAcceptedImagesForm = '<div style="width:100%;background-color:#ffdada;" id="accepted_files_block"></div>'; 
    261234 
    262         $sForm; 
     235        $sForm = ''; 
    263236        switch ($_REQUEST['mode']) { 
    264237            case 'record': 
     
    336309        ); 
    337310 
    338         $aFormCategories = array(); 
    339         if ($this->sPredefCategory != '') { 
    340              $aFormCategories['category'] = array( 
    341                 'type' => 'hidden', 
    342                 'name' => 'category', 
    343                 'value' => $this->sPredefCategory 
    344             ); 
    345         } 
    346         if (count($aFormCategories)>0) { 
    347             $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 
    348         } 
    349  
    350         //$aForm['inputs'] = isset($aParams['inputs']) ? array_merge($aForm['inputs'], $aParams['inputs']) : $aForm['inputs']; 
     311        //--- Process Extras ---// 
     312        foreach($this->_aExtras as $sKey => $mixedValue) { 
     313            $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 
     314                'type' => 'hidden', 
     315                'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey, 
     316                'value' => $mixedValue 
     317            ); 
     318        } 
     319 
    351320        $oForm = new BxTemplFormView($aForm); 
    352          
    353         //$sReturn = '<script src="' . BX_DOL_URL_MODULES . 'boonex/shared_'.$this->sUploadTypeLC.'/js/embed.js" type="text/javascript" language="javascript"></script>'; 
    354         $sReturn .= $this->getLoadingCode() . $oForm->getCode(); 
    355  
    356         return $sReturn; 
     321        return $this->getLoadingCode() . $oForm->getCode(); 
    357322    } 
    358323 
     
    395360        ); 
    396361 
    397         $aFormCategories = array(); 
    398         if ($this->sPredefCategory != '') { 
    399              $aFormCategories['category'] = array( 
    400                 'type' => 'hidden', 
    401                 'name' => 'category', 
    402                 'value' => $this->sPredefCategory 
    403             ); 
    404         } 
    405         if (count($aFormCategories)>0) { 
    406             $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 
    407         } 
    408  
    409         //$aForm['inputs'] = isset($aParams['inputs']) ? array_merge($aForm['inputs'], $aParams['inputs']) : $aForm['inputs']; 
     362        //--- Process Extras ---// 
     363        foreach($this->_aExtras as $sKey => $mixedValue) { 
     364            $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 
     365                'type' => 'hidden', 
     366                'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey, 
     367                'value' => $mixedValue 
     368            ); 
     369        } 
     370 
    410371        $oForm = new BxTemplFormView($aForm); 
    411  
    412372        return $oForm->getCode(); 
    413373    } 
     
    542502         
    543503        //--- Process Extras ---// 
    544         foreach($this->_aExtras as $sKey => $mixedValue) 
     504        foreach($this->_aExtras as $sKey => $mixedValue) { 
    545505            $aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 
    546506                'type' => 'hidden', 
     
    548508                'value' => $mixedValue 
    549509            ); 
    550  
    551         $aFormCategories = array(); 
    552         if ($this->sPredefCategory != '') { 
    553              $aFormCategories['category'] = array( 
    554                 'type' => 'hidden', 
    555                 'name' => 'category', 
    556                 'value' => $this->sPredefCategory 
    557             ); 
    558         } 
    559         if (count($aFormCategories)>0) { 
    560             $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 
    561         } 
    562  
    563         $aAlbums = array(); 
    564         if ($this->sPredefAlbum != '') { 
    565              $aAlbums['album'] = array( 
    566                 'type' => 'hidden', 
    567                 'name' => 'album', 
    568                 'value' => $this->sPredefAlbum 
    569             ); 
    570         } 
    571         if (count($aAlbums)>0) { 
    572             $aForm['inputs'] = array_merge($aForm['inputs'], $aAlbums); 
    573         } 
    574  
    575         //$aForm['inputs'] = isset($aParams['inputs']) ? array_merge($aForm['inputs'], $aParams['inputs']) : $aForm['inputs']; 
     510        } 
     511 
    576512        $oForm = new BxTemplFormView($aForm); 
    577  
    578513        return $this->getLoadingCode() . $oForm->getCode(); 
    579514    } 
    580515 
    581516    function _GenSendFileInfoForm($iFileID, $aDefaultValues = array(), $aPossibleImage = array(), $aPossibleDuration = array()) { 
    582  
    583517        //$sAction = isset($aParams['action']) ? $aParams['action'] : 'uploadSharePhoto.php'; 
    584518        //$isForm = !isset($aParams['is_form']) || (isset($aParams['is_form']) && $aParams['is_form'] === true); 
    585519 
    586520        $aFormCategories = array(); 
    587         if ($this->sPredefCategory != '') { 
    588              $aFormCategories['category'] = array( 
    589                 'type' => 'hidden', 
    590                 'name' => 'category[]', 
    591                 'value' => $this->sPredefCategory 
    592             ); 
    593         } 
    594         else { 
     521        $sKey = 'category'; 
     522        if ($this->_aExtras[$sKey] != '') { 
     523            $aFormCategories[BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 
     524                'type' => 'hidden', 
     525                'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey . '[]', 
     526                'value' => $this->_aExtras[$sKey] 
     527            ); 
     528        } else { 
    595529            $oCategories = new BxDolCategories(); 
    596530            $aCategories = $oCategories->getCategoriesList('bx_' . $this->sUploadTypeLC . 's', $this->_iOwnerId, true); 
     
    598532             $aFormCategories['category'] = array( 
    599533                'type' => 'select_box', 
    600                 'name' => 'category', 
     534                'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey . '[]', 
    601535                'caption' => _t('_Category'), 
    602536                'values' => $aCategories 
    603537            ); 
    604538        } 
     539        $sKey = 'album'; 
    605540        $aAlbums = array(); 
    606         if ($this->sPredefAlbum != '') { 
    607             $aAlbums['album'] = array( 
    608               'type' => 'hidden', 
    609               'name' => 'album[]', 
    610               'value' => $this->sPredefAlbum 
    611             ); 
    612         } 
    613         else { 
     541        if ($this->_aExtras[$sKey] != '') { 
     542            $aAlbums[BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array ( 
     543                'type' => 'hidden', 
     544                'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey . '[]', 
     545                'value' => $this->_aExtras[$sKey] 
     546            ); 
     547        } else { 
    614548            $oAlbum = new BxDolAlbums('bx_' . $this->sUploadTypeLC . 's'); 
    615549            $aAlbumList = $oAlbum->getAlbumList(array('owner'=>$this->_iOwnerId)); 
     
    625559            $aAlbums['album'] = array( 
    626560              'type' => 'select_box', 
    627               'name' => 'album', 
     561              'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey . '[]', 
    628562              'caption' => _t('_sys_album'), 
    629563              'values' => $aList 
     
    700634        $aForm['inputs'] = array_merge($aForm['inputs'], $aFormCategories); 
    701635        $aForm['inputs'] = array_merge($aForm['inputs'], $aAlbums); 
     636 
    702637        if (is_array($aPossibleImage) && count($aPossibleImage)>0) 
    703638            $aForm['inputs'] = array_merge($aForm['inputs'], $aPossibleImage); 
  • TabularUnified trunk/modules/boonex/ads/install/sql/uninstall.sql

    r11059 r11176  
    3939 
    4040DELETE FROM `sys_objects_tag` WHERE `ObjectName`='ad' AND `LangKey`='_Ads'; 
     41DELETE FROM `sys_tags` WHERE `Type` = 'ad'; 
    4142 
    4243DELETE FROM `sys_menu_top` WHERE `Name` = 'Ads' AND `Caption` = '_Ads'; 
  • TabularUnified trunk/modules/boonex/blogs/classes/BxBlogsModule.php

    r11118 r11176  
    472472        $iTotalNum = mysql_num_rows($vBlogsRes); 
    473473        if ($iTotalNum == 0) { 
    474             return MsgBox($sNoBlogsC); 
     474            return DesignBoxContent($sCaption, MsgBox($sNoBlogsC), 1); 
    475475        } 
    476476 
     
    600600{$sPagination} 
    601601EOF; 
     602 
    602603        return DesignBoxContent($sCaption, $sRetHtmlVal, 1); 
    603604    } 
     
    619620        $sTagsC = _t('_Tags'); 
    620621        $sPostsCL = strtolower(_t('_bx_blog_Posts')); 
    621         $sSubscribeC = _t('_Subscribe'); 
     622        $sSubscribeC = _t('_RSS'); 
    622623        $sFeaturedPostsC = _t('_bx_blog_Featured_Posts'); 
    623624        $sBackToBlogC = _t('_bx_blog_Back_to_Blog'); 
     
    770771        $sSiteUrl = BX_DOL_URL_ROOT; 
    771772        $sWorkLink = $this->genBlogFormUrl(); 
     773 
    772774        if (($this->_iVisitorID==$iMemberID && $iMemberID>0) || $this->bAdminMode==true) { 
    773775            $sDescrAct = $this->ActionPrepareForEdit($aBlogDesc); 
     
    9981000                return $this->GenCreateBlogForm(); 
    9991001            } else { 
    1000                 return MsgBox(_t('_Empty')); 
     1002                return DesignBoxContent($this->_sPageHeader, MsgBox(_t('_Empty')), 1); 
    10011003            } 
    10021004        } 
     
    12081210 
    12091211        if ($iPostID < 0) { 
    1210             return MsgBox(_t('_Empty')); 
     1212            return DesignBoxContent($this->_sPageHeader, MsgBox(_t('_Empty')), 1); 
    12111213        } 
    12121214 
     
    12251227 
    12261228        if ($this->isAllowedBlogPostView($iOwnerID, true) == false || $bPossibleToView == false) { 
    1227             return $this->_oTemplate->displayAccessDenied(); 
     1229            return DesignBoxContent($this->_sPageHeader, $this->_oTemplate->displayAccessDenied(), 1); 
    12281230        } 
    12291231 
     
    12491251        $sPostC = _t( '_Post' ); 
    12501252        if (!$aAllBlogPostInfo) { 
    1251             return MsgBox(_t('_No such blog post')); 
     1253            return DesignBoxContent($this->_sPageHeader, MsgBox(_t('_No such blog post')), 1); 
    12521254        } 
    12531255 
     
    15011503        if ($iPostID==0) { 
    15021504            if (!$this->isAllowedPostAdd()) { 
    1503                 return $this->_oTemplate->displayAccessDenied (); 
     1505                return $this->_oTemplate->displayAccessDenied(); 
    15041506            } 
    15051507        } else { 
  • TabularUnified trunk/modules/boonex/blogs/install/sql/install.sql

    r11070 r11176  
    179179 
    180180SELECT @iTopMenuLastOrder:=MAX(`Order`) FROM `sys_menu_top` WHERE `Parent`='0' AND `Active`='1' AND `Type`='top'; 
    181 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, 0, 'Blogs', '_bx_blog_Blogs', 'modules/boonex/blogs/blogs.php|modules/boonex/blogs/blogs.php?action=show_member_blog|modules/boonex/blogs/blogs.php?action=new_post|modules/boonex/blogs/blogs.php?action=add_category', @iTopMenuLastOrder+1, 'non,memb', '', '', '', 1, 1, 1, 'top', 0, 'modules/boonex/blogs/|bx_blogs.png', 1, ''); 
     181INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, 0, 'Blogs', '_bx_blog_Blogs', 'modules/boonex/blogs/blogs.php?action=home|modules/boonex/blogs/blogs.php|modules/boonex/blogs/blogs.php?action=show_member_blog|modules/boonex/blogs/blogs.php?action=new_post|modules/boonex/blogs/blogs.php?action=add_category', @iTopMenuLastOrder+1, 'non,memb', '', '', '', 1, 1, 1, 'top', 0, 'modules/boonex/blogs/|bx_blogs.png', 1, ''); 
    182182SET @menu_id = LAST_INSERT_ID(); 
    183183INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, 9, 'Profile Blog', '_bx_blog_Blog', 'modules/boonex/blogs/blogs.php?action=show_member_blog&ownerID={profileID}|modules/boonex/blogs/blogs.php?action=show_member_post&ownerID={profileID}', 4, 'non,memb', '', '', '', 1, 1, 1, 'custom', 0, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 
     
    189189INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Top Posts', '_Top Posts', 'modules/boonex/blogs/blogs.php?action=top_posts', 4, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 
    190190INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Blogs Tags', '_Tags', 'tags.php?tags_mode=blog', 7, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 
    191 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Blog Categories', '_Categories', 'modules/boonex/blogs/blogs.php?action=show_categories', 8, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 
    192191INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Blog Search', '_Search', 'searchKeyword.php?type=blog', 11, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 
    193192INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Editable`, `Deletable`, `Active`, `Type`, `Strict`, `Picture`, `BQuickLink`, `Statistics`) VALUES(NULL, @menu_id, 'Featured Posts', '_bx_blog_Featured_Posts', 'modules/boonex/blogs/blogs.php?action=featured_posts', 6, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, 'modules/boonex/blogs/|bx_blogs.png', 0, ''); 
  • TabularUnified trunk/modules/boonex/blogs/install/sql/uninstall.sql

    r11070 r11176  
    3636 
    3737DELETE FROM `sys_objects_tag` WHERE `ObjectName`='blog' AND `LangKey`='_bx_blog_Blogs'; 
     38DELETE FROM `sys_tags` WHERE `Type` = 'blog'; 
    3839 
    3940SET @iCatRoot := (SELECT `ID` FROM `sys_menu_top` WHERE `Name` = 'Blogs' LIMIT 1); 
  • TabularUnified trunk/modules/boonex/open_social/classes/BxOSiModule.php

    r11144 r11176  
    5757        //Generation of managing form 
    5858        if ($iVisitorID>0 && $iVisitorID == $this->_iProfileID) { // is owner 
    59             $sAddC = _t('_Add'); 
     59            $sAddC = _t('_Submit'); 
    6060            $sEditC = _t('_Edit'); 
    6161            $sAddNewURLC = _t('_Enter new URL'); 
     
    112112                //adding form 
    113113                $aForm = array( 
    114                     'form_attrs' => array( 
    115                         'name' => 'adding_custom_appl_form', 
    116                         'action' => $_SERVER['PHP_SELF'], 
    117                         'method' => 'post', 
     114                    'form_attrs' => array( 
     115                        'name' => 'adding_custom_appl_form', 
     116                        'action' => $_SERVER['PHP_SELF'], 
     117                        'method' => 'post', 
    118118                        /*'onsubmit' => $sFormOnsubmitCode,*/ 
    119                     ), 
    120                     'inputs' => array( 
    121                         'application_url' => array( 
    122                             'type' => 'text', 
    123                             'name' => 'application_url', 
    124                             'maxlength' => 255, 
    125                             'caption' => $sURLC, 
    126                         ), 
    127                         'sample' => array( 
     119                    ), 
     120                    'inputs' => array( 
     121                        'application_url' => array( 
    128122                            'type' => 'text', 
    129                             'value' => 'http://www.matt.org/modules/GoogleClock.xml', 
    130                             'caption' => _t('_osi_Sample'), 
    131                             'attrs' => array( 
    132                                 'readonly' => 'readonly', 
    133                             ), 
    134                         ), 
    135                         'hidden_action' => array( 
    136                             'type' => 'hidden', 
    137                             'name' => 'action', 
    138                             'value' => 'add_application', 
    139                         ), 
    140                         'add_button' => array( 
     123                            'name' => 'application_url', 
     124                            'maxlength' => 255, 
     125                            'caption' => $sURLC, 
     126                            'info' => 'http://www.matt.org/modules/GoogleClock.xml' 
     127                        ), 
     128                        'hidden_action' => array( 
     129                            'type' => 'hidden', 
     130                            'name' => 'action', 
     131                            'value' => 'add_application', 
     132                        ), 
     133                        'add_button' => array( 
    141134                            'type' => 'submit', 
    142135                            'name' => 'submit', 
    143136                            'caption' => '', 
    144137                            'value' => $sAddC, 
    145                         ), 
    146                     ), 
    147                 ); 
    148                 $oForm = new BxTemplFormView($aForm); 
    149                 $sAddingForm = $oForm->getCode(); 
     138                        ), 
     139                    ), 
     140                ); 
     141                $oForm = new BxTemplFormView($aForm); 
     142                $sAddingForm = $oForm->getCode(); 
    150143            } 
    151144 
     
    206199        $sPreferSpeed = $this->_oConfig->getAnimationSpeed(); 
    207200 
    208         if ($this->_bAdminMode == false) { 
     201        //if ($this->_bAdminMode == false) { 
    209202            // Collect all applications with settings in designbox modes 
    210203            $aMemberApplications = ($iVisitorID == $this->_iProfileID) ? $this->_oDb->getProfileApplications($this->_iProfileID) : $this->_oDb->getActiveProfileApplications($this->_iProfileID); 
     
    266259                exit; 
    267260            } 
    268         } 
     261        //} 
    269262 
    270263        // get common style-js header 
  • TabularUnified trunk/modules/boonex/open_social/install/langs/en.php

    r11130 r11176  
    2222 
    2323$aLangContent = array( 
    24     '_osi_Manager' => 'Opensocial applications manager', 
     24    '_osi_Manager' => 'Opensocial applications', 
    2525    '_osi_Custom_Feeds' => 'Custom Opensocial applications', 
    2626    '_osi_Existed_applications' => 'Applications', 
    2727    '_osi_Settings' => 'Your Opensocial settings', 
    2828    '_osi_Copy_to_admin_applications' => 'Copy to admin applications', 
    29     '_osi_Sample' => 'Sample', 
    3029    '_osi_Opensocial_Block' => 'Opensocial Block', 
     30    '_osi_Opensocial_moderation' => 'Opensocial moderation', 
    3131); 
    3232 
  • TabularUnified trunk/modules/boonex/open_social/install/sql/install.sql

    r11130 r11176  
    2222) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
    2323 
     24INSERT INTO `bx_osi_main` (`ID`, `person_id`, `url`, `description`, `status`, `title`, `directory_title`, `author`, `author_email`, `settings`, `views`, `version`, `height`, `scrolling`, `modified`, `screenshot`, `thumbnail`) VALUES 
     25(NULL, 1, 'http://www.matt.org/modules/GoogleClock.xml', 'Add a Clock to your page', 'active', 'Google Clock', '', 'Leonel Corona', 'leonel@matt.org', 'O:8:"stdClass":1:{s:5:"vsize";O:8:"stdClass":5:{s:11:"displayName";s:10:"Clock Size";s:4:"type";s:4:"ENUM";s:7:"default";s:5:"240px";s:10:"enumValues";O:8:"stdClass":4:{s:5:"100px";s:5:"100px";s:5:"150px";s:5:"150px";s:5:"200px";s:5:"200px";s:5:"240px";s:5:"240px";}s:8:"required";s:5:"false";}}', 'O:8:"stdClass":1:{s:4:"home";O:8:"stdClass":8:{s:4:"name";s:4:"home";s:4:"type";s:4:"HTML";s:4:"href";N;s:6:"quirks";b:1;s:4:"view";s:0:"";s:14:"preferedHeight";s:0:"";s:13:"preferedWidth";s:0:"";s:16:"rewrittenContent";N;}}', 'e62ab22d744e91b1e9a1f5b3d752716a', 0, 0, 1246430802, 'http://www.matt.org/modules/images/clockscreenshoot.jpg', 'http://www.matt.org/modules/images/googleclocktn.png'), 
     26(NULL, 1, 'http://www.canbuffi.de/gadgets/clock/clock.xml', 'Adds a nice digital clock to your iGoogle. You can choose between different time formats (12/24h), different date formats (English, German and French date format), timezones and enable daylight savings. Until now it is translated into German, French, Croatian and Serbian; more translations will follow. Tags: Clock, Time, Date, Uhr, Uhrzeit, Datum', 'active', 'Clock & Date', 'Clock & Date', 'Sebastian Majstorovic', 'google@canbuffi.de', 'O:8:"stdClass":10:{s:5:"title";O:8:"stdClass":5:{s:11:"displayName";s:11:"Clock title";s:4:"type";s:6:"STRING";s:7:"default";s:12:"Clock & Date";s:10:"enumValues";N;s:8:"required";s:5:"false";}s:11:"time_format";O:8:"stdClass":5:{s:11:"displayName";s:11:"Time format";s:4:"type";s:4:"ENUM";s:7:"default";s:1:"0";s:10:"enumValues";a:2:{i:0;s:7:"1:15 PM";i:1;s:5:"13:15";}s:8:"required";s:5:"false";}s:7:"seconds";O:8:"stdClass":5:{s:11:"displayName";s:16:"Display seconds?";s:4:"type";s:4:"BOOL";s:7:"default";s:4:"true";s:10:"enumValues";N;s:8:"required";s:5:"false";}s:11:"date_format";O:8:"stdClass":5:{s:11:"displayName";s:11:"Date format";s:4:"type";s:4:"ENUM";s:7:"default";s:1:"0";s:10:"enumValues";a:4:{i:0;s:15:"January 1, 2000";i:1;s:15:"1. January 2000";i:2;s:15:"2000, January 1";i:3;s:14:"1 January 2000";}s:8:"required";s:5:"false";}s:9:"dayofweek";O:8:"stdClass":5:{s:11:"displayName";s:24:"Display day of the week?";s:4:"type";s:4:"BOOL";s:7:"default";s:4:"true";s:10:"enumValues";N;s:8:"required";s:5:"false";}s:12:"offset_hours";O:8:"stdClass":5:{s:11:"displayName";s:16:"Timezone (hours)";s:4:"type";s:4:"ENUM";s:7:"default";s:0:"";s:10:"enumValues";O:8:"stdClass":26:{s:3:"-12";s:6:"UTC-12";s:3:"-11";s:6:"UTC-11";s:3:"-10";s:6:"UTC-10";s:2:"-9";s:5:"UTC-9";s:2:"-8";s:5:"UTC-8";s:2:"-7";s:5:"UTC-7";s:2:"-6";s:5:"UTC-6";s:2:"-5";s:5:"UTC-5";s:2:"-4";s:5:"UTC-4";s:2:"-3";s:5:"UTC-3";s:2:"-2";s:5:"UTC-2";s:2:"-1";s:5:"UTC-1";s:7:"_empty_";s:3:"UTC";s:2:"+1";s:5:"UTC+1";s:2:"+2";s:5:"UTC+2";s:2:"+3";s:5:"UTC+3";s:2:"+4";s:5:"UTC+4";s:2:"+5";s:5:"UTC+5";s:2:"+6";s:5:"UTC+6";s:2:"+7";s:5:"UTC+7";s:2:"+8";s:5:"UTC+8";s:2:"+9";s:5:"UTC+9";s:3:"+10";s:6:"UTC+10";s:3:"+11";s:6:"UTC+11";s:3:"+12";s:6:"UTC+12";s:3:"+13";s:6:"UTC+13";}s:8:"required";s:5:"false";}s:14:"offset_minutes";O:8:"stdClass":5:{s:11:"displayName";s:18:"Timezone (minutes)";s:4:"type";s:4:"ENUM";s:7:"default";s:0:"";s:10:"enumValues";O:8:"stdClass":4:{s:7:"_empty_";s:0:"";s:2:"15";s:2:"15";s:2:"30";s:2:"30";s:2:"45";s:2:"45";}s:8:"required";s:5:"false";}s:8:"daylight";O:8:"stdClass":5:{s:11:"displayName";s:16:"Daylight savings";s:4:"type";s:4:"BOOL";s:7:"default";s:5:"false";s:10:"enumValues";N;s:8:"required";s:5:"false";}s:5:"color";O:8:"stdClass":5:{s:11:"displayName";s:5:"Color";s:4:"type";s:4:"ENUM";s:7:"default";s:3:"red";s:10:"enumValues";O:8:"stdClass":6:{s:3:"red";s:3:"Red";s:4:"blue";s:4:"Blue";s:5:"green";s:5:"Green";s:5:"brown";s:5:"Brown";s:6:"orange";s:6:"Orange";s:6:"purple";s:6:"Purple";}s:8:"required";s:5:"false";}s:6:"amazon";O:8:"stdClass":5:{s:11:"displayName";s:6:"Amazon";s:4:"type";s:6:"HIDDEN";s:7:"default";s:1:"1";s:10:"enumValues";N;s:8:"required";s:5:"false";}}', 'O:8:"stdClass":1:{s:4:"home";O:8:"stdClass":8:{s:4:"name";s:4:"home";s:4:"type";s:4:"HTML";s:4:"href";N;s:6:"quirks";b:1;s:4:"view";s:0:"";s:14:"preferedHeight";s:0:"";s:13:"preferedWidth";s:0:"";s:16:"rewrittenContent";N;}}', 'fe14b130b59f5333572a487b8029c9e7', 170, 0, 1246446031, 'http://www.canbuffi.de/gadgets/clock_date/images/screen.png', 'http://www.canbuffi.de/gadgets/clock_date/images/thumb.png'); 
     27 
    2428CREATE TABLE `[db_prefix]_application_settings` ( 
    2529  `application_id` int(11) NOT NULL, 
     
    3337SELECT @iExtCat:=`id` FROM `sys_menu_admin` WHERE `name`='extensions'; 
    3438SELECT @iExtOrd:=MAX(`order`) FROM `sys_menu_admin` WHERE `name`='extensions'; 
    35 INSERT INTO `sys_menu_admin` (`id`, `parent_id`, `name`, `title`, `url`, `description`, `icon`, `icon_large`, `check`, `order`) VALUES (NULL, @iExtCat, 'Custom Opensocial Feeds Moderation', 'Custom Opensocial Feeds Moderation', '../modules/boonex/open_social/post_mod_os.php', 'Custom Opensocial Feeds Moderation description', 'mmi_host_tools.gif', '', '', @iExtOrd+1); 
     39INSERT INTO `sys_menu_admin` (`id`, `parent_id`, `name`, `title`, `url`, `description`, `icon`, `icon_large`, `check`, `order`) VALUES 
     40(NULL, @iExtCat, 'Opensocial moderation', '_osi_Opensocial_moderation', '../modules/boonex/open_social/post_mod_os.php', 'Opensocial applications moderation', 'mmi_host_tools.gif', '', '', @iExtOrd+1); 
    3641 
    3742-- page compose pages 
  • TabularUnified trunk/modules/boonex/photos/classes/BxPhotosPageMy.php

    r11151 r11176  
    305305        if (!in_array('albumAddObjects', $this->aCurrentBlocks['blocks'])) 
    306306            return ''; 
    307         return $this->getAddPart(); 
     307        return $this->getAddPart(array('album'=>$this->aAddParams[0])); 
    308308    } 
    309309     
     
    316316            require_once('BxPhotosUploader.php'); 
    317317            $oUploader = new BxPhotosUploader(); 
    318             $aUnit['right'] = $oUploader->serviceGenAddPhotoPage(); 
     318            $aUnit['right'] = $oUploader->serviceGenAddPhotoPage($aParam); 
    319319        } 
    320320        return array($this->oTemplate->parseHtmlByName('album_manage.html', $aUnit), $this->getTopMenu('add')); 
  • TabularUnified trunk/modules/boonex/photos/classes/BxPhotosUploader.php

    r11163 r11176  
    4343    } 
    4444 
    45     function serviceGenPhotoUploadForm($sPredefCategory, $iUploadersCount, $aExtras = array()) { 
    46         $this->_aExtras = $aExtras; 
    47         $this->sPredefCategory = $sPredefCategory; 
    48  
    49         return $this->GenMainAddPhotosForm(); 
     45    /* 
     46    * Service - generate photo upload main form 
     47    * 
     48    * params 
     49    * $sPredefCategory - TODO remove 
     50    * $aExtras - TODO predefined album and category should appear here with names: predef_album and predef_category 
     51    */ 
     52    function serviceGenPhotoUploadForm($aExtras = array()) { 
     53        return $this->GenMainAddPhotosForm($aExtras); 
    5054    } 
    5155 
     
    177181 
    178182            $aCategories = array(); 
    179             foreach ($_REQUEST['category'] as $sKey => $sVal) { 
     183            foreach ($_REQUEST['extra_param_category'] as $sKey => $sVal) { 
    180184                if ($sVal != '') { 
    181185                    $aCategories[] = process_db_input($sVal); 
     
    187191            $aAlbumsList = $oAlbum->getAlbumList(); 
    188192            $aAlbums = array(); 
    189             foreach ($_REQUEST['album'] as $sVal) { 
     193            foreach ($_REQUEST['extra_param_album'] as $sVal) { 
    190194                $iVal = (int)$sVal; 
    191195                if ($iVal == 0) { 
     
    509513    } 
    510514 
    511     function serviceGenAddPhotoPage() { 
     515    function serviceGenAddPhotoPage($aExtras = array()) { 
    512516        $sAddPhotoC = _t('_bx_photos_add'); 
    513517        $sRecPhotoC = _t('_bx_photos_record'); 
     
    515519        $sFlashPhotoC = _t('_adm_admtools_Flash'); 
    516520 
    517         $sPhotoUploadForm = $this->GenMainAddPhotosForm(); 
     521        $sPhotoUploadForm = $this->GenMainAddPhotosForm($aExtras); 
    518522        $sUploadActStyle = $sRecordActStyle = $sEmbedActStyle = $sFlashActStyle = 'notActive'; 
    519523        switch ($_REQUEST['mode']) { 
  • TabularUnified trunk/modules/boonex/quotes/install/config.php

    r11006 r11176  
    11<?php 
     2 
    23/*************************************************************************** 
    34*                            Dolphin Smart Community Builder 
     
    2425     * Main Section. 
    2526     */ 
     27    'title' => 'Quotes Module', 
     28    'version' => '1.0.0', 
    2629    'vendor' => 'Boonex', 
    27     'title' => 'Quotes module', 
     30    'update_url' => '', 
     31    'compatible_with' => array( 
     32        '7.0.x'         
     33    ), 
    2834 
    2935    /** 
     
    3945     */ 
    4046    'install' => array( 
    41         'show_introduction' => 0, 
     47        'show_introduction' => 1, 
    4248        'change_permissions' => 0, 
    4349        'execute_sql' => 1, 
    44         'update_languages' => 0, 
    45         'recompile_global_paramaters' => 0, 
     50        'update_languages' => 1, 
     51        'recompile_global_paramaters' => 1, 
    4652        'recompile_main_menu' => 0, 
    4753        'recompile_member_menu' => 0, 
    4854        'recompile_member_stats' => 0, 
    49         'recompile_site_stats' => 0,         
     55        'recompile_site_stats' => 0, 
    5056        'recompile_page_builder' => 0, 
    5157        'recompile_profile_fields' => 0, 
     
    5965        'recompile_permalinks' => 0, 
    6066        'recompile_alerts' => 0, 
    61         'clear_db_cache' => 0, 
    6267        'show_conclusion' => 1 
    6368    ), 
    6469    'uninstall' => array ( 
    65         'show_introduction' => 0, 
     70        'show_introduction' => 1, 
    6671        'change_permissions' => 0, 
    6772        'execute_sql' => 1, 
    68         'update_languages' => 0, 
    69         'recompile_global_paramaters' => 0, 
     73        'update_languages' => 1, 
     74        'recompile_global_paramaters' => 1, 
    7075        'recompile_main_menu' => 0, 
    7176        'recompile_member_menu' => 0, 
    7277        'recompile_member_stats' => 0, 
    73         'recompile_site_stats' => 0,         
     78        'recompile_site_stats' => 0, 
    7479        'recompile_page_builder' => 0, 
    7580        'recompile_profile_fields' => 0, 
     
    8388        'recompile_permalinks' => 0, 
    8489        'recompile_alerts' => 0, 
    85         'clear_db_cache' => 0, 
    8690        'show_conclusion' => 1 
    87     ), 
    88  
     91    ), 
     92    /** 
     93    * Dependencies Section 
     94    */ 
     95    'dependencies' => array(), 
     96    /** 
     97     * Category for language keys. 
     98     */ 
     99    'language_category' => 'Boonex Quotes', 
    89100    /** 
    90101     * Permissions Section 
     
    92103    'install_permissions' => array(), 
    93104    'uninstall_permissions' => array(), 
    94  
    95105    /** 
    96106     * Introduction and Conclusion Section. 
    97107     */ 
    98108    'install_info' => array( 
    99         'introduction' => '', 
     109        'introduction' => 'inst_intro.html', 
    100110        'conclusion' => 'inst_concl.html' 
    101111    ), 
    102112    'uninstall_info' => array( 
    103         'introduction' => '', 
     113        'introduction' => 'uninst_intro.html', 
    104114        'conclusion' => 'uninst_concl.html' 
    105115    ) 
    106116); 
    107  
    108117?> 
  • TabularUnified trunk/modules/boonex/sounds/classes/BxSoundsUploader.php

    r11163 r11176  
    6161    } 
    6262 
    63     function serviceGenMusicUploadForm($sPredefCategory, $iUploadersCount, $aExtras = array()) { 
    64         $this->_aExtras = $aExtras; 
    65         $this->sPredefCategory = $sPredefCategory; 
    66  
    67         return $this->GenMainAddMusicForm(); 
     63    /* 
     64    * Service - generate sound upload main form 
     65    * 
     66    * params 
     67    * $sPredefCategory - TODO remove 
     68    * $aExtras - TODO predefined album and category should appear here with names: predef_album and predef_category 
     69    */ 
     70    function serviceGenMusicUploadForm($aExtras = array()) { 
     71        return $this->GenMainAddMusicForm($aExtras); 
    6872    } 
    6973 
     
    209213 
    210214            $aCategories = array(); 
    211             foreach ($_REQUEST['category'] as $sKey => $sVal) { 
     215            foreach ($_REQUEST['extra_param_category'] as $sKey => $sVal) { 
    212216                if ($sVal != '') { 
    213217                    $aCategories[] = process_db_input($sVal); 
     
    219223            $aAlbumsList = $oAlbum->getAlbumList(); 
    220224            $aAlbums = array(); 
    221             foreach ($_REQUEST['album'] as $sVal) { 
     225            foreach ($_REQUEST['extra_param_album'] as $sVal) { 
    222226                $iVal = (int)$sVal; 
    223227                if ($iVal == 0) { 
     
    317321    } 
    318322 
    319     function serviceGenAddMusicPage() { 
     323    function serviceGenAddMusicPage($aExtras = array()) { 
    320324        $sAddMusicC = _t('_bx_sounds_add'); 
    321325        $sRecMusicC = _t('_bx_sounds_record'); 
     
    323327        $sFlashMusicC = _t('_adm_admtools_Flash'); 
    324328 
    325         $sMusicUploadForm = $this->GenMainAddMusicForm(); 
     329        $sMusicUploadForm = $this->GenMainAddMusicForm($aExtras); 
    326330 
    327331        $sUploadActStyle = $sRecordActStyle = $sEmbedActStyle = $sFlashActStyle = 'notActive'; 
  • TabularUnified trunk/modules/boonex/videos/classes/BxVideosUploader.php

    r11163 r11176  
    6161    } 
    6262 
    63     function serviceGenVideoUploadForm($sPredefCategory, $iUploadersCount, $aExtras = array()) { 
    64         $this->_aExtras = $aExtras; 
    65         $this->sPredefCategory = $sPredefCategory; 
    66  
    67         return $this->GenMainAddVideoForm(); 
     63    /* 
     64    * Service - generate video upload main form 
     65    * 
     66    * params 
     67    * $sPredefCategory - TODO remove 
     68    * $aExtras - TODO predefined album and category should appear here with names: predef_album and predef_category 
     69    */ 
     70    function serviceGenVideoUploadForm($aExtras = array()) { 
     71        return $this->GenMainAddVideoForm($aExtras); 
    6872    } 
    6973 
     
    221225 
    222226            $aCategories = array(); 
    223             foreach ($_REQUEST['category'] as $sKey => $sVal) { 
     227            foreach ($_REQUEST['extra_param_category'] as $sKey => $sVal) { 
    224228                if ($sVal != '') { 
    225229                    $aCategories[] = process_db_input($sVal); 
     
    231235            $aAlbumsList = $oAlbum->getAlbumList(); 
    232236            $aAlbums = array(); 
    233             foreach ($_REQUEST['album'] as $sVal) { 
     237            foreach ($_REQUEST['extra_param_album'] as $sVal) { 
    234238                $iVal = (int)$sVal; 
    235239                if ($iVal == 0) { 
     
    329333    } 
    330334 
    331     function serviceGenAddVideoPage() { 
     335    function serviceGenAddVideoPage($aExtras = array()) { 
    332336        $sAddVideoC = _t('_bx_videos_add'); 
    333337        $sRecVideoC = _t('_bx_videos_record'); 
     
    335339        $sFlashVideoC = _t('_adm_admtools_Flash'); 
    336340 
    337         $sVideoUploadForm = $this->GenMainAddVideoForm(); 
     341        $sVideoUploadForm = $this->GenMainAddVideoForm($aExtras); 
    338342 
    339343        $sUploadActStyle = $sRecordActStyle = $sEmbedActStyle = $sFlashActStyle = 'notActive'; 
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