Promo block won't work correctly in updated 7.02

Sorry, I posted something similar to this already but didn't mention that it concerned the promo/flash block. Couldn't go back to edit my information so here we are again ...

In Dolphin 7.0 we added some code in the inc/design.inc.php file file (thanks to an older post by HoustonLively) which would make the promo block disappear to any signed in members, while still leaving it in place for any guest users. When I tried to add the same code to the same file in our updated Dolphin 7.02 recently, the results were quite different ... causing the promo block to disappear completely for anyone, regardless if signed in or not. It just vanished. Cache was cleared but still the promo block was gone.
As soon as I replaced the modified design.inc.php file ... the promo block was back again.

http://www.boonex.com/unity/forums/#topic/TIP-Make-the-Promo-go-away-for-logged-in-users.htm
How do you make those instructions work in Dolphin 7.02 and Dolphin 7.03 ???
Does anyone know? An answer would be sincerely appreciated. Thank you.

Quote · 5 Nov 2010

Try this instead. Should work for all versions of dolphin 7.

Open inc/design.inc.php and look for the getPromoCode function and add the line marked in green right after $sSiteUrl = BX_DOL_URL_ROOT;

function getPromoCode() {
global $site;

$sSiteUrl = BX_DOL_URL_ROOT;

if(isMember()) return;

if( getParam( 'enable_flash_promo' ) != 'on' )
$sCode = '<div class="promo_code_wrapper">' . getParam( 'custom_promo_code' ) . '</div>';
else {
$aImages = getPromoImagesArray();
$iImages = count($aImages);


I tested this on D7.0.3 and it workied fine.

https://www.deanbassett.com
Quote · 5 Nov 2010

Thanks Deano92964,

That worked. Laughing I really appreciate it.

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