DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

D7 Hide Promo from logged in users

If you would like to hide the flash promo from displaying to logged in members all you have to do is the following.

Edit inc/design.inc.php

Find the following line in the getPromoCode() function (it's the last line)

return $sCode;

Then add just before it:

if(isMember()) $sCode = '';

That's it! Easy huh?

/DM

 

Dolphin 7.0.1 and beyond
D7 Move avatar from promo to banner

Related Posts

 

Comments 2

davidjmorin on Tuesday, 06 July 2010 16:41

Hey i was wondering if you could make one for hiding the menu bar for non members. ???

0
Hey i was wondering if you could make one for hiding the menu bar for non members. ???
DeeEmm on Tuesday, 06 July 2010 21:44
Sure - Here you go - Just follow the link - [url]http://www.deeemm.com/resources/tutorials/42-dolphin-70x-modifications/181-dolphin-hide-menu-bar-from-guests.html[/url]
Already Registered? Login Here
Guest
Tuesday, 23 May 2017
If you'd like to register, please fill in the username, password and name fields.

Captcha Image