Redirection to custom page on not allowed action

Hello,

 

I'm trying to set a redirection to a custom page when an action is blocked by the membership level.

 

For example, your standard membership does not allow you to send mail, and when you are trying to do it, then instead of the message "Your membership level does not allow you to perform this action", you get a redirection to a custom membership subscription page...

 

Any idea how to do this ?

Quote · 24 Oct 2010

Here is my solution, i suggest to add this code to the language key, here is an exemple:

 

'_ACTION_NOT_ALLOWED' => '<div style="width: 80%">Your current membership (<b>{2}</b>) doesn\'t allow you to <b>{1}</b>.</div>',

Change it to:

 

'_ACTION_NOT_ALLOWED' => '<div style="width: 80%">Your current membership (<b>{2}</b>) doesn\'t allow you to <b>{1}</b>.<meta http-equiv="refresh" content="0; url=http://site.com/yourpage.html" /></div>',

Quote · 24 Oct 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.