Decide if template code is going to run for users based on primary usergroup
and secondary groups and only have to edit one template no matter how many
instances of the conditional exist upon changes.
Beneifts are very short conditionals to parse at each template instance of ad
code. Groups can be added or subtracted by editing only one template. Once an
exempt group is found the foreach search for exempt groups is terminated.
There is no hacking involved.
The groups are controlled in the phpinclude_start template in an array. You
add groups to the array or remove them as necessary.
In phpinclude_start add the following code. For example, here the groups 6
and 9 will not see google ads.
You must first be a
registered member to view any code.
Use this template code wherever you deem necessary to display your google ads
to everyone except your exempt primary and secondary groups. I used google as
an example, this can be applied to any conditional in any template that is
being displayed based on the user groups.
You must first be a
registered member to view any code.
Here are a couple of examples.
Go from this...
You must first be a
registered member to view any code.
or this...
You must first be a
registered member to view any code.
To this! You must first be a
registered member to view any code.
File with instructions attached.
Cheers!