D708 function getPromoCode() { not there anymore :-(

I had my promo block for guests only to see and not for logged in members.

It was a former post by HoustonLively, thanks by the way

HoustonLively's promo code:

 

// This change will show the Promo image reloader to guests only, and it will not be displayed once a user is logged in. This will allow site owners to use the Promo image

// rotator to show guests what they can do on the site, and not annoy logged in members with what they already know.

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

I posted this backup because it is too useful not to have.

The function is no longer at design.inc.php

Diddy is not greedy and has time. Dolphin is cool and its not just mine :-)
Quote · 24 Oct 2011

try    templates/base/scripts/BxBaseIndexPageView.php  and look for

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

add beofre it;

if(!isMember())

 

Quote · 24 Oct 2011

Perfect - well searched!

Quote · 24 Oct 2011

I found it at BxBaseIndexPageView.php :-)

oops my wife like it if I type reallllly sloooow :-)

 

Thanks rhimpr

Diddy is not greedy and has time. Dolphin is cool and its not just mine :-)
Quote · 24 Oct 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.