Android app - how to add items for 3rd party mods

Hi. I've been able to successfully build the Android app v1.9.0.

From a quick screenshot search on the web, we have this:

 

https://lh5.ggpht.com/u6Fwr7VTXANTo4IstShlA0_rNvXO64a0_LWeauhVL4XYgg_PEEKbTWmaoYTDIiMP-A=h900

 

How can we add more, especially for 3rd party modules we buy from the market? f.e. I replaced "Blogs" with Modzzz "Multi-Blogs". I don't see "Blogs" in my mobile app (as it's disabled) but I'd like to add Modzzz's Multi-Blogs in the Android app.


Thanks.

Quote · 3 May 2016

look up the MyFirstModule here on Boonex. There is a section that explains the page creation for mobile app.

caredesign.net
Quote · 3 May 2016

Hi Prof. Thanks.

Is it this?

https://www.boonex.com/trac/dolphin/wiki/DolphinTutorialMyFirstModule

 

look up the MyFirstModule here on Boonex. There is a section that explains the page creation for mobile app.

 

Quote · 3 May 2016

oh wait - my bad. sys_menu_mobile - you can add home page buttons directly to the database that will show up in the mobile app (at last thats how the old version worked). There is a writeup somewhere that has an explanation of each of the fields. This is a sample from the Blogs module BxBlogsModule. Add this to your XxXxxxxxModule.php file and edit to fit your needs.

 


    function GenPostListMobile($iAuthor = 0, $sMode = false)
    {
        if ($this->_iVisitorID) // some workaround for mobile apps, to force login
            bx_login($this->_iVisitorID);

        bx_import('BxDolMobileTemplate');
        $oMobileTemplate = new BxDolMobileTemplate($this->_oConfig, $this->_oDb);
        $oMobileTemplate->pageStart();
        echo $oMobileTemplate->addCss('blogs_common.css', 1);

        $iPerPage = 10;
        $iPage = (int)bx_get('page');
        if ($iPage < 1)
            $iPage = 1;

        $this->iPostViewType = 4;

        $sOrder = 'last';
        $sMobileWrapper = 'mobile_row.html';
        $aParams = array ();
        switch ($sMode) {
            case 'post':
                $aViewingPostInfo = $this->_oDb->getPostInfo((int)bx_get('id'));
                if (!$this->oPrivacy->check('view', (int)bx_get('id'), $this->_iVisitorID) || !$this->isAllowedBlogPostView($aViewingPostInfo['OwnerID'], true)) {
                    $oMobileTemplate->displayAccessDenied($sCaption);
                    return;
                }                       
                $this->iPostViewType = 3;               
                $aParams = array ('id' => (int)bx_get('id'));
                $sCaption = _t('_bx_blog_post_view');
                $sMobileWrapper = 'mobile_box.html';
                echo $oMobileTemplate->addCss('blogs.css', 1);
                break;
            case 'user':
                $aParams = array ('id' => (int)bx_get('id'));
                $sCaption = _t('_bx_blog_Members_blog', getNickName((int)bx_get('id')));
                break;
            case 'featured':
                $sCaption = _t('_bx_blog_Featured_Posts');
                break;
            case 'top':
                $sOrder = 'top';
                $sCaption = _t('_bx_blog_Top_Posts');
                break;
            case 'popular':
                $sOrder = 'popular';
                $sCaption = _t('_bx_blog_Popular_Posts');
                break;
            case 'last':
            default:
                $sMode = 'last';
                $sCaption = _t('_bx_blog_Latest_posts');
        }

        if ('post' != $sMode && !$this->isAllowedBlogsPostsBrowse()) {
            $oMobileTemplate->displayAccessDenied($sCaption);
            return;
        }

        $oTmpBlogSearch = false;
        $sCode = $this->_GenPosts ($this->iPostViewType, $iPerPage, $sMode, $aParams, $sOrder, $oBlogSearchResults, $sMobileWrapper);
        if (!$sCode || $oBlogSearchResults->aCurrent['paginate']['totalNum'] == 0) {
            $oMobileTemplate->displayNoData($sCaption);
            return;
        }

        echo $sCode;

        if ($sMode != 'post') {
            bx_import('BxDolPaginate');
            $oPaginate = new BxDolPaginate(array(
                'page_url' => $this->genBlogSubUrl() . '?action=mobile&mode=' . $sMode . '&page={page}',
                'count' => $oBlogSearchResults->aCurrent['paginate']['totalNum'],
                'per_page' => $iPerPage,
                'page' => $iPage,
            ));
            echo $oPaginate->getMobilePaginate();
        }

        $oMobileTemplate->pageCode($sCaption, false);
    }

 

 

I havent dealt with the mobile app for a long time now so not sure of all of the specifics.

caredesign.net
Quote · 3 May 2016

Here is info on how to add pages to the mobile app:

https://www.boonex.com/trac/dolphin/wiki/DolModMobile

Also some additional helpful info:

https://www.boonex.com/forums/topic/Timeline-Module-on-Dolphin-Mobile-Apps-.htm#274412

Rules → http://www.boonex.com/terms
Quote · 4 May 2016
 
 
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.