Ivaylo Draganov
Forum Replies Created
-
Forum: Plugins
In reply to: [CMB2] Group of fields inside group of fieldsI think you can achieve that by creating a custom CMB2 field type that combines several fields and then set that field to repeat within the group. The example in the CMB2 wiki for creating an address field is a great start:
https://github.com/WebDevStudios/CMB2/wiki/Adding-your-own-field-types#example-4-multiple-inputs-one-field-lets-create-an-address-fieldThe complete code can be found here:
https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/custom-field-types/address-field-type.phpForum: Plugins
In reply to: [Busted!] Doesn't work on stylesheets in 4.2.2Bump. I had to apply this fix in 4.4 as well.
It can be applied outside of the plugin (for example in theme) like so:
if ( class_exists( 'Storm_Busted' ) ) { add_action( 'wp_print_styles', 'Storm_Busted::wp_print_scripts', PHP_INT_MAX - 1 ); }
Forum: Fixing WordPress
In reply to: Custom post type menu_order quick edit bug?Yes, I also ran into this issue. There are two relevant trac tickets:
https://core.trac.www.ads-software.com/ticket/19911
https://core.trac.www.ads-software.com/ticket/18352And according to trac this issue is fixed in 3.4
Hi,
That’s just a PHP notice – it won’t break anything, but it is annoying. To fix it simply add quotes around WIDGETS_RELOADED_DIR on lines 39 and 42, here’s an excerpt:
/* Set constant path to the members plugin directory. */ define( 'WIDGETS_RELOADED_DIR', plugin_dir_path( __FILE__ ) ); /* Set constant path to the members plugin directory. */ define( 'WIDGETS_RELOADED_URL', plugin_dir_url( __FILE__ ) );
Cheers!
Forum: Plugins
In reply to: [Simple Facebook Connect] Post title is not linked when published to FacebookYes, that worked! Only it should be get_permalink instead of get_the_permalink.
Thanks Otto!
I think it’s quite likely that this is related to my other issue.
Forum: Plugins
In reply to: [Simple Facebook Connect] Post title is not linked when published to FacebookI noticed that the ‘href’ is missing for some reason in the array passed to FB.ui:
FB.ui({"method":"stream.publish","attachment":{"name":"Post title","href":"","description":"the excerpt[...]","media":[{"type":"image","src":"http:\/\/example.com\/files\/2011\/08\/example.jpg","href":""}]},"action_links":[{"text":"Share","href":"http:\/\/www.facebook.com\/share.php?u="}]});
I took a look in your code and saw that you are using wp_get_shortlink to get the permalink. Jumping right into the Codex and then into WP source I found that this function is returning and empty string when no permalink structure is set. And since my sites are using the default “ugly” permalinks it was returning and empty string and messing up the FB publisher.
I don’t know why you chose to use this function instead of get_permalink. I tried to filter the permalink inside the plugin but I couldn’t manage:
/** * filter SFC shortlink */ add_filter( 'sfc_publish_permalink', 'filter_sfc_shortlink', 10, 2 ); function filter_sfc_shortlink ( $permalink, $id ) { // if ( $permalink == '' ) $permalink == get_permalink( $id ); return $permalink; }
So I ended up hacking sfc-publish.php by replacing wp_get_shortlink with get_permalink.
It works for now, but could you please tell me how to accomplish that without hacking the plugin?
Thanks!
Forum: Plugins
In reply to: [U Extended Comment] Wonderful pluginIt’s a very promising plugin. Keep up the good work!
I’d suggest organizing the uploaded files in WP’s uploads/year/month directories (or at least adding an option to enable that). Another thing that comes to my mind is to write the uploaded images as standard WP media files.
Forum: Plugins
In reply to: [Simple Facebook Connect] Post title is not linked when published to FacebookI’m keeping up with the development version but the issue still persists. I’m using this plugin on two sites with different sets of plugins but the behavior is the same on both sites – the published post on the FB wall is not linked, there’s just a title and an excerpt.
I think its a critical bug and should be addressed. I’m ready to cooperate with you if you need more information.
Forum: Plugins
In reply to: [Simple Facebook Connect] Post title is not linked when published to FacebookHere’s a screenshot of the published on a WP post:
https://awesomescreenshot.com/0bdgqnd5dThat’s how it appears on the FB wall. A title with an excerpt, but no link.
Forum: Plugins
In reply to: [WP Multi Network] Multi Network with subdomains and subfoldersI’ve started digging into the code but I can’t seem to find a solutions. I can see that the option ‘subdomains_install’ is used nowhere – it simply exists in the database. Seems to me that some kind of clever .htaccess has to be employed in order to make the networks redirect properly to subdomains/subdirs.
Anyone has an idea?
Or hack the plugin to increase the limit on the query (line 203):
$rows = $wpdb->get_results( "SELECT * FROM {$wpdb->dmtable} ORDER BY id DESC LIMIT 0,20" );
20 is the default limit, so change it to something that suits your needs
Forum: Plugins
In reply to: How can I limit submissions with cforms???I’m looking for the exact same thing.
Forum: Fixing WordPress
In reply to: How can you add more presets to ‘WP Post Thumbnail’?If you still want to use this plugin I’d suggest running the beta version:
https://www.seoadsensethemes.com/wordpress-wp-post-thumbnail-plugin/Development seems to be dead though… Maybe because now you can do all those things inside WordPress. It takes some more steps but it’s native.
Forum: Plugins
In reply to: [Widgets Reloaded] [Plugin: Widgets Reloaded] Listing custom taxonomy termsOk, turns out that
show_tagcloud
has no effect on the UI when the taxonomy is hierarchical. So that makes it clear. But not clear enough in the Codex – might just slide in a minor edit.