[]
ksanuk said:Hi,
Not tested, but my guess would be something like this:
<br />if (preg_match("/-6-/",$postergroup)) {<br /> 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 /> } <br />} <br />
[/]
just tested it, unfortunately it won´t execute anymore at all, regardless of the group you´re in. Strange ...
[] On a related note, how would I allow this usergroup to set whether or not they want to see the ads? [/]
I have one usergroup called supporters, which are added automatically through mypaymentpal.
Surprisingly, many still want to see ads, because most of our ads are very content related, and not randomly picked.
So I decided to create another group called "noads", and i would allow supporters to choose themselve if they wanted to be part of that group.
For now I´d do it manually, cause we have very few supporters. I could imagine making a switch one day, and only allowing "supporters" to use that switch.