WordPress.org

Forums

Popups - WordPress Popup
[resolved] Option to display or not http://connect.facebook.net/en-US/all.js (11 posts)

  1. gabu69
    Member
    Posted 11 months ago #

    Many people will already have facebook code to display like buttons or like boxes or facebook comments boxes

    so adding again with your plugin
    <script type='text/javascript' src='http://connect.facebook.net/en-US/all.js?ver=1.0.4#xfbml=1'></script>

    would be an extra load for the visitor

    could you add an option to
    disable adding up
    <script type='text/javascript' src='http://connect.facebook.net/en-US/all.js?ver=1.0.4#xfbml=1'></script>

    for people who already got it?

    would be a great help

    https://wordpress.org/plugins/popups/

  2. Damian
    Member
    Plugin Author

    Posted 11 months ago #

    Sure, I will add it

  3. gabu69
    Member
    Posted 11 months ago #

    Greattttttt
    also wanted to ask

    why in bit.ly/1u7fAHQ if you enter there initialy the pop up isnt displaying

    while in the homepage it is

    have this set of rules:
    http://s3.amazonaws.com/awesome_screenshot/5454825?AWSAccessKeyId=0R7FMW7AXRVCYMAPTPR2&Expires=1406915391&Signature=vNaT6cPJ%2BL21VLtmf16oxz4TJYA%3D

    seems strange should be displayed aint it?

  4. Damian
    Member
    Plugin Author

    Posted 11 months ago #

    The rules you have there don't make much sense to me. What are you trying to do? Show it everywhere but only to non logged users?

    Try adding to your functions.php

    define('SPU_DEBUG_MODE',true);

    So I can check the js

  5. gabu69
    Member
    Posted 11 months ago #

    Wanted to show to everybody but started tweakyng since it wasnt being shown in posts, i thought i was doing something wrong

    so which rules should be set then for all the pages, posts, categories, etc?

    added that to functions.php sir

  6. Damian
    Member
    Plugin Author

    Posted 11 months ago #

    I still can't check all the js is comming commpressed. Could be due to your cache plugon, cloudflare or smt similar?

  7. gabu69
    Member
    Posted 11 months ago #

    disabled cloudflare minimizing css, js, etc

  8. gabu69
    Member
    Posted 11 months ago #

    Also somehow i put the layout="box_count" for facebook and its displaying the button_count

    mmmm

  9. Damian
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Gabu im not sure what's goiing on on your site. It's not a rules problems, its a javascript problem.

    The whole popups is wrapped on a jQuery(window).load(function(){
    });
    But it seems that it never get fired and Im not sure why. As you mentioned on the homepage it's working, So im not sure what you got in the single posts that changes how JS works.

    If you want to give me ftp access maybe I can take deeper look. Also try disabling all the plugins to see if one of them is affecting it.

  10. gabu69
    Member
    Posted 11 months ago #

    Yes, aded you on skype please accept my request mate

  11. Damian
    Member
    Plugin Author

    Posted 11 months ago #

    Check this gist to remove JS from plugin

    https://gist.github.com/timersys/8453614472d07122098b

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.