SL Comment Redirect
Automatically redirect visitors to the URL of your choosing after comment submission.
Overview
Download
SL Comment Redirect, v1.0.0
(ZIP, 8KB)
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:
- Extract the ZIP file.
- Copy the
system/extensions/ext.sl_comment_redirect.phpfile to your/system/extensions/directory. - Copy the
system/language/english/lang.sl_comment_redirect.phpfile to your/system/languages/english/directory. - 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.
- Initial release.
Need a custom ExpressionEngine addon?
Find out about our ExpressionEngine development services.