undergroundwebdesigns
Forum Replies Created
-
Forum: Plugins
In reply to: [Sociable] Fix to get sociable icons working for custom post types.Hello everyone. Sorry for the delayed response. I’m not actually working on the site where this was an issue anymore, so I don’t have a good test-case for the updated version of Sociable. That said, looking at their code it looks like they just moved some things around, try replacing the IF at line 643 with my original fix and see how that works. Fixed function would would look like this:
//If We Can Verify That We are in the correct loaction, simply add something to the $display array, and test for a true result to continue. foreach( $locations as $location => $val ){ //First We Handle is_single() so it returning true on Single Post Type Pages is not an issue, this is not the intended functionality of this plugin if( $location == 'is_single' ){ //If we are not in a post, lets ignore this one for now $types = get_post_types( $args, 'names' , 'and'); $types[] = "post"; if( is_single() && in_array(get_post_type(), $types)){ // <-- Line 643 here! $display = true; break; } else { continue; // So not to trigger is_single later in this loop, but still be allowed to handle others } } elseif( strpos( $location , 'is_single_posttype_' ) === 0 ){ //Now We Need To Check For The Variable Names, Taxonomy Archives, Post Type Archives and Single Custom Post Types. //Single Custom Post Type $post_type = str_replace( 'is_single_posttype_' , '' , $location ); if( is_single() && get_post_type() == $post_type ){ $display = true; break; } ....
Forum: Plugins
In reply to: [Plugin: Micro Anywhere] Buttons do not display to add Microformat dataHi Leon and Tom,
What web browser are you using? I run the plugin on my own blog, which has been upgraded to 2.7 and the buttons are still there and working correctly in both Safari and Firefox 3.0. Are either of you running any other plugins that work with the WYSIWIG editor (such as TinyMCE Advanced perhaps?).
I’ll have a look at the code and see if I can figure out why the buttons aren’t showing up for you, but any more details you can provide will definitely help me track down the problem.
Thanks
Alex