All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: No redirecting after message.

Status Resolved
Add-on / Version Custom System Messages 2.5
Severity Trivial
EE Version 2.7

Toby Callinan

Sep 27, 2013

Hi ya Brian,

I’m just setting up CSM for the first time. I believe it is all set up OK.

When I post a comment that is due for moderation, I get the message no problem, but it doesn’t automatically return me to the previous page. I have to click on the return button.

I presume I have set this up wrong somewhere, or the code isn’t quite right.

Here is what I have

{if csm:error == false}
     <div class="panel panel-danger">
    <div class="panel-heading">System message:</div>
    <div class="panel-body">
     {csm:content} <br>
     {link}
    </div>  
   </div>
  {if:elseif csm:error == true}
      <div class="panel panel-danger">
    <div class="panel-heading">System message:</div>
    <div class="panel-body">
     {csm:content}
    </div>
   </div>
  {if:else}
   <div class="panel panel-danger">
    <div class="panel-heading">{heading}</div>
    <div class="panel-body">
     {csm:content} <br>
     {link}
    </div>
   </div>
  {/if}

I’m using Stash which is my custom template. It then pulls in a partial with the above code.

Set up:
Enable ajax responses?  NO
Bypass the message template entirely on successful actions?  NO
Redirect to the defined error template?  NO
Submission Error & General Error site/system-message
Accessibility = Show both links

The message I am receiving is:

System message:

Your comment will be reviewed by a moderator for approval.

Click here if you are not redirected automatically

Thanks very much and sorry for such a trivial questions - Just can’t get it to work.

Cheers

#1

BoldMinded (Brian)

Hi, Toby. If you want it to redirect automatically you’ll need to add the {meta_refresh} or {csm:meta_refresh} tag in the <head> of your document.

Login to reply