Forum Replies Created

Viewing 15 posts - 2,431 through 2,445 (of 2,964 total)
  • Author
    Posts
  • in reply to: Include a file within Piklist #1850
    Steve
    Keymaster

    @egnsh98– You should be able to required_once in any php file in the parts/ folder. Is it possible you are not including the correct or full path to the file?

    Fortunately, Piklist can help you with this since it stores the paths of all Piklist Plugins in: piklist::$paths['my-plugin-folder']

    So if your code is located in /my-plugin/api/api.php, try including it like this:

    require_once(piklist::$paths['my-plugin'] . '/api/api.php');

    Make sure you include Plugin Type: in your plugins header block, so Piklist will store the path.

    Let us know if that works for you.

    in reply to: error retrieving the metabox values #1848
    Steve
    Keymaster

    @tejascreation– get_post_meta() is a standard WordPress function that’s been around since WordPress 1.5, so I’m guessing it has to do with something else.

    Your single.php file seems to be in the root directory of your WordPress install, when it should be in your themes folder. See if moving that file helps.

    in reply to: Demos are not loading #1847
    Steve
    Keymaster

    @tejascreation– Activating Piklist Demos creates a Demo post type, Taxonomy, Settings Page, User fields, Dashbaord widget, Help tabs and Widget, with Field Examples… no video.

    Steve
    Keymaster

    @tejascreation– Can you post your folder structures here?

    in reply to: Plugin Folder Structure #1845
    Steve
    Keymaster
    in reply to: Hide meta box with Capability, bug? #1844
    Steve
    Keymaster

    @kattagami– Glad it wasn’t a Piklist bug and you were able to identify the issue.

    in reply to: Hide meta box with Capability, bug? #1838
    Steve
    Keymaster

    @kattagami–- I still can’t reproduce. The meta box works perfect for me.

    You may want to run your own tests to see if you can find the bug. Open class-piklist-cpt.php. The line that looks like: && (!$data['capability'] || ($data['capability'] && current_user_can(strtolower($data['capability'])))) contains the logic. Try some of your own if statements with current_user_can to see if you can figure out why it’s not working.

    in reply to: Plugin Translation #1835
    Steve
    Keymaster

    @darlantc– I look the idea of Glotpress. I’ll look into installing. Will send you POT file when ready.

    in reply to: Hide meta box with Capability, bug? #1834
    Steve
    Keymaster

    @kattagami– I can’t reproduce this error. Seems to work for me. Can you post the code used to register “projets”?

    in reply to: Plugin Translation #1831
    Steve
    Keymaster

    @darlantc– We’re really trying to get localization in a better place, and the next version of Piklist should be 99% localized. While we do want your po file, it will probably be incomplete due to all the changes. I can send you an updated POT file if you want.

    in reply to: Missing default user profile #1828
    Steve
    Keymaster

    @darlantc– Are you running Windows server?

    in reply to: Plugin Translation #1825
    Steve
    Keymaster

    Nice! It will be in the next version of Piklist.

    in reply to: Plugin Translation #1823
    Steve
    Keymaster

    @darlantc– I think I solved the bug.

    Please open the file class-piklist.php and replace the load_plugin_textdomain line with:
    load_plugin_textdomain('piklist', false, 'piklist/languages/');

    Let me know if that works.

    in reply to: Missing default user profile #1822
    Steve
    Keymaster

    @darlantc– You can reset the user profile by turning off the Piklist Demos (under Add-ons in Settings). However, it shouldn’t be doing this. If you turn on wp_debug do you see any errors?

    in reply to: Including piklist with another plugin #1818
    Steve
    Keymaster

    @tripflex– This is a very cool plugin and it looks like it has lots of potential. Unfortunately, Piklist was never intended to be included in a plugin or theme. Your post has prompted us to write an article on why we don’t love the idea. I hope once you read it you will agree and resubmit your plugin to WordPress.org without Piklist included.

    Always happy to discuss this further.

Viewing 15 posts - 2,431 through 2,445 (of 2,964 total)