Excluding files from GD Booster

This topic contains 6 replies, has 4 voices, and was last updated by  Paolo 8 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #45099

    adele
    Expired Member
    Post count: 65

    I have several Infusionsoft forms on my website, and when GD Booster is turned on the forms get moved below the footer. They are external forms in iframes, I’m not sure how to fix this problem?

    Here is an example page, the form should be in the sidebar (it is when GD Booster is turned off) but now it’s right down the bottom below the footer – http://www.plasticsurgeryhub.com.au/careers-training/

    #45103

    Guust
    Moderator
    Post count: 29970

    Hi Adele, I got Stiofan to look at your question.

    #45229

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi adele,

    I don’t have login to be able to disable and see where it should be, here is what neds to be done, if you can’t do it please provide wp-admin details and we will do it for you.

    What is most likely happening is you are entering JS int he sidebar which is creating a iframe where it is put, GDB is moving the JS to the footer, we need to tell GDB to not do that, to do this we need so know a tiny unique bit of the JS code an then add this to the functions.php of your theme:
    CODE_PART should be replaced with a part of the JS, if could be somethig like “var create_iframe =”

    
    
    add_filter('geodir_booster_script_continue','bsg_exclude_js',10,2);
    function bsg_exclude_js($res,$code){
    if(strpos($code,'CODE_PART') !== false){
    $res = true;
    }
    return $res;
    }

    Thanks,

    Stiofan

    #45609

    adele
    Expired Member
    Post count: 65
    This reply has been marked as private.
    #45639

    Paolo
    Site Admin
    Post count: 31206

    Hi Adele,

    the script you were adding was :

    <script type="text/javascript" src="https://mo138.infusionsoft.com/app/form/iframe/b598739f146e443d27651d9ae1a2fad1"></script>

    We just needed a tiny unique bit of it.

    So adding this to your functions.php file fixed it:

    
    
    add_filter('geodir_booster_script_continue','bsg_exclude_js',10,2);
    function bsg_exclude_js($res,$code){
    if(strpos($code,'infusionsoft.com') !== false){
    $res = true;
    }
    return $res;
    }

    Thanks

    Thanks

    #45686

    adele
    Expired Member
    Post count: 65

    Thanks so much, you’re awesome 🙂

    #45722

    Paolo
    Site Admin
    Post count: 31206

    You are welcome! 🙂

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

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

Open Support Ticket