geminorum
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] UI problems on RTLThis is my last try, promise. just hear me out.
There is a core function named switch_to_blog() on /wp-includes/ms-blog.php
the comment says :This function is useful if you need to pull posts, or other information,
from other blogs. You can switch back afterwards using restore_current_blog().Things that aren’t switched:
– autoloaded options. See #14992
– plugins. See #14941It’s really useful to use on p2p, if I’m trying to connect a post_type from one blog to another, it does not have to be reciprocal and has new posts creation.
p2p can get the blog id and post type on p2p_register_connection_type() and save post_ID from one blog, and another from the other blog on the table for connections, maybe the link and title as connection fields to avoid overload and I think the rest is the same.
It’ll be very considerate of you to just look at this possibility, I’m really trying to not re-inventing this particular great wheel!same problem, just have to use “manage_options” instead of “extend_search” on add_options_page()
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] UI problems on RTLI have plans to adopt p2p for such plugin. something like adding the blog id to each side of connections and build the postdata remotely!
thanks anyways.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] UI problems on RTLThanks, and just:
– right padding of wp_spin on RTL (next to pagination)
– right margin of the new post inputs.and a wild suggestion:
– connecting post types across a wp network. like connecting news posts from news.domain.tld to events posts on events.domain.tldForum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] UI problems on RTLSure looks fine : https://cl.ly/0F3o3x2O0n082i2C2J0b
and please consider :
– using number_format_i18n filter on the pagination numbers.
– full width post list on the tabs.
– center alignment of the pagination.also, I’ve sent the translation.
and thanks a lot!thanks for the reply, but the problem still exist even with re-saving settings (unless I change the role and then change it back).
I’m suggesting you hook your msum_add_roles function to wpmu_new_user action.
2.0.3 works like a charm.
thank you for the support.And besides, by using .js.php method, the plugin waste resources by making unnecessary calls.
I think the better approach is to get gad_get_admin_url(‘/admin-ajax.php’); via a JS var into the code by printing on the <head>, link gad_main.js.php content as regular script and then call the function with the var.
if ( file_exists( ABSPATH . 'wp-config.php') ) { /** The config file resides in ABSPATH */ require_once( ABSPATH . 'wp-config.php' ); } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) { /** The config file resides one level above ABSPATH but is not part of another install*/ require_once( dirname(ABSPATH) . '/wp-config.php' ); }
form wp-load.php
p.s. I don’t think that’s working for the AJAX! I’ll see other plugins.
the gad_main.js.php includes correctly on 2.0.2, but I get fatal in the gad_main.js.php for including wp-config.php