How to integrate a banner ad system that allows paying members to not view ads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcjd
    Senior Member
    • Jan 2003
    • 191
    • 3.8.x

    #16
    If I have multiple subscriber usergroups would I just separate them all by a comma. For instance, 3,4,5,6 ? Thanks.
    Marc

    U.S. Politics Online

    Comment

    • marcjd
      Senior Member
      • Jan 2003
      • 191
      • 3.8.x

      #17
      It didn't work. How would I go about exempting multiple usergroups? I know I could create an additional single usergroup and have all subscribers belong to it and just use that group...but I don't believe I could make that automatic when they pay for a subscription. Any help would be much appreciated. Thanks.
      Marc

      U.S. Politics Online

      Comment

      • d3nnis
        Senior Member
        • Jun 2003
        • 620
        • 3.7.x

        #18
        Originally posted by marcjd
        It didn't work. How would I go about exempting multiple usergroups? I know I could create an additional single usergroup and have all subscribers belong to it and just use that group...but I don't believe I could make that automatic when they pay for a subscription. Any help would be much appreciated. Thanks.

        make use of AND OR ?

        Code:
        <if condition="usergroup='1' or usergroup='3'">
        	banner image code
        </if>
        above just an example

        Comment

        • marcjd
          Senior Member
          • Jan 2003
          • 191
          • 3.8.x

          #19
          I tried that but it didn't work. I tried some more things and it just wasn't working. However, I was able to create a secondary usergroup and realized that I could make people members of more than one group when they subscriber...at least it appears that way. Just set all of the permissions for the secondary usergroup to no and used that as the basis for the code. It works...so it seems. Thanks.
          Marc

          U.S. Politics Online

          Comment

          • BeatificFaith
            Member
            • May 2004
            • 35
            • 3.7.x

            #20
            I would like to know how to use two usergroups as well

            Comment

            • Jake Bunce
              Senior Member
              • Dec 2000
              • 46598
              • 3.6.x

              #21
              Originally posted by Tia
              I would like to know how to use two usergroups as well
              This code will check for multiple primary usergroups:

              Code:
              <if condition="in_array($bbuserinfo[usergroupid], array(X,Y,Z))">
              	BANNER CODE
              </if>
              This will display the banner code for all users belonging to any one of the specified usergroupids, X, Y, or Z.

              If you want to check secondary groups as well, then you have to use this code:

              Code:
              <if condition="is_member_of($bbuserinfo, X) OR is_member_of($bbuserinfo, Y) OR is_member_of($bbuserinfo, Z)">
              	BANNER CODE
              </if>

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...