I was wondering if a fix for the problem with the link not opening in a new window has been found. This is one of the favorite plugins on my multisite and members would love to see it working properly.
Also have the same problem, that is despite checking the box that says “Open this link in a new window”, the resulting link opens in the same window, not a new one. That’s confirmed by looking at the HTML, which should have a target=”_blank” as part of the link, but does not.
Anyone know how to tweak the code to make this happen?
ok, I’m a lightweight in the PHP realm, but I did look the code over a few times and decided to try something in the HTML portion that seems to have worked… I noticed that the <input> tags for the 2 checkbox options were inside the <label> tags, which didn’t seem right… so I moved the <input> tags outside and tried it and it’s functioning fine for me, that is I get a redirect in a blank window.
Look for lines 159 & 160 (for me anyways) in the page-links-to.php file and rework them to be as follows:
– – – – – – – – – – – –
<p><input type=”checkbox” name=”txfx_links_to_new_window” id=”txfx_links_to_new_window” value=”_blank” <?php checked( ‘_blank’, get_post_meta( $post->ID, ‘_links_to_target’, true ) ); ?>> <label for=”txfx_links_to_new_window”>Open this link in a new window</label></p>
<p><input type=”checkbox” name=”txfx_links_to_302″ id=”txfx_links_to_302″ value=”302″ <?php checked( ‘302’, get_post_meta( $post->ID, ‘_links_to_type’, true ) ); ?>> <label for=”txfx_links_to_302″>Use a temporary 302 redirect (default is a permanent 301 redirect)</label></p>
– – – – – – – – – – – – –