PHP in Splash (Promo) Header

In Dolphin 7.0x, there used to be a way to modify the code to allow PHP in the Promo / Splash Header.  Is there a way to do this in Dolphin 7.1x?  If so, can someone please point me in the right direction.

Quote · 28 Dec 2013

Someone has got to know the answer to this question?

Quote · 30 Dec 2013

7.1.x changed the promo block.  You can drop in javascript and jquery stuff but I don't think you can do php.  However, go ahead and try, turn off the tinymce editor and then drop in your php code and see what happens.  Have you done that?  You may need to use the opening and closing php tags

Geeks, making the world a better place
Quote · 30 Dec 2013

Thanks geek_girl.  Nice to meet cha'!  I've been sifting through a lot of posts in the community and see you're pretty active.  I'm going to give Dolphin another try.

I was a long time member of this community (since expertzzz.com), but left out of frustration with the Marketplace and sporadic code changes.  I had been using Dolphin since v 5.6 and stopped using it at 7.0.  Features that we appreciated would just vanish and new features would be implemented and be dysfunctional.  As a developer, a lot of the people who were new to Dolphin had such unrealistic expectations that it left my head spinning, so I just left.  I'm trying to get back up to speed and your posts are quite helpful.  Thanks again.

Anywhoo, I'm going to try what you suggested as well as well as look for where the old code move to.  It seems to have been broken up into different sections.

Quote · 30 Dec 2013

Hello,

You can find a function that generate promo block at Dolphin root/templates/base/scripts/BxBaseFunctions.php on line 539:

    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);

    }

Copy it to your template scripts/BxTemplFunctions.php class and insert your php code in it.

Best regards, nuknspax.

Free and premium Dolphin templates. Custom design services.
Quote · 3 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.