Mad Max
Forum Replies Created
-
I think the problem with smush-it is the availability of the smush.it service. Probably it has some up&down. The changes I suggested just use another yahoo url for posting image to smush and it seems to work well for now.
I have both wp-smush.it and scissor-continued installed and active on a WP site of mine, http://www.real-dreams.it (online since April) and I’ve not noticed problems yet using those 2 plugins together.
This morning I’ve updated smush-it and noticed a warning smushing an image from the media library (“Failed to create a temp dir…“).
But changing line 27 and 28 of the php plugin file, with those below, solves the problem:define('SMUSHIT_REQ_URL', 'http://ws1.adq.ac4.yahoo.com/ysmush.it/ws.php?img=%s'); define('SMUSHIT_BASE_URL', '');Now I can smush images again.
You can leave you email address in the form on my agency website http://w3b.it (sorry, no english at all at the moment, but the form is quite simple); I will reply you via email.
In the meahwhile you can download my patched version of scissor continued from here.
reverse to the original code and then make the fixes one by one. Probably you have one or more syntax errors. I can send to you my functioning patched version with the fixes above, if it can be useful.
About this feature (Custom HTML Forms), I’m wondering how good can be to have a hidden field specifying where emails are to be sent.
This could lead to spam problems: a not-to-advanced user could modify that field “on the fly” (via firebug for example”) and then use the form to send spam messages usign webserver mail service.Forum: Plugins
In reply to: [Taxonomy Images II] passing id wont work@dumbi.della.pira
go to line 250:
return $this->capture( 'category-images', $vars );
and change “return” with “echo”:
echo $this->capture( 'category-images', $vars );the function display_images doesn’t really display nothing; it passes the html output to the caller and the caller function ends without print it. It seems correct to me instead, that display_images really display images 😀 instead of returning a bunch of html in a string variable.
Forum: Plugins
In reply to: [Audio Player] Notice: has_cap called with an argument that is deprecatedDo you have some plugin active? I was having the same problem with one of my oldest plugin, calling “add_submenu_page” with a numeric user level instead of a capability name.
Another deprecated functions call (3 calls in the plugin file):
Just subsitute “wp_shrink_dimensions” with “wp_constrain_dimensions”
Function parametrs are the same.Forum: Fixing WordPress
In reply to: Custom Taxonomy Post Count IncorrectPLZ don’t use my previous post. Here’s a version that works both in quick edit and full edit mode
add_action('edited_term_taxonomy','yoursite_edited_term_taxonomy',10,2); function yoursite_edited_term_taxonomy($term,$taxonomy) { global $wpdb,$post; //in quick edit mode, $post is an array() //in full edit mode $post is an object if ( is_array( $post )) $posttype=$post['post_type']; else $posttype=$post->post_type; if ($posttype) { $DB_prefix=$wpdb->get_blog_prefix(BLOG_ID_CURRENT_SITE); $sql = "UPDATE ".$DB_prefix."term_taxonomy tt SET count = (SELECT count(p.ID) FROM ".$DB_prefix."term_relationships tr LEFT JOIN ".$DB_prefix."posts p ON (p.ID = tr.object_id AND p.post_type = '".$posttype."' AND p.post_status = 'publish') WHERE tr.term_taxonomy_id = tt.term_taxonomy_id) WHERE tt.taxonomy = '".$taxonomy->name."' "; $wpdb->query($sql); } }Forum: Fixing WordPress
In reply to: Custom Taxonomy Post Count Incorrect@duffcub: Just made some mods to make your function more general:
add_action('edited_term_taxonomy','yoursite_edited_term_taxonomy',10,2); function yoursite_edited_term_taxonomy($term,$taxonomy) { global $wpdb; $DB_prefix=$wpdb->get_blog_prefix(BLOG_ID_CURRENT_SITE); $sql = "UPDATE ".$DB_prefix."term_taxonomy tt SET count = (SELECT count(p.ID) FROM ".$DB_prefix."term_relationships tr LEFT JOIN ".$DB_prefix."posts p ON (p.ID = tr.object_id AND p.post_type = '".get_post_type()."' AND p.post_status = 'publish') WHERE tr.term_taxonomy_id = tt.term_taxonomy_id) WHERE tt.taxonomy = '".$taxonomy->name."' "; $wpdb->query($sql); }NB: Don’t work in “quick edit” mode cause get_post_type return FALSE
Forum: Fixing WordPress
In reply to: Custom Taxonomy Post Count IncorrectThanks you all, that really helps me! But I’ve found a strange behaviour. My term count was 8, with 6 published and 2 pending posts classified under that terms. So I’ve made those steps:
1) I’ve added duffcub code to my functions.php
2) re-saved a pending post as pending (i.e. no status change)
3) term count goes down by one (as expected)4) I’ve commented out duffcub code
5) re-saved the other pending post as pending (i.e. no status change)
6) term count goes down by one again (?!)It seems that resaving pending posts o changing their status to draft (or to published then to pending or draft again) make terms counts update. Then the question is: why terms counts get out of sync at some point in the past?
Other details: probably those 2 post was changed to pending by my client, just before I update from wp 3.1 to wp 3.1.1. Maybe this count bug is resolved in wp 3.1.1?
Forum: Fixing WordPress
In reply to: If I using another port for FTP, how can I update via FTP my plugin?If you use a different FTP port simply type in your FTP address a colon and the port number
Forum: Themes and Templates
In reply to: Get current page number for paginated postsForum: Fixing WordPress
In reply to: Using the custom post type label and descriptionAli method works great, but it relies on data extracted from the first post ($post, out of the loop) of the current type. I think a more reasonable way, is to use
$post_type = $wp_query->get_queried_object()it does exactly what its name says, it returns the queried object for the current context (in this case, the current custom post type object) and it works in many other contexts such as pages, categories etc etc.
Forum: Plugins
In reply to: [Scissors Continued] [Plugin: Scissors Continued] problems with tinymceWorks great now! Thanks for the update.
Forum: Plugins
In reply to: [Plugin: TinyMCE Advanced] How do I ‘activate’ tadv-mce.css@turningpoint79: thanks a lot! It works great and solved my problem in less than 10 seconds!!!