Support » Plugin: Floating Adsense Bar » [Plugin: Floating Adsense Bar] Adsense covered Mobile site

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Santosh Padire

    (@santoshreddypadire)

    Add this code in FAB_share_init(),FAB_Float_Load() functions at begining

    Code:

    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘iPhone’) )
    return;
    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘iPad’) )
    return;
    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘iPod’) )
    return;
    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘Nokia’) )
    return;
    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘Opera Mini’) )
    return;
    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘Opera Mobi’) )
    return;
    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘SonyEricsson’) )
    return;
    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘BlackBerry’) )
    return;
    if (strpos( $_SERVER[‘HTTP_USER_AGENT’] , ‘Mobile Safari’) )
    return;
    include the mobiles and browsers for which you don’t want to display adsense bar.

    Plugin Author Santosh Padire

    (@santoshreddypadire)

    Resolved

    Thanks for the response, i used the code you sent me and it’s still not working can it be because my installation is buddypress,i used the buddymobile plugins or because my site is responsive. see my site http://www.naijaurban.com

    Santosh Padire –

    Where does the code go?

    The code provide above doe snot work.
    @six: try this
    plugins>floating-adsense-bar>fab_style.css

    @media only screen and (max-width: 479px){
        #ad_divLeft { width: 10%; }
    	#ad_divRight { width: 10%; }
    }

    You can test different max-width for different screens and also div width.

    If you wanna hide for specific mobile then use the following code

    @media only screen and (max-width: 479px){
        #ad_divLeft { z-index: -99999 }
    	#ad_divRight { z-index: -99999 }
    }

    I was notified by Google a few ago that I had 3 days to remove the Adsense Floating Bar because it is against their TOS. What’s that all about?

    esmi

    (@esmi)

    Forum Moderator

    I attempted to but after the third paragraph my eyes began to glaze over.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Floating Adsense Bar] Adsense covered Mobile site’ is closed to new replies.