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: Bypass the message template entirely on successful actions

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

robmolaus

Sep 06, 2015

Description:
The main reason why I purchased this Add-on was I would like to skip the notification when you login that it was successful. 

Detailed steps to reproduce the issue:
1.I’ve ticked off the ‘Bypass the message template entirely on successful actions?’
2.Still getting ‘Thank You! You are now logged in.’ when I try to login
3.

#1

BoldMinded (Brian)

What type of form are you submitting? Is it a native form or something like User or Zoo Visitor modules?

#2

BoldMinded (Brian)

Did you add a redirect parameter to your login form? I just tested and confirmed CSM is working as intended. Please refer to the EE docs for the login form and add a redirect=”” parameter to your form. After logging in you’ll immediately be redirected to that page and bypass the message page.

#3

BoldMinded (Brian)

If after adding a redirect parameter and it still isn’t working, uninstall all add-ons except for CSM to see if something else is conflicting.

#4

BoldMinded (Brian)

Please respond in the ticket and not tee email. Did you disable all other addons?

#5

robmolaus

Comment has been marked private.

#6

robmolaus

Comment has been marked private.

#7

BoldMinded (Brian)

Back up your db then uninstall, or create a new we environment to replicate the issue. Please see the terms and conditions at the bottom of this page.

#8

robmolaus

Hi,

just uninstalled all the modules and extensions and tried to login, it asked me for module Favourites (by Solspace) to be installed to be able to login, so I installed it and still I got the welcome message when I login.

#9

BoldMinded (Brian)

Thank you, but can you get an environment where only CSM is installed, no other addons. Need to be 100% sure there are no conflicts.

#10

BoldMinded (Brian)

I just installed a fresh copy of EE 2.10.1 and CSM. I was unable to replicate the issue and can confirm that CSM redirects to the page defined in the return=”” parameter on the login page and bypasses the message template. This is the form I was using: https://ellislab.com/expressionengine/user-guide/add-ons/member/#login-form-tag

There must be something else wrong in your environment, which is why I’m asking you for a clean install.

#11

robmolaus

Hi,

If I use

{exp:member:login_form return="{segment_1}/{segment_2}/{segment_3}"}

it does not work, but using the code

{exp:member:login_form return="site/index"}

it works.

#12

BoldMinded (Brian)

Its doing that because those segment values mean you’re redirecting to the same page your login form is on, and to prevent potential redirect loops it will not redirect to itself. If you change it to return=”{segment_1}/{segment_2}/{segment_3}?success” it should work. You can change success to whatever you want, just make sure the URL is different than the current page.

#13

BoldMinded (Brian)

The return parameter needs to be different than the current page you are on. This is the behavior that had been in CSM for a couple years now with no issues. I don’t feel a change is necessary in CSM as this is an easy work around, and I don’t want to break anyone else’s installs.

Login to reply