WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Page Promoter Lightbox
[resolved] Conflict with Adfly Script (3 posts)

  1. geekdream
    Member
    Posted 1 year ago #

    Hello, i've seen the plugin go in conflict with AdFly, the When click on Close Button, it redirect to a 404 page of AdFly.

    I've put a Java Script for convert all link of the page in Adfly links in the header, and i can set a list of the ignored domains will be not converted but i don't know what i can write... the close button don'thave a domain is a javascript code.

    Can see the issue on any article of my site http://geekdream.it

    Thx guys! ;)

    http://wordpress.org/extend/plugins/facebook-page-promoter-lightbox/

  2. Arevico
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, i'm not familliar with the adfly script, but I can suggest some fixed for the issue.

    - The domain is not specified with the links fancybox (and so this plugin uses). However, when no domain is specified the current domain is implicitly mentioned. Unfortunately I cannot fix this conflict without enforcing improper coding standards. Whata the best solution should be is to modify or ask to modify the adfly script (if its not under your control) to only link elements in the container div of the page/post

  3. geekdream
    Member
    Posted 1 year ago #

    Is not on my control!

    The code is this and request and external JS file...

    <script type="text/javascript">
    var adfly_id = 2924932;
    var adfly_advert = 'int';
    var exclude_domains = ['example.com', 'yoursite.com'];
    </script>
    <script src="https://cdn.adf.ly/js/link-converter.js"></script>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.