Tagged: checker, piklist checker
- This topic has 16 replies, 5 voices, and was last updated 7 years, 2 months ago by
Steve.
-
AuthorPosts
-
-
April 24, 2013 at 9:16 am #791
moshemoMemberHi there,
I’m working on creating my first plugin with Piklist and I am trying to get the checker to work. The thing is, I don’t see the message – even when piklist is not activated. The same is true for WordPress Helpers – I don’t get the message even when piklist is deactivated.
I’m running wordpress on localhost – I don’t know if that could have anything to do with it. The thing is, I tested and know that the piklist checker file is being included.
Any ideas?
Moshe
-
April 25, 2013 at 9:51 am #792
SteveKeymasterI just updated the documentation to run on `init` not `admin_init`. You can see the changes here >
-
December 2, 2014 at 10:09 am #2902
azizultexMemberHi,
I’m facing the same problem. I am using piklist in twentytwelve theme with the code below:add_action('init', 'my_init_function'); function my_init_function() { if(is_admin()) { include_once('piklist/class-piklist-checker.php'); if (!piklist_checker::check(__FILE__)) { return; } } }Any help?
-
December 2, 2014 at 10:46 am #2903
SteveKeymaster@azizultex– Welcome to the Piklist community! Can you be a bit more specific? What is not working?
-
December 4, 2014 at 4:47 am #2948
azizultexMemberHi @Steve, Thanks for your reply. I added the code in my functions.php file but it doesn’t show any message to the user if Piklist isn’t installed or activated on the theme.
I want to achieve a goal to show users a message if piklist isn’t installed in their theme as TGM plugin do.
Need more description? Please let me know
Thanks
-
-
December 4, 2014 at 8:40 am #2949
blair2004MemberHi, i’m facing the same problem. Here is my code
include_once( dirname( __FILE__ ) . '/includes/piklist-checker.php' ); add_action( 'init' , 'inition_cvk' ); function inition_cvk() { if( is_admin() ) { if( ! piklist_checker::check( __FILE__ ) ) { return false; } } }I have followed all code example, but notices doesn’t appear while piklist is disabled or not available. therefore, piklist_checker::check( __FILE__ ) work fine, but there are not notices and the plugin is not desactivated.
I use alternatively “admin_notices” hook to display a notice.
-
December 4, 2014 at 3:01 pm #2953
SteveKeymasterWe just updated the Piklist Checker to v0.6.0, and you can grab it here >
The documentation has been updated to support theme integration.
You will need to pass an extra argument,
theme, after__FILE__:add_action('init', 'my_init_function'); function my_init_function() { if(is_admin()) { include_once('path-to-file/class-piklist-checker.php'); if (!piklist_checker::check(__FILE__, 'theme')) { return; } } }Let us know if you still have issues.
-
December 4, 2014 at 3:45 pm #2954
blair2004Memberwhat about plugin development case ?
After having read piklist checker class, i discovered “message()” method. Instead of using “return”, i’m using this method like this.if( !piklist_checker::check( __FILE__ ) )
{
piklist_checker::message();
}However, the displayed notice doesn’t specify the plugin or theme which required piklist install/activation.
-
December 4, 2014 at 3:47 pm #2955
SteveKeymasterfor plugins you can install like you used to:
add_action('init', 'my_init_function'); function my_init_function() { if(is_admin()) { include_once('path-to-file/class-piklist-checker.php'); if (!piklist_checker::check(__FILE__)) { return; } } } -
December 4, 2014 at 3:54 pm #2956
blair2004MemberAs i said, i’m using this method, but there aren’t any notice. I have downloaded WordPress Helpers plugin to explore code and discover how piklist checker is used. After install, there was an error, since i got piklist_checker included in my projet, there were also piklist_checker included there (in wordpress helpers plugin). To explain that error, it seems that a constant is defined twice…
this is just a break, just to tell you that after everything i discovered here, notices are not displayed.
-
December 4, 2014 at 4:10 pm #2958
SteveKeymaster@blair2004– Try downloading WP Helpers v1.6.0… you beat us to the download. It should be working fine.
-
December 7, 2014 at 3:02 pm #2989
jphickeyMemberSteve,
just installed piklist & Helpers; interface looks great, but I can’t seem to make anything stay on as checked. I use Woo Canvas and honestly also have very many plugins to make peace with as well. Any suggestions as to a starting point to begin peeling back some of this so I can get to make Helpers happen?
-
December 8, 2014 at 12:54 pm #2996
-
December 8, 2014 at 7:48 pm #3004
jphickeyMemberAs suspected it was W3TotalCache, my caching plug-in but not sure which setting within there i.e. .css, .js minification or elsewhere… any suggestions?
-
December 8, 2014 at 8:25 pm #3005
jphickeyMembersaying bye to w3tc; will utilize the cloudflare goodies instead
-
December 9, 2014 at 12:04 pm #3009
-
-
AuthorPosts
- The topic ‘Piklist Checker Doesn't Seem to Be Working’ is closed to new replies.