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

Lack of Interest Hook the "Log Out" Link into the Rest of the Navigation Sidebar

Discussion in 'Closed Suggestions' started by Amaury, Feb 5, 2014.

  1. Amaury

    Amaury Well-Known Member

  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Under what category?
     
  3. Amaury

    Amaury Well-Known Member

    Your Account seems the most appropriate.
     
  4. Amaury

    Amaury Well-Known Member

    For anyone who may want to move the Log Out link in the navigation sidebar and have it connect into another area, in the template account_wrapper, find this line:

    Code:
    <li class="section">
                    <ul>
                        <li><a href="{xen:link logout, '', '_xfToken={$visitor.csrf_token_page}'}"
                            class="LogOut primaryContent">{xen:phrase log_out}</a></li>
                    </ul>
                </li>
    And comment it out.

    Then below this line:

    Code:
    <li><a
                            class="primaryContent"
                            href="{xen:link watched/forums}">{xen:phrase watched_forums}</a></li>
                        </xen:hook>

    Add this:

    Code:
    <li><a href="{xen:link logout, '', '_xfToken={$visitor.csrf_token_page}'}"
                            class="LogOut primaryContent">{xen:phrase log_out}</a></li>
    The end result, which will place it under the Your Account section:

    upload_2015-2-6_15-53-27.png

    Credit to @mistypants [:)] for doing this for us around the time I posted this thread, I just never got around to coming back here and posting that. I just realized it while working on our style the last few hours.
     

Share This Page