XF 1.5 User account settings custom error page

Parsnip

Active member
I am trying to make an error display when non-valid (not yet approved) users attempt to access the 'People You Ignore' panel in their account settings, identical to the one displayed for 'People You Follow'.

So far I've added this conditional which is working...

Code:
<xen:if is="{$visitor.user_state} == 'valid'">

… template content ...

<xen:else />
<xen:title>Error</xen:title>
Your account must be confirmed before you can ignore any members.
</xen:if>

However it's not displaying the error page in the same way. I'd like it to display like this..

error-follow.webp

But what I'm getting is this..

error-ignore.webp

Is it possible to remove all that side bar stuff and just have a simplified error page in the same style as the others?
 
I decided on a difference approach that will do for now.

Code:
<xen:title>{xen:phrase people_you_ignore}</xen:title>

<xen:if is="{$visitor.user_state} == 'valid'">

… template content ...

<xen:else />
You are not ignoring any members.
</xen:if>
 
Back
Top Bottom