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... |
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 |
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..
|
Outdoor Community |
That got rid of the top and bottom, but still shows the padding on the left and right. Outdoor Community |
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 cache
|
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 cache
Outdoor Community |
Many thanks, it works as expected :) This is my signature, there are many like it but this one is mine... |
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 |