inc/designinc.php has changed

Ok, need a little help. I just upgraded my site to 7.08 from 7.06. All went well but there is a new inc/designinc.php file. In the old file, I made a change that caused the promo banner code to not display for users that were signed in.

The file changed so much that I don't know how to enable that adjustment again.

Can someone help me turn off the promo banner for logged in members? Want to make it only visible for guests.

Used to do it like this:

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())                <---------------------- ADD THIS
if( getParam( 'enable_flash_promo' ) != 'on' )

 

(God this forum code sucks......)

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 15 Jan 2012

It's part of the template scripts so the promo can be controlled on a per template basis.

Edit this instead.

template/base/scripts/BxBaseIndexPageView.php

Around line 446 look for this.

    function getPromoCode() {
    $sSiteUrl = BX_DOL_URL_ROOT;

    if( getParam( 'enable_flash_promo' ) != 'on' )


Edit to insert this.

    function getPromoCode() {
    $sSiteUrl = BX_DOL_URL_ROOT;

    if(isMember()) return; // If this is a member then return without displaying promo.

    if( getParam( 'enable_flash_promo' ) != 'on' )

https://www.deanbassett.com
Quote · 15 Jan 2012

Thanks!!!

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 16 Jan 2012
 
 
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.