if (@include(getenv('DO..."> if (@include(getenv('DO...">
 
Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 1999
Posts: 158
Enthusiast
Enthusiast
Offline
Joined: Dec 1999
Posts: 158
[]ksanuk said:
Hi,

Not tested, but my guess would be something like this:

Code
<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.

Sponsored Links
Entire Thread
Subject Posted By Posted
display banner depending on groups flint 01/07/2005 1:45 AM
Re: display banner depending on groups ksanuk 01/07/2005 3:57 AM
Re: display banner depending on groups flint 01/07/2005 4:51 AM
Re: display banner depending on groups JoshPet 01/07/2005 5:19 AM
Re: display banner depending on groups ksanuk 01/07/2005 7:03 AM
Re: display banner depending on groups Twisty 01/07/2005 10:45 AM
Re: display banner depending on groups ksanuk 01/07/2005 12:26 PM
Re: display banner depending on groups Twisty 01/07/2005 2:02 PM
Re: display banner depending on groups flint 01/08/2005 5:32 PM
Re: display banner depending on groups Twisty 01/08/2005 5:54 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)