WordPress.org

Ready to get started?Download WordPress

Forums

WP-Facebook-Importer
Css and js files aren't included properly (1 post)

  1. Toxxin
    Member
    Posted 5 months ago #

    Reproduction steps:

    • Install and activate the plugin
    • Go to Settings/Facebook sync (see error in FireBug)

    Actual result
    css and js files aren't included

    Expected result
    css and js files should be included.

    They are not included because the name of the plugin in folder and name of the plugin folder in the code are different.
    The best practice is to use constant which contain the name of the plugin folder and use it in plugin code.

    Input this code to into the begin of the main file of the plugin:
    define('FBIM_PLUGIN_FOLDER', basename( dirname(__FILE__) ) );

    Use this constant when you are including the files.

    http://wordpress.org/plugins/wp-facebook-importer/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.