1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 User account settings custom error page

Discussion in 'Styling and Customization Questions' started by Beanjam, Feb 17, 2016.

  1. Beanjam

    Beanjam 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.JPG

    But what I'm getting is this..

    error-ignore.JPG

    Is it possible to remove all that side bar stuff and just have a simplified error page in the same style as the others?
     
  2. Beanjam

    Beanjam Active Member

    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>
     

Share This Page