« SubCategories version 0.2.1 | Main | SubCategories v0.3 »
January 20, 2004
Optional-Redirect v0.1
I upgraded to MT 2.661 now, but I was not too sure about whether I wanted to use the new redirect "feature" for the MTCommentAuthorLink, so I wrote up this little plugin. Install it like any other plugin, and the MTCommentAuthorLink tag now takes a new argument, redirect. If set to 1, the redirect feature is used, otherwise, the old style behavior is used (I ripped the code directly out of MT 2.64).
Posted by rayners at January 20, 2004 10:30 PM
Trackback Pings
TrackBack URL for this entry:
http://mt.rayners.org/mt-tb.cgi/270
Listed below are links to weblogs that reference Optional-Redirect v0.1:
» Redirección opcional para comentarios de MT from kusor dhtml weblog
David Raynes pone a nuestra disposición Optional Redirect, un plugin de MovableType que permite eligir si empleamos o no la... [Read More]
Tracked on January 21, 2004 03:07 AM
» Spammers are stupid III from Neil's World
David Raynes' new Optional Redirect plugin adds a new attribute to <$MTCommentAuthorLink$> so that you can control whether it redirects or posts the URL as normal. [Read More]
Tracked on January 22, 2004 05:02 AM
» MT Optional-Redirect from JayAllen - The Daily Journey
David Raynes helps us get the old (and preferred in my opinion) MTCommentAuthorLink funtionality back.... [Read More]
Tracked on January 22, 2004 05:29 AM
» Optional Redirect Plugin from ETC. Indulging my inner geek
If you're like me and you've been on the fence about upgrading MT to 2.661, this new plugin might make the difference. David Raynes: Optional-Redirect v0.1 allows you to opt in or out of the comment author link redirect feature.... [Read More]
Tracked on January 22, 2004 10:12 AM
» MT-Blacklist v1.63 beta from MT-Blacklist/Comment Spam Clearinghouse
MT-Blacklist v1.63 beta (release cadidate 1) is ready for download. The following changes were made: Fully compatible with Movable Type version 2.661 Added arbitrary text/regexp to despam search Added NO FILTER to despam search to get LastN comments/tr... [Read More]
Tracked on January 22, 2004 03:50 PM
» Optional Redirect from This Chick
If you're wanting to upgrade to MT 2.66, but don't dig the sound (or look) of redirecting links in comments, you might want to check out Snowblink's patch, which adds an on/off switch. Oh, and be warned that the ThrottleSeconds... [Read More]
Tracked on January 23, 2004 01:15 AM
» Choice is good. from Live in the Delirious Cool
Want to upgrade to MT 2.661, but don't like the idea of your commenters' site links passing through a redirect? [Read More]
Tracked on January 24, 2004 08:34 AM
» http://www.confusedkid.com/pathways/archives/001709.html from Pathways
David Raynes: Optional-Redirect v0.1 for MT... [Read More]
Tracked on January 27, 2004 01:30 AM
» Plugin to Turn Off MTCommentAuthorLink Redirects from swirlspice
I'm not a fan of the new redirecting feature of MT 2.661 (there are now no direct links to websites when people make comments, only redirects). Mainly because I like to mouseover people's names and see the websites they've supplied.... [Read More]
Tracked on January 27, 2004 05:42 AM
» Redirects Are Not An Option from Full Speed
I have just installed David Raynes' Optional-Redirect Plugin for Movable Type. Comment author links no longer behave in the 2.661 way. They work as they should---that is, they link directly. While I understand the nature of this change that Six... [Read More]
Tracked on January 27, 2004 11:35 AM
» Redirects Are Not An Option from Full Speed
I have just installed David Raynes' Optional-Redirect Plugin for Movable Type. Comment author links no longer behave in the 2.661 way. They work as they should---that is, they link directly. While I understand the nature of this change that Six... [Read More]
Tracked on January 27, 2004 11:38 AM
» I Upgraded To MovableType 6.66?!?* from dcthornton.com
Actually, I upgraded to MT 2.661, and noticed that the a new redirecting feature isn't to my liking, as I... [Read More]
Tracked on January 27, 2004 10:53 PM
» I Upgraded To MovableType 6.66?!?* from dcthornton.com
Actually, I upgraded to MT 2.661, and noticed that the new redirecting feature isn't to my liking, as I like... [Read More]
Tracked on January 27, 2004 10:55 PM
» I Upgraded To MovableType 2.666?!? from dcthornton.com
Actually, I upgraded to MT 2.661, and noticed that the new redirecting feature isn't to my liking, as I like... [Read More]
Tracked on January 28, 2004 08:21 AM
» Stepping Stones to a Safer Blog from Burningbird
In the last few weeks, I've been hit not only by comment spammers, but a new player who doesn't seem to like our party: the crapflooders, people who use automated applications (you may have heard of MTFlood or some variation) to literally flood comment... [Read More]
Tracked on January 28, 2004 07:20 PM
» About Bill and brilliantcorners.org from Brilliant Corners
Hi. I’m Bill Turner. I’m 32, married, and a father of two (1,2). I work for a big internet portal, and I’ve recently started going back to school to finish the bachelors degree I left hanging about 10 years ago. If you’d like to... [Read More]
Tracked on January 28, 2004 07:23 PM
» Stepping Stones to a Safer Blog from Burningbird
In the last few weeks, I've been hit not only by comment spammers, but a new player who doesn't seem to like our party: the crapflooders, people who use automated applications (you may have heard of MTFlood or some variation) to literally flood comment... [Read More]
Tracked on January 28, 2004 08:14 PM
» Stepping Stones to a Safer Blog from Burningbird
edited In the last few weeks, I've been hit not only by comment spammers but a new player who doesn't seem to like our party: the crapflooders, people who use automated applications (you may have heard of the program called "MTFlood" or some variation)... [Read More]
Tracked on January 29, 2004 06:02 AM
» http://www.sixdifferentways.com/remainder/005977.php from Remaindered links weblog
MT Plugin makes comment redirects optional... [Read More]
Tracked on January 29, 2004 03:55 PM
» OptionalRedirect from MT Plugin Directory
... [Read More]
Tracked on February 1, 2004 08:45 PM
» Plugging in from Tao of Dowingba
I currently use, and have used in the past, several Movable Type plugins. Here's the list: Optional-Redirect v0.1: A very useful plugin that allows you to turn off the annoying 'redirect' feature on MT 2.661 comment author links. MT-Blacklist: Let's... [Read More]
Tracked on February 3, 2004 02:05 AM
» OptionalRedirect from MT Plugin Directory
... [Read More]
Tracked on February 8, 2004 04:46 AM
» OptionalRedirect from MT Plugin Directory
... [Read More]
Tracked on February 8, 2004 04:46 AM
» movable type from a coma trail
It's after five in the morning and I am still up and restless. My sleep schedule is pretty much screwed. I've taken this time to thank more people responsible for various functionalities installed on my blog, and for their contributions to the blogosph... [Read More]
Tracked on February 8, 2004 08:20 AM
» MT-plugin: Optional Redirect from Monitoring Dalager
David Raynes: Optional-Redirect v0.1 Got tired of the new 2.661 feature that hides the URL of commenters behind a redirect-url. The feature was made to prevent comment spammers from getting google pagerank points, but I think we all like to mouse-over ... [Read More]
Tracked on February 10, 2004 12:27 PM
» MT-plugin: Optional Redirect from Monitoring Dalager
David Raynes: Optional-Redirect v0.1 Got tired of the new Movable Type 2.661 feature that hides the URL of commenters behind a redirect-url. The feature was made to prevent comment spammers from getting google pagerank points, but I think we all like t... [Read More]
Tracked on February 10, 2004 12:27 PM
» MT-plugin: Optional Redirect from Monitoring Dalager
David Raynes: Optional-Redirect v0.1 Got tired of the new Movable Type 2.661 feature that hides the URL of commenters behind a redirect-url. The feature was made to prevent comment spammers from getting google pagerank points, but I think we all like t... [Read More]
Tracked on February 16, 2004 03:22 AM
» Moveable Type No redirect comments plugin from Cynical-rose.net
Moveable type no redirect plugin [Read More]
Tracked on February 25, 2004 11:04 AM
» comment redirects and mt 2.661 from Redsugar Muse
I finally upgraded to MT 2.661. Wanna know why? Because of David Raynes's Optional-Redirect v0.11 That's right. You can mouse over your commenter's names again, without seeing your own url. I know there was a good reason for that feature... [Read More]
Tracked on March 16, 2004 01:29 PM
» MT Optional-Redirect Plugin from Bloggie Broad
I'm slightly behind in my techie updates, which I'm attempting... [Read More]
Tracked on March 30, 2004 10:55 PM
» Tech Info For Bloggers from Live Sensibly
My background I started mucking around with an IBM PC in ‘84 when my employer bought a unit with a 10MB hard drive. Migrated from there to mainframe COBOL and CICS, and rode the consulting boom through the 90s. This... [Read More]
Tracked on April 2, 2004 01:38 AM
» Plugin problem? from Mind of Knowledge
Blog problems and optional redirect plugin. [Read More]
Tracked on May 11, 2004 03:10 PM
» URLTitles from Tao of Dowingba
I, for one, have been greatly annoyed by Movable Type 2.66x's comment author redirect script since the day it was released. I positively hate not being able to look at the browser's status bar to predict where that link will take me; and this is why I ... [Read More]
Tracked on May 19, 2004 09:50 PM
» Movin' On Up from Musings
MT 3.0 and a new iBook. [Read More]
Tracked on May 29, 2004 11:48 AM
» Site news: Comment links no longer use the MT redirect from vowe dot net
I meant to fix this for a long time. With 2.66 SixApart applied a new feature that should discourage the use of comments to obtain Googe juice. However most spammers put their links directly into the comments body. Since I weed them out anyway mit MT-B... [Read More]
Tracked on October 19, 2004 10:58 AM
» Site news: Comment links no longer use the MT redirect from vowe dot net
I meant to fix this for a long time. With MovableType 2.66 SixApart changed the behavior of the CommentAuthorLink tag. Instead of adding an href to the site of the comment author, it linked to a cgi-script that redirected to the site. This change was d... [Read More]
Tracked on October 19, 2004 11:23 AM
» Site news: Comment links no longer use the MT redirect from vowe dot net
I meant to fix this for a long time. With MovableType 2.66 SixApart changed the behavior of the CommentAuthorLink tag. Instead of adding an href to the site of the comment author, it linked to a cgi-script that redirected to the site. This change was d... [Read More]
Tracked on October 19, 2004 11:56 AM
Comments
We shouldn't have NEEDED this plugin but we do and I thank you - now I can upgrade.
Posted by: john at January 21, 2004 08:32 AM
Thanks! I was just about to post a feature request in the MT forums for this exact feature. Thanks again.
Posted by: Mark Carey at January 21, 2004 11:41 AM
Thanks! I was just about to post this exact feature request in the MT Forums, when I saw your post about this plugin. Thanks!
Posted by: Mark Carey at January 21, 2004 11:42 AM
I was just about to hack this feature for myself. I'm glad to see it has already been done. Thanks!
Posted by: Scott Johnson at January 22, 2004 07:23 AM
I was just about to hack this feature for myself. I'm glad to see it has already been done. Thanks!
Posted by: Scott Johnson at January 22, 2004 07:24 AM
Thanks for saving me a round tuit. One little thing: in the non-redirect block, you've got a second "my($ctx, $args) = @_;".
Posted by: Phil Ringnalda at January 22, 2004 12:20 PM
am i the only person who is getting this error when i try to rebuild?
+++ An error occurred:
Undefined subroutine &MT::spamprotect called at /usr/www/users/sisyphus/cgi-bin/plugins/optionalredirect.pl line 40. +++
i have three blogs; one if them has the comments in pup-up windows, and it rebuilds with no problem after installing this plug-in.
on the other two blogs, i have it configured to see the entire post with comments when someone clicks the 'comments (2)' link (basically i have replaced the opencomments tag with the permalink tag. on these two blogs i get the above error. thanks.
Posted by: ashley moore at January 22, 2004 12:55 PM
Hi, thanks for the great plugin! I also hate those redirects. However, although I see the target = "_blank" line in your plugin, I don't seem to have that functionality. When I click on a link in the popup or my individual archive, it still opens in the same window, not a new one.
Anyone out there know how to fix that easily?
Posted by: Jennifer at January 22, 2004 06:23 PM
For the spamprotect error: the best thing you can do is replace spamprotect="1" in your template with show_email="0" so you'll never show an email address. The "spam protection" is trivial to get around, and there probably isn't a single harvester left working that doesn't know how. But, if you really want to show email links, find the line
use MT::Util qw( remove_html );
and add spam_protect inside the parentheses, so you have
use MT::Util qw( removehtml spamprotect );
and the rebuild errors will stop.
Posted by: Phil Ringnalda at January 22, 2004 11:25 PM
Sorry to be a pain, but "install like a normal plug in" means nothing to me.
Is there a place to find instructions to install this?
Posted by: Geoffrey at January 24, 2004 07:47 AM
geoffrey, just download and unzip the file, then upload the .pl file to your 'plugins' directory in your cgi-bin with your ftp application. if you don't already have a plugins directory you may have to create it. good luck.
i also have a question about rebuilding errors:
i have installed the optional-redirect plugin. when i rebuild my site by logging onto mt, i have no problems. however, i have a cron job to rebuild the site every six hours (for a feed that is included), and when that rebuild occurs, i get an email with this message:
+++ Cron $HOME/publichtml/cgi-bin/mt-rebuild.pl -mode=all -blogid=2
"my" variable $ctx masks earlier declaration in same scope at /usr/home/sisyphus/publichtml/cgi-bin/plugins/optionalredirect.pl line 26. "my" variable $args masks earlier declaration in same scope at /usr/home/sisyphus/publichtml/cgi-bin/plugins/optionalredirect.pl line 26. +++
the site seems to look the same, but it is annoying to get this message 12 times a day (3 times every 6 hours...), and i wonder if it is a security or spam risk? thanks.
Posted by: ashley at January 24, 2004 07:58 AM
geoffrey, just download and unzip the file, then upload the .pl file to your 'plugins' directory in your cgi-bin with your ftp application. if you don't already have a plugins directory you may have to create it. good luck.
i also have a question about rebuilding errors:
i have installed the optional-redirect plugin. when i rebuild my site by logging onto mt, i have no problems. however, i have a cron job to rebuild the site every six hours (for a feed that is included), and when that rebuild occurs, i get an email with this message:
+++ Cron $HOME/publichtml/cgi-bin/mt-rebuild.pl -mode=all -blogid=2
"my" variable $ctx masks earlier declaration in same scope at /usr/home/sisyphus/publichtml/cgi-bin/plugins/optionalredirect.pl line 26. "my" variable $args masks earlier declaration in same scope at /usr/home/sisyphus/publichtml/cgi-bin/plugins/optionalredirect.pl line 26. +++
the site seems to look the same, but it is annoying to get this message 12 times a day (3 times every 6 hours...), and i wonder if it is a security or spam risk? thanks.
Posted by: ashley at January 24, 2004 07:58 AM
Geoffrey, within your installation folder (usually called "mt"), create a folder called plugins; upload the plugin in ASCII format, and rebuild. David, thanks so much (and thank you,Phil for the spam_protect headsup) - it works beautifully!
Posted by: Donna at January 24, 2004 08:25 AM
Thanks ashley! I had to change the MT::util also, but it appears to be working now. Something messed up my SCode, but I think that is a blacklist issue.
Posted by: Geoffrey at January 24, 2004 08:38 AM
ashley, that's what I was saying up in #11. Both line 17 and line 26 are "my ($ctx, $args) = @_;" and even with regular rebuilds, your error.log is getting that same message. Just comment out the second one (not the first) by putting a # at the start of the line, and it'll be fine.
Posted by: Phil Ringnalda at January 24, 2004 11:15 AM
hi phil. sorry, i missed that; i will try that fix right now. also, i apologize for posting the same comment twice. thanks for your help.
Posted by: ashley at January 25, 2004 11:49 AM
hi phil. sorry, i missed that; i will try that fix right now. also, i apologize for posting the same comment twice. thanks for your help.
Posted by: ashley at January 25, 2004 06:12 PM
Thanks for this plugin - I couldn't figure out what was up with the new redirect "feature".
Posted by: Lana at February 2, 2004 11:10 AM
thank you very much! that helps a bunch. i'd been looking for something like this to solve this problem i didn't like. :D
Posted by: Michelle at February 16, 2004 03:49 PM
I installed the plug in.
I inserted redirect="0" in my tag
And when I rebuild I get
MT::App::CMS=HASH(0x17529c0) Subroutine hdlrcommentauthorlink redefined at c:\inetpub\wwwroot\MT\lib/MT/Template/Context.pm line 1173.
And still I have the redirect.
Any ideas?
Thanks
Posted by: dan at April 30, 2004 11:19 AM
Someone posted with this exact same problem almost a month ago, but I haven't been able to find any word on a fix yet. I uploaded the plugin into my plugins directory in ASCII mode and put the redirect="0" tag in, and when I rebuild I get this:
MT::App::Comments=HASH(0x810aa80) Subroutine hdlrcommentauthorlink redefined at lib/MT/Template/Context.pm line 1173.
Both in my little rebuilding window and in my comments window. I'm really sorry if this is me being a big stupidhead and not doing something that's really obvious to people who know more about installing these things, but any help would be greatly appreciated.
Posted by: Rachel at May 24, 2004 02:46 AM
Nice idea. But to avoid those "subroutine redefined" errors, I would replace the entire plugin initialisation code (including those curly braces) with:
use MT::Template::Context; MT::Template::Context->addtag(CommentAuthorLink => \&authorlink); MT::Template::Context->addtag(CommentPreviewAuthorLink => \&authorlink);
And then in the author_link subroutine, you can change the code which calls the 2.661 behaviour to this:
if ($redirect) { return MT::Template::Context::hdlrcommentauthorlink (@_); }
Posted by: Todd at May 28, 2004 10:03 AM
i get the same exact error that rachel does... nothing at all is working for me as far as turning this annoying redirect thing off. :(
Posted by: april at June 1, 2004 10:05 PM
I've been using this plugin for awhile, and still use it with MT3 because I appreciate that it just flips the redirect off by default. I would like to report one bug, however -- under MT3 (and maybe this is just for typekey commenters -- I haven't checked), if there is not url or email provided, MTCommentAuthorLink still creates a mailto: link which points to a long string of hexadecimal digits (eg: mailto:28a939cdef399201bb83ac).
Just FYI. And thanks!
Posted by: yukino
at January 17, 2005 06:23 PM
Thanks David, this is fantastic. :)
Posted by: sarah at January 21, 2004 12:33 AM