Viewing 6 reply threads
  • Author
    Posts
    • #669
      sebascar
      Member

      Hi,

      is it possible to load PikList within my Theme/Plugin without having to installa PikList from the WordPress Repository?

       

    • #671
      Steve
      Keymaster

      @sebascar– You can include Piklist in your plugin or theme just like any other plugin. You would want to require_once piklist.php  from your main plugin file or your theme’s functions.php file.

      However, this really is not recommended.

      By doing this, your users will not be able to upgrade Piklist in the future.  A better way is to include the “Piklist Checker” code in your theme or plugin.  This code checks if Piklist is installed and if not, will notify the user.

      You can see how it works by checking our our WordPress Helpers plugin. Try activating it without Piklist.

      The latest version of Piklist Checker can always be found here.

    • #1591
      tripflex
      Member

      I understand where both of you are coming from. I believe though that it would be nice to be able to do this is you don’t want dependencies in your plugin. I understand it helps as framework but a lot of the times this could deter users from wanting to install a plugin or giving a more “transparent” plugin that can be distributed easier.

      For example I use Caldera Engine which allows to export as a plugin, and leaves it up to the plugin developer/maintainer to keep it up to date.

    • #1652

      I have the same issue! i add the folder picklist on my own theme and add the function require_once…

      c:\frutabox\wp-content\themes\frutabox\picklist\picklist.php

      ////functions

      require_once (picklist/piklist.php);
      the classes are loaded, and i can see the the picklist demos. But, the images & js path are with path of plugin_url.

      i dont have the plugin folder picklist, this is necessary?

    • #2559
      Ashfaq
      Member

      I have the same problem, When embedding in theme without plugin.

      Piklist options load but resource files like CSS and JS are appearing with Plugin Directory.

      Can any one help please?

    • #2560
      Ashfaq
      Member

      Hello Guys,

      I want to embed “PikList” in my theme without installing plugin. everything works as related to classes when we include “itit.php” in theme’s “functions.php” file.

      But “PikList” resources like CSS and JS are still appearing as “Plugin” url and not loading because there is no plugin in plugin folder.

      How we can change the path to load from Theme folder??

      Any help is appreciated.

      • #2561
        Jason
        Keymaster

        Greetings!

        May I ask why you’re attempting to embed it within the theme versus using the plugin? What’s the merit?

      • #2562
        Ashfaq
        Member

        Because I want to embed it into a premium theme, and I don’t want to give user a notice to install plugin.

    • #2565
      Steve
      Keymaster

      @ashfaq– Kevin and I have discussed this in great length, and I don’t think we are going to support this. You would now be responsible for keeping Piklist up to date in your theme and pushing out updates. If you miss one, and the user installs another Piklist plugin that needs these features, the user suffers, and so does the reputation of Piklist.

      We believe it is in the best interest of the users to have Piklist installed as a separate plugin.

      It’s super easy for the user to install Piklist, by having you include the Piklist Checker in your theme.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.