• Resolved bustel

    (@bustel)


    This is a great plugin but I have a problem with the combination of another plugin “linkify text”. I have those plugins installed but the linkify text plugin doesn’t work. The plugin links a word, normally it does in a table of wordpress but not with tablepress. Can someone help me?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I’m afraid this is a problem in that Linkify Text plugin. It seems that it’s running too early, so that it does not pick up content that was inserted via a Shortcode.

    Regards,
    Tobias

    Thread Starter bustel

    (@bustel)

    what can we do about this problem? Can I fix it?

    Thread Starter bustel

    (@bustel)

    Can we do it with this code in the main file of tablepress?

    function this_plugin_first() {
    	// ensure path to this file is via main wp plugin path
    	$wp_path_to_this_file = preg_replace('/(.*)plugins\/(.*)$/', WP_PLUGIN_DIR."/$2", __FILE__);
    	$this_plugin = plugin_basename(trim($wp_path_to_this_file));
    	$active_plugins = get_option('active_plugins');
    	$this_plugin_key = array_search($this_plugin, $active_plugins);
    	if ($this_plugin_key) { // if it's 0 it's the first plugin already, no need to continue
    		array_splice($active_plugins, $this_plugin_key, 1);
    		array_unshift($active_plugins, $this_plugin);
    		update_option('active_plugins', $active_plugins);
    	}
    }
    add_action("activated_plugin", "this_plugin_first");

    but it doesn’t work… ??

    • This reply was modified 6 years, 10 months ago by bustel.
    Thread Starter bustel

    (@bustel)

    I have installed another plugin for the order to load the plugins, I have set tablepress as first plugin to load, but it doesn’t work…

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the load order of the plugins has not influence here (I was maybe not precise enough there.). You will need to instruct the “Linkify Text” plugin to run its routines later in the processing, i.e. after Shortcodes are parsed.

    The best way to do that should be to add this to the end of your theme’s “functions.php” file:

    
    add_filter( 'c2c_linkify_text_filters', 'c2c_add_tablepress' );
    function c2c_add_tablepress( $filters ) {
      $filters[] = 'tablepress_table_output';
      return $filters;
    }

    Regards,
    Tobias

    Thread Starter bustel

    (@bustel)

    Hello Tobias

    coooooool, it works ??

    thank you for your support.

    by the way: keep up the good work ??

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘doesn’t work with another plugin’ is closed to new replies.