Remove promo block for logged in members on D7.0.8

Does anyone know how to remove the promo block for logged in members on D7.0.8.  I typically use the mod developed by HoustonLively but there now seems to be a complex array statement for the promo block.  I have no idea why, after all these years, they didn't just include this in the code.  I can't think of any reason why a logged in user would need that huge promo block - it just gets in the way.    I'll paste the original mod below - if anyone wants to take a shot at it, or already knows, I would appreciate it. 

 

In the file: /inc/design.inc.php

Find:

function getPromoCode() {
global $site;
$sSiteUrl = BX_DOL_URL_ROOT;
if( getParam( 'enable_flash_promo' ) != 'on' )

Change to:

function getPromoCode() {
global $site;
$sSiteUrl = BX_DOL_URL_ROOT;
if(!isMember())
if( getParam( 'enable_flash_promo' ) != 'on' )

Quote · 10 Nov 2011

I do not know why HL choose to do it that way.

Try this instead. I just tested it, and works fine for all D7 versions.

Edit index.php

Find this.


$_page_cont[$_ni]['promo_code'] = $oIPV->getPromoCode();



Replace with this.


if(isMember()) {
    $_page_cont[$_ni]['promo_code'] = '';
} else {
    $_page_cont[$_ni]['promo_code'] = $oIPV->getPromoCode();
}


https://www.deanbassett.com
Quote · 10 Nov 2011

Oh, cool - thanks Deano!

Quote · 10 Nov 2011

Worked like a charm :-)

Quote · 10 Nov 2011

Nice tweak, done it. Thanks Deano

Quote · 10 Nov 2011
 
 
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.