Ads question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dabollicks
    Senior Member
    • Aug 2007
    • 171
    • 3.8.x

    Ads question

    Hi

    I have a couple of different sponsors on my website, but i want to be able to display the different ads, depending on whether guests or registered users are viewing.

    Example: - I want guests to be able to see Ad 1

    and i want registered users to see Ad 2

    How would i go about doing that?

    Many thanks
    www.pst-uk.co.uk
    www.refchat.co.uk
  • Umut Ceylan
    Senior Member
    • Dec 2004
    • 273
    • 3.8.x

    #2
    Hello i think you will look this hack


    cheers

    Comment

    • dabollicks
      Senior Member
      • Aug 2007
      • 171
      • 3.8.x

      #3
      Thanks for that, but is there a way that doesnt involve installing a hack?
      Last edited by dabollicks; Mon 3 Mar '08, 1:38pm.
      www.pst-uk.co.uk
      www.refchat.co.uk

      Comment

      • Umut Ceylan
        Senior Member
        • Dec 2004
        • 273
        • 3.8.x

        #4
        i think you will use this hack it have got a lot of rules and conditionals
        if you want to better conditionals you will contact this hack coder
        i've use this hack block some usergroup its work nice but i dont try for unregistered users

        Comment

        • dabollicks
          Senior Member
          • Aug 2007
          • 171
          • 3.8.x

          #5
          i will look into that, but id prefer not to use a hack unless i have to
          Anyone?
          www.pst-uk.co.uk
          www.refchat.co.uk

          Comment

          • Jose Amaral Rego
            Senior Member
            • Feb 2005
            • 11058
            • 1.1.x

            #6
            # change XYZ to the members group (id) you want to see advert.

            Code:
            			<if condition="is_member_of($vbulletin->userinfo, array(X, Y, Z))">
            				<advert>Register Members Only</advert>
            			<else />
            				<advert>All Others</advert>
            			</if>
            Code:
            			<if condition="is_member_of($vbulletin->userinfo, array(X, Y, Z))">
            				<advert>Register Members Only</advert>
            			<else />
            				<if condition="$show['guest']">
            					<advert>Guest - Unregistered / Not Logged In</advert>
            				</if>
            			</if>

            Comment

            • dabollicks
              Senior Member
              • Aug 2007
              • 171
              • 3.8.x

              #7
              So where in that, do i actually add my images?
              www.pst-uk.co.uk
              www.refchat.co.uk

              Comment

              • Jose Amaral Rego
                Senior Member
                • Feb 2005
                • 11058
                • 1.1.x

                #8
                Replace these two with adverts.

                <advert>Register Members Only</advert>
                <advert>Guest - Unregistered / Not Logged In</advert>

                Comment

                • dabollicks
                  Senior Member
                  • Aug 2007
                  • 171
                  • 3.8.x

                  #9
                  Awesome, thanks for that, works exactly how i want it. You da man!!!
                  www.pst-uk.co.uk
                  www.refchat.co.uk

                  Comment

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