Homepage Splash (was Promo)

The splash (Promo) on the homepage sits within a block which I cannot find in the database (sys_page_compose).

I don't want this to sit in a block, so normally I would change the designbox to zero, but in this case I cannot find it.

Any ideas as to how remove the design box for the splash?

Thanks

This is my signature, there are many like it but this one is mine...
Quote · 29 Jan 2013

I am messing around with this too.  I'm using mine for a banner ad and don't want all that padding showing.  I tried setting the backround color to transparent.  No luck.  Let me know if you figure it out!

Outdoor Community
Quote · 1 Feb 2013

This will delete border around the splash...

or edit code so it will suit your needs

1)
Add a new file to templates/base/ with the name designbox_333.html
and add code bellow to it

<div class="disignBoxFirst bx-def-margin-top">
    <div class="boxContent">__designbox_content__</div>
    __bottom_item__
</div>


2)
Open file base/scripts/BxBaseFunctions.php

Find this code

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


Edit last line of code: return DesignBoxContent('', getParam('splash_code'), 3);

to this: return DesignBoxContent('', getParam('splash_code'), 333);

3)
Delete cache

4)
Check your site..

Quote · 2 Feb 2013

Thank you!

Outdoor Community
Quote · 2 Feb 2013

That got rid of the top and bottom, but still shows the padding on the left and right. 

Outdoor Community
Quote · 2 Feb 2013

edit designbox_333.html to this

<div class="bx-def-margin-top">
    <div class="boxContent">__designbox_content__</div>
    __bottom_item__
</div>

hope it will help you...

and remember to delete cacheSmile

Quote · 3 Feb 2013

 Success, thank you!  Now if could just figure out some tricks for the 800 other design boxes lol

edit designbox_333.html to this

<div class="bx-def-margin-top">
    <div class="boxContent">__designbox_content__</div>
    __bottom_item__
</div>

hope it will help you...

and remember to delete cacheSmile

 

Outdoor Community
Quote · 3 Feb 2013

Many thanks, it works as expected :)

This is my signature, there are many like it but this one is mine...
Quote · 5 Feb 2013

That is excellent OKWEB!

What about creating a different designbox_4.html

Then calling it if a member is logged in to display a different set of content in the splash just for logged in members?

I think it would be done with a new language key __designbox_content_memb__ and a few edits on the BxBaseFunctions.php?

Even Monkeys and Retards get it right with repitition! - Author Unknown
Quote · 9 Jul 2013
 
 
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.