How to add redirect to SK2 after comment? (2 posts)

  1. chi_dog
    Posted 11 years ago #

    I recently installed Spam Killer 2 (wonderful at helping with all kinds of spam) but noticed an issue. After a visitor makes a comments, they are left on a page that simply says thank you for your comment.

    The sk2_core_class.php file code has a comment that states
    //TODO redirect to comment page...

    Can someone help me with what code to include to setup a redirect back to the post or even a link for the user to click (preferably the first)?

  2. drdave
    Posted 10 years ago #

    Actually, this is not quite accurate: SK2 does redirect commenters to the original page after they comment. The line of code you mention is only for fringe cases where the commenter has had to fill in a captcha (or other "safety" measures) to complete his posting. This should be a rare occurrence.

    This will be worked on, but is less than trivial to fix (URLs need to be stored in the DB, as a commenter may decide to go fill in the captcha or otherwise unlock the comment, long after it was posted)...

Topic Closed

This topic has been closed to new replies.

About this Topic