Help - Search - Members - Calendar
Full Version: Links open inside comment popup window
Movable Type Community Forum > Additional Resources > Tips and Tricks
Sparkleintherain
My links in my popup comment window open in that same window, and the window won't resize. How can I fix this?

I don't want there to have to be a check box that users have to tick off.

Can we have this be default for the links that can be inserted in entries?
kate
You can do this easily with the MTRegex plugin (if you're using 2.661 or below, I'm not sure about 3.0D). Download and install the plugin, then:

Add this to the top of your comment listing template, anywhere after < html >
CODE
<MTAddRegex>s|a href|a target=\"_blank\" href|g</MTAddRegex>


Then, change line < MTComments > to this
CODE
<MTComments regex="1">


That should open all links in your comments in a new window. smile.gif
Sparkleintherain
thank you, how do I find that plugin?

searched Google ;-)

http://bradchoate.com/weblog/2002/07/27/regex-plugin
birba
Hi!
I have exactly the same problem. Is there available some plugin suitable for MT 3.x?
Thankyo much for help.
A Look Through Lens - Shots snapped by roberto pagani
arvind
The above solution (using MTRegex) should work for MT 3.x too smile.gif
birba
Thank you much, Arwind.
I'll try it.
A Look Through Lens
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.