XF 1.5 Show Current Activity on Account Menu

Amaury

Well-known member
I'm trying to add this to the account menu, but I'm having two issues:
  • Even though I inserted it in the same spot, it's not sitting next to "Show online status" like "Log Out" does, but rather below.
  • I can't get it to actually work.

Menu 1.webp

What am I doing wrong?

This is how the code is for that area in the navigation_visitor_tab template:

Rich (BB code):
<ul class="col1 blockLinksList">
                    <li>           
                        <form action="{xen:link account/toggle-visibility}" method="post" class="AutoValidator visibilityForm">
                            <label><input type="checkbox" name="visible" value="1" class="SubmitOnChange" {xen:checked $visitor.visible} />
                                {xen:phrase show_online_status}</label>
                            <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
                            <label><input type="checkbox" name="activity_visible" value="1" class="SubmitOnChange" {xen:checked $visitor.activity_visible} />
                                {xen:phrase show_your_current_activity}</label>
                            <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
                        </form>
                    </li>
                </ul>
 
Code:
<ul class="col1 blockLinksList">
                    <li>           
                        <form action="{xen:link account/toggle-visibility}" method="post" class="AutoValidator visibilityForm">
                            <label><input type="checkbox" name="visible" value="1" class="SubmitOnChange" {xen:checked $visitor.visible} />
                                {xen:phrase show_online_status}</label>
                            <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
                        </form>
                    </li>
                    <li>
                             <label><input type="checkbox" name="activity_visible" value="1" class="SubmitOnChange" {xen:checked $visitor.activity_visible} />
                                {xen:phrase show_your_current_activity}</label>
                             <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
                    </li>
                </ul>
 
Back
Top Bottom