Move Bookmarks Menu - Add Bookmarks Icon to user nav menu and remove tab

Move Bookmarks Menu - Add Bookmarks Icon to user nav menu and remove tab 1.0

No permission to download

RobinHood

Well-known member
RobinHood submitted a new resource:

Move Bookmark Menu - Add Bookmarks Icon to user nav menu and remove tab - This contains a few options to control various positions for the bookmarks menu

This is a small add on that will give the admin various additional options to control the location of the bookmarks menu in the nav bar.

You can remove the tab version completely, you can add a link where all the other user account links are, and you can add it to the main user area of the nav in the form of an icon, similar to the conversations and alerts icons.

How do I configure it?
All checkbox options can be found in admin.php?options/groups/moveBookmarks/


What does it...

Read more about this resource...
 
Thank you very much. I like it.
But this seems to be wrong:

Code:
  <modification type="public" template="account_visitor_menu" modification_key="addBookmarksToYourAccountMenuTab" description="Adds bookmark link to 'Your account' visitor menu" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<!--[XF:content_links:bottom]-->]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.addBookmarksToYourAccountMenuTab}">
        <li><a href="{{ link('account/bookmarks') }}" class="menu-linkRow"> {{ phrase('bookmarks') }}</a></li>
        $0
        </xf:if>
        $0]]></replace>
  </modification>
 
Last edited:
Glad you like it :)

Just had a look at the template modification you mentioned and I'm not sure what the issue is?

Seems to work okay and works with the admin option to add a link to the user drop down menu:

1645220681060.webp
 
Screenshot - 2023-01-01T005048.067.webp

The bookmark icon instead of a drop down window is there a way to modify it to show all instead.

So no dropdown, instead go directly to forum.com/account/bookmarks?
 
Code:
  <modification type="public" template="account_visitor_menu" modification_key="addBookmarksToYourAccountMenuTab" description="Adds bookmark link to 'Your account' visitor menu" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<!--[XF:content_links:bottom]-->]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.addBookmarksToYourAccountMenuTab}">
        <li><a href="{{ link('account/bookmarks') }}" class="menu-linkRow"> {{ phrase('bookmarks') }}</a></li>
        $0
        </xf:if>
        $0]]></replace>
  </modification>

$0 two times
 
Back
Top Bottom