Announcement

Collapse
No announcement yet.

Remove ads using quick tip/customization

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remove ads using quick tip/customization

    I've done this quick step customization (I used the multiple check boxes and left only one option.)...

    http://www.vbulletin.com/forum/showt...yle+for+paying

    It's not turning off ads, and I need help.
    Last edited by aggiefan; Fri 22 Apr '05, 4:55pm.

  • #2
    Here's my code

    I'm dumb at conditionals. Where would I add the

    <if condition="!$bbuserinfo['fieldX']">

    </if>
    my ads are:

    1)
    Code:
    <script type="text/javascript"><!--
    google_ad_client = "pub-0305927529245745";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_channel ="";
    google_color_border = "4B1816";
    google_color_bg = "F5F5FF";
    google_color_link = "000000";
    google_color_url = "4B1816";
    google_color_text = "000000";
    //--></script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></center><br />
    2)
    Code:
    <SCRIPT LANGUAGE="JavaScript">
     
    <!-- Begin
    var how_many_ads = 1;
    var now = new Date()
    var sec = now.getSeconds()
    var ad = sec % how_many_ads;
    ad +=1;
    if (ad==1) {
    txt="Texas A&M Store";
    url="http://www.footballfanatics.com/?partner_id=2189";
    alt="footballfanatics.com";
    banner="http://aggiefans.com/forums/images/banners/aggie468.jpg";
    width="468";
    height="60";
    }
    document.write('<center>');
    document.write('<a href=\"' + url + '\" target=\"blank\">');
    document.write('<img src=\"' + banner + '\" width=')
    document.write(width + ' height=' + height + ' ');
    document.write('alt=\"' + alt + '\" border=0></a><br>');
    document.write('</center>');
    // End -->
    </SCRIPT>

    Comment


    • #3
      in #1
      Code:
      <script type="text/javascript"
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script></center><br />
      around that line

      Comment


      • #4
        what about #2?

        Added:
        I tried that on #1, it didn't work.
        Last edited by aggiefan; Fri 22 Apr '05, 5:50pm.

        Comment


        • #5
          PHP Code:
           <if condition="!is_member_of($bbusergroup, X)"
          that should be the conditional

          Comment


          • #6
            I appreciate your help, but it's still not working.

            #1 now looks like this...
            Code:
            <br /><center>
            <script type="text/javascript"><!--
            google_ad_client = "pub-0305927529245745";
            google_ad_width = 728;
            google_ad_height = 90;
            google_ad_format = "728x90_as";
            google_ad_channel ="";
            google_color_border = "4B1816";
            google_color_bg = "F5F5FF";
            google_color_link = "000000";
            google_color_url = "4B1816";
            google_color_text = "000000";
            //--></script>
            <if condition="!is_member_of($bbusergroup, 10)"> 
            <script type="text/javascript"
            src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            </script></center><br /></if>
            <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
            With $bbusergroup of 10 = silver support level membership (the one I'm testing/fixing)

            Comment


            • #7
              Took me a while to figure it out, but I solved it. You were close Fire27. (Thanks for all your help.

              For future reference, and anybody wondering...
              It should go:

              <if condition="$bbuserinfo['usergroupid'] != X">

              my code looks like:
              Code:
              <if condition="$bbuserinfo['usergroupid'] != 10">
              <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
              </script></center><br /></if>
              I got it to work using this code. It removed all the ads!!

              Comment

              Loading...
              Working...
              X