Announcement

Collapse
No announcement yet.

IF statements not working in the new ADs system

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

  • [Forum] IF statements not working in the new ADs system

    Hello,

    I am trying to make an adsense revenue sharing in my forum. Since there is no plugin for vbulletin 4 until now, I am trying to use the built-in ad system

    This is the code I am using:


    HTML Code:
    <vb:if condition="$post['field455']">
        <div style="float:left;margin:4px">
        
            <script type="text/javascript">
            google_ad_client = "{vb:raw post.field455}";
            google_ad_width = 336;
            google_ad_height = 280;
            google_ad_format = "336x280_as";
            google_ad_type = "text";
            google_color_border = "FFFFFF";
            google_color_bg = "FFFFFF";
            google_color_link = "0000FF";
            google_color_text = "000000";
            google_color_url = "6600CC";
            </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
     
     
        </div>
    <vb:else />
        <div style="float:left;margin:4px">
        
        
            <script type="text/javascript">
            google_ad_client = "pub-12345678901234";
            google_ad_channel = "6367269191";
            google_ad_width = 336;
            google_ad_height = 280;
            google_ad_format = "336x280_as";
            google_ad_type = "text";
            google_color_border = "FFFFFF";
            google_color_bg = "FFFFFF";
            google_color_link = "0000FF";
            google_color_text = "000000";
            google_color_url = "6600CC";
            </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>    
            
        </div>
    </vb:if>

    This code only shows my ad even if the user filled the feild455

Related Topics

Collapse

Working...
X