display banner depending on groups - 01/07/2005 1:45 AM
so this is standard invocation code for phpadsnew to display ads from a certain zone, which I have running in UBBT´s header.php:
can anyone please give me a hint on how to abort this, if the viewer belongs to a certain group?
I have already found this useful piece of code,
but I really don´t know how to combine these too.
I´m busy RTFM, but I still can´t figure out how to do this, I´m more of a photoshop person
Code
if (@include(getenv('DOCUMENT_ROOT').'/php/phpadsnew/phpadsnew.inc.php')) { <br /> if (!isset($phpAds_context)) $phpAds_context = array(); <br /> $phpAds_raw = view_raw ('zone:3', 0, '_blank', '', '0', $phpAds_context); <br /> echo $phpAds_raw['html']; <br /> }
can anyone please give me a hint on how to abort this, if the viewer belongs to a certain group?
I have already found this useful piece of code,
Code
if (preg_match("/-6-/",$postergroup)) { <br /> echo "wiu wiu wiu"; <br /> }
but I really don´t know how to combine these too.
I´m busy RTFM, but I still can´t figure out how to do this, I´m more of a photoshop person