PHP in splash box

I searched for how to add this but didn't get much.

In our built in splash, I would like to inject the "World Map" there.

Who has the best solution for this?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 9 Jan 2014

You would need to edit the function directly. It's rather simplistic in it's design now as all it does is pull the code from a settings field and display it. There is no processing of any kind.

So to put a world map there instead do this.

Edit templates\base\scripts\BxBaseFunctions.php

And replace the current genSiteSplash() function.

    function genSiteSplash()
    {
        $sVisibility = getParam('splash_visibility');
        $bLogged = getParam('splash_logged') == 'on';

        if($sVisibility == BX_DOL_SPLASH_VIS_DISABLE || ($sVisibility == BX_DOL_SPLASH_VIS_INDEX && !defined('BX_INDEX_PAGE')) || ($bLogged && isLogged()))
            return '';

        return DesignBoxContent('', getParam('splash_code'), 3);
    }


With this one instead.

    function genSiteSplash()
    {
        $sVisibility = getParam('splash_visibility');
        $bLogged = getParam('splash_logged') == 'on';

        if($sVisibility == BX_DOL_SPLASH_VIS_DISABLE || ($sVisibility == BX_DOL_SPLASH_VIS_INDEX && !defined('BX_INDEX_PAGE')) || ($bLogged && isLogged()))
            return '';

        $aBoxContent = BxDolService::call('wmap', 'homepage_block');

        return DesignBoxContent('', '<div class="bx-def-bc-margin">' . $aBoxContent[0] . '</div>', 3);
    }

https://www.deanbassett.com
Quote · 9 Jan 2014
 
 
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.