Experience Internet is an award–winning web design agency with a 110% money–back guarantee. Call us on 0845 053 3139 to find out more.

SL Comment Redirect

Automatically redirect visitors to the URL of your choosing after comment submission.

Overview

ZIP file iconDownload SL Comment Redirect, v1.0.0 (ZIP)

ExpressionEngine doesn’t allow you to specify which page you’d like a visitor to see after he has submitted a comment.

On the few occasions when such functionality is required, this limitation rapidly becomes an unsightly wart upon the flawless visage of your EE installation, requiring nasty hacks and occasionally surgical workarounds. SL Comment Redirect saves you from such unsightly growths.

Read on for full installation and usage instructions.

Requirements

SL Comment Redirect makes use of Leevi Graham’s LG Addon Updater extension to keep you informed about updates and bug fixes, but will function perfectly well without it.

Installation and Upgrading

The SL Comment Redirect ZIP file contains a system folder, and a create_symlinks.command file.

If you’re not using symlinks to manage addons in your EE installation, you can safely ignore the latter. If you are using symlinks to manage your addons, you presumably know what to do with the create_symlinks.command file, so I won’t go into it here.

Here’s how to manually install the extension:

  1. Extract the ZIP file.
  2. Copy the system/extensions/ext.sl_comment_redirect.php file to your /system/extensions/ directory.
  3. Copy the system/language/english/lang.sl_comment_redirect.php file to your /system/languages/english/ directory.
  4. If you’re installing SL Comment Redirect for the first time, open the Extensions Manager, and enable the extension.

Usage

To specify the URL you’d like the visitor to be directed to after comment submission, simply add a hidden field to your comment form, as follows:

{exp:comment:form}
<-- Other comment form fields -->
<input type="hidden" name="sl_comment_redirect" value="http://target-url.com/">
{/exp:comment:form}

Support

Support is provided via this thread on the ExpressionEngine forums.

License

SL Comment Redirect is made available under a Creative Commons Attribution-Share Alike 3.0 Unported License.

Change log

1.0.0 (released 15th July, 2009)
  • Initial release.

Need a custom ExpressionEngine addon?
Find out about our ExpressionEngine development services.

EE addons

Other goodies

Copyright © Experience Internet. The header background image is part of Sink or Swim, copyright © Michel Keck.