GD Booster Screws Up PHP Ad Code

This topic contains 3 replies, has 2 voices, and was last updated by  MC1171611 9 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , , ,

  • Author
    Posts
  • #36300

    MC1171611
    Full Member
    Post count: 180

    Hi guys,

    I’m trying to use an ad from a private advertising network, Baptist AdWorks, and their code seems to rely on php instead of js:

    
    
    <!-- Begin Baptist AdWorks Code -->
    <script language="javascript"><!--//
    var server_client_id = 2359;
    var server_ad_count = 3; //NUMBER OF ADS TO DELIVER
    var server_ad_offset = 0;  // NUMBER OF ADS TO OFFSET
    var server_ad_style = "rail";
    // Setting for justifying left, right, or none.
    // Valid options are:  left, right, none
    var server_code_justify = "right";
    var server_ad_top_text = "Sponsored Links";
    var server_ad_width = "170"; //WIDTH OF RAIL
    var server_code_version = "4";
    var server_ad_color_border = "8B8B8B";
    var server_ad_color_background = "EAEDF2";
    var server_ad_color_headline = "8B8B8B";
    var server_ad_color_body = "757575";
    var server_ad_color_url = "FFC300";
    var server_ad_keyword = "";  
    var server_ad_channel = 1;
    var server_publisher_channels = "";
    var server_ad_random = 0;
    var server_ad_only_results = 0;
    
    //--></script>
    <script type="text/javascript" src="http://www.BaptistAdWorks.com/ads/adview_sidebar.php"></script>
    
    <!-- End Baptist AdWorks Code -->

    I can’t get GD Booster to ignore this code, so now it shows up in the footer:

    http://www.kjvchurches.com/category/updates/ (this is the only page that has ad widgets on it)

    I want it in the sidebar, not the footer. What gives? Thanks.

    #36301

    MC1171611
    Full Member
    Post count: 180
    This reply has been marked as private.
    #36362

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have just released a new ver of GD Booster please update it and then add this script to your child theme functions.php

    
    
    add_filter('geodir_booster_script_continue','vape_exclude_js',10,2);
    function vape_exclude_js($res,$code){
    if(strpos($code,'adview_sidebar.php') !== false){
    $res = true;
    }
    return $res;
    }

    Thanks,

    Stiofan

    #36399

    MC1171611
    Full Member
    Post count: 180

    Hi Stiofan,

    The code isn’t showing up in the footer anymore, but it’s still not appearing in the sidebar. It’s not being parsed by GD Booster, though, so that’s an improvement.

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount