sliceofpie
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Hide Post] Plugin not working on posts pageI think I’ve found a solution, but it involves hacking the plugin.
You need to replace is_front_page() with is_home() in wp-hide-post.php line 60:function wphp_is_front_page() { return is_front_page(); }
Should be:
function wphp_is_front_page() { return is_home(); }
Forum: Plugins
In reply to: [Contact Form DB] Exclude/Include specific formsWoops, I missed that – Thanks for this awesome plugin, Michael!
Forum: Fixing WordPress
In reply to: How to display amount of comments per day?You could do a custom MySQL query based on the current post’s ID:
$comments_today = $wpdb->get_var( "SELECT count(*) FROM $wpdb->comments WHERE $wpdb->comments.comment_post_ID = ".$post->ID." AND DATE($wpdb->comments.comment_date) = CURDATE() " ); echo $comments_today;
Forum: Plugins
In reply to: [WP Super Cache] Mobile pages cached but never served (WordPress Mobile Pack)This might seem like an obscure problem, but after trying all different suggested plugin combinations, I still can’t get a custom Mobile theme to cache with WP-SuperCache. Has anyone done this successfully? (Custom, not WP Touch’s built-in themes…)
Forum: Plugins
In reply to: W3 Total Cache Custom file list "Source file not found"I’m having the same (or similar) issue with custom files —
This is the path I put in the “Custom file list”:
wp-content/uploads/userphoto/*
When attempting to do “Custom files export”, w3tc successfully finds all the files in this folder, and lists the correct paths, but says “Source file not found” next to each. I’ve messed with chmoding, chowning, etc, and it does not appear to be a permissions problem. I am using Rackspace Cloud Files, and uploading attachments and theme files, etc, are working perfectly (thank you!)
wp-content/uploads/userphoto/1.jpg Source file not found.
Any tips? Thanks!
I was using a pre-1.0 version (0.25), and it broke in the last 24 hours, upgrading will work (I think.)
Perhaps its not 4 letter extensions that are the issue after all – I was able to fix this issue by simply adding “jpeg|” to line 18:
if (preg_match('/(.*)-([0-9]+)x([0-9]+)(c)?\.(jpeg|jpg|png|gif)/i',$_SERVER['REQUEST_URI'],$matches)) {
Not sure if this is the best solution but fixed my specific problem.
Thanks so much zgrossbart and apljdi.
I was seeing the 500 error in Firebug. Turns out the larger requests were causing PHP to run out of memory, so increasing PHP’s memory solved the issue for us – But sounds like the next version will be more efficient, awesome!
Thanks again for this awesome plugin, our blog editor cannot live without it (and similar plugins do not compare…)
Forum: Hacks
In reply to: Custom Post Image Sizes FutureThis “Dynamic Image Resizer” is the best/simplest solution I’ve found so far: https://www.ads-software.com/extend/plugins/dynamic-image-resizer/
Forum: Hacks
In reply to: Custom Post Image Sizes FutureI’m looking for the same thing… Basically I need many different image sizes for different parts of my site, but I don’t want each image uploaded to be resized and saved to so many different sizes, only the ones that are necessary for that particular post type…