Mike Stop Continues
Forum Replies Created
-
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Fix for getAdminOptions strict warning…Same thing on line 203:
$lightboxPlusOptions = array();
Forum: Plugins
In reply to: [Add From Server] [Plugin: Add From Server] Fatal Error on PHP 5.4Same problem, but the above changes can be applied manually. If the plugin isn’t updated, I’ll be happy to fork it to another…
Matt, I updated to the new version.
I distinctly remember getting an InValid message (on account of the capitals) when I was working with the plugin last month, but when I tried after updating, a js-error prevented getting any validation notification at all. So I tried on a test site, and my keys validate. I can only assume that they’re also validating on my regular sites now too.
Would any of the changes you made account for my (presumably) solved problem? In any case, thank you. Here’s the JS error:
admin.php:700 Uncaught TypeError: Cannot read property '0' of undefined jQuery.ajax.success admin.php:700 f.Callbacks.n load-scripts.php:3 f.Callbacks.o.fireWith load-scripts.php:3 w load-scripts.php:5 f.support.ajax.f.ajaxTransport.send.d load-scripts.php:5
Thanks Matt! That’s excellent news.
Hi Matt,
Unfortunately, gmdate(); indicates the correct time. Is there anything else I can try?
Thanks for your help!
Forum: Plugins
In reply to: Action for after plugin update?Here it is!
add_filter('activate_advanced-akismet/akismet.php','c_patch_plugin'); function c_patch_plugin() { $fp = PATH_TO_FILE; $file = @file_get_contents($fp); if($file && !strstr($file,'/* EDIT */')) { $file = str_replace( '/* ORIGINAL */', '/* EDIT */', $file ); $fp = fopen($fp, 'w'); fwrite($fp,$file); fclose($fp); } }
Forum: Themes and Templates
In reply to: Multiple comment areas/forms on the same pageSolved!
I realized the comment-reply.js wasn’t getting loaded…
So in the header I replaced:
<?php if(is_singular() && get_option('thread_comments')) wp_enqueue_script('comment-reply'); ?>
with
<?php wp_enqueue_script('comment-reply'); ?>
Brilliant!
Thanks Jeff. That should be a great help!
PooLP, do you mean to say that you can have maintenance mode and theme-my-login active at the same time if you use a 503.php? Or that you just don’t get the error message?
Damn! I’m really sorry. In designing the site I went from using custom types to categories and back to types again. In the interrum, I forgot that the plugin had settings to customize. (For some reason, even though all the types were named the same, it only remembered the settings for one).
Thanks. It all works now!
In content types where I add new pages myself, it totally doesn’t work. However, in one of the cases where I used “Convert Post Types” plugin to transfer pages to the new type, the menu item for the tree view is displayed. The only different with that tree of pages that I can tell is that they all have a future publishing date.
Thanks.
Thanks! Sorry I assumed it was the plugin. I’ve never encountered this error message before.
Forum: Fixing WordPress
In reply to: Set category to a custom post type automaticallyfunction add_sketchbook_category_automatically($post_ID) { global $wpdb; if(!has_term('','category',$post_ID)){ $cat = array(4); wp_set_object_terms($post_ID, $cat, 'category'); } } add_action('publish_sketchbook', 'add_sketchbook_category_automatically');
The important difference is that the action is hooked to ‘publish_sketchbook’ rather than publish_stiwti (which was my content type name)
I think you’re right about adapting your code, but perhaps not. Here’s what I ended up making. It returns data for next, prev, first, last, up, and children. It’s not very efficient, but to make it so would require I rewrite get_pages()…
[Code moderated as per the Forum Rules. Please use the pastebin]