WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Page Promoter Lightbox
[resolved] link to triger the plugin (4 posts)

  1. joelymoley
    Member
    Posted 1 year ago #

    hey guys, just wanted to know a link i can type to trigger the plugin, i don't want it automatically loading, i want users to click on a button which loads it, thanks :)

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

  2. Arevico
    Member
    Plugin Author

    Posted 1 year ago #

    The javascript method we use to invoke the lightbox is show_facebox();

    So if you want to only enable it on a button click you must add the
    onclick="show_facebox();" attribute on that link. Also, if you don't want to popup automatically, remove any reference to that function in scs/launch.js

  3. joelymoley
    Member
    Posted 1 year ago #

    hey mate, please excuse my noobness but where would i add this onclick="show_facebox();" attribute? little confused about removing those references from the launch.js :( guessing there is no http://www.website.com/facebookappcall.xx that i can use to launch the plugin?

  4. Arevico
    Member
    Plugin Author

    Posted 1 year ago #

    You need to switch to html view and add the following code:

    <a href="#" onclick="show_facebox();">link text</a>

    Please note that the show once every x days option is taken into account. So you may need to set it to 0 and have a very high delay

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.