tips and tricks for movable type
MTCommentAuthorLink and Sanitize Specs
May 29, 2003
If you're using MTCommentAuthorLink as well as the Sanitize feature, you may not have noticed that the default Sanitize specs are now stripping target="_blank" from a URL if provided by the comment author. I know I didn't notice!
I guess I should have figured it out sooner, since Sanitize is applied to MTCommentURL by default, so it only makes sense that it would also be applied to MTCommentAuthorLink. But I didn't make that leap. It took this thread in the support forum for me to realize it was happening.
So, to correct this behavior, you can add a href target to your GlobalSanitizeSpec setting in mt.cfg (for all your blogs), or only to specific blogs by using the setting in Weblog Configuration | Preferences.
You can find more information on the Sanitize feature and how to change its settings by browsing your MT help files - see docs/mtmanual_sanitize.html.
TrackBack: 3
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/151)
» COMMENT BOXES TWEEKED
Excerpt: After a bit of tweeking and poking around, the comment boxes should be in good working order. I guess there is a bug in Moveable Type which strips the target=_"blank"...
Weblog: Spokey Dokey
Tracked: 07.07.03 12:55 AM
» Site Fixes
Excerpt: I think I finally fixed a few bugs which were plaguing this site:I deleted an extra line break in the template which was causing the main window to mirror the pop-up window when you hit the trackback link.With a tip...
Weblog: Resonance
Tracked: 11.27.03 08:43 PM
» Tweak, Tweak
Excerpt: Been tweaking some stuff around here. One thing that has been bugging the HELL out of me for quite a...
Weblog: JimSpot
Tracked: 06.03.04 12:13 AM
Comments
except some of don't have any such thing as a GlobalSanitizeSpec in our mt.cfg files -after merely downloading the upgrade tars and uploading them as instructed... (whimper) so now what do we do?
and trying to correct things in the configuration screen has only made things worse for me -deep heavy sigh
as per the reply to my thread in the MT forum adding [base target="_blank" /] to the head section of the comments template fixes the problem
(replace the square brackets with the acute brackets)
I take it back -it might open the weblinks in new windows but it also causes a fresh window to open whenever the post or preview buttons are clicked. Gah! I'm still at a loss how to fix it. Sorry -but I don't find your explaination on how to fix it that clear.
I answered in the forum.
Thank you! Been trying to fix this one for a while. All done now :)