• I just modified the plugin page wp-dtree.php because of a problem with wpml plugin.

    The problem wos that the plugine wont open the tree at a subpage in english.

    the modification is:

    //if($args['opentoselection'] && isset($_SERVER['REQUEST_URI'])){
    		if($args['opentoselection'] && isset($_REQUEST['page_id'])){
    			//$tree .= $opt['openscript'] . wpdt_open_tree_to($_SERVER['REQUEST_URI'],'', $tree) . //$opt['closescript'];
    echo $_SERVER['page_id'];
    			$tree .= $opt['openscript'] . wpdt_open_tree_to($_REQUEST['page_id'],'', $tree) . $opt['closescript'];
    		}

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ado2000

    (@ado2000)

    Never mind.

    It was another kind of problem.

    And what is the solution? Because i have this problem with wp-dtree and WPML.

    In french, my main language, it’s ok, but in english or spanish the plugin don’t open the tree…

    So how do you fix it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-dTree] wp-dtree wpml’ is closed to new replies.