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

Template for navigation bar

Discussion in 'Troubleshooting and Problems' started by fredrikse, Oct 10, 2012.

  1. fredrikse

    fredrikse Active Member

    Hi,

    In what template (as seen in the picture) can "Watched threads" be found?

    watched_thread.JPG
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    My work dev machine is down, but you'd find it like this:

    Admin CP > Appearance > Search Templates > Search for content in templates: "watched_threads"

    That may bring up more than one result, but you'll probably realise quite easily which template it is (hint: it's in the navigation template :p)

    So the theory behind this is you're searching for the text watched_threads and you are searching for this because the phrase name for Watched Threads is probably 'watched_threads' so searching for that will find any template that contains {xen:phrase watched_threads} :)
     
    fredrikse likes this.
  3. fredrikse

    fredrikse Active Member

    Thanks! (y)

    The template I was looking for was navigation and the code was:

    PHP:
    <!-- forums -->
            <
    xen:if is="{$tabs.forums}">
                <
    li class="navTab forums {xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}">
             
                    <
    a href="{$tabs.forums.href}class="navLink">{$tabs.forums.title}</a>
                    <
    a href="{$tabs.forums.href}class="SplitCtrl" rel="Menu"></a>
                 
                    <
    div class="{xen:if {$tabs.forums.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}">
                        <
    div class="primaryContent menuHeader">
                            <
    h3>{$tabs.forums.title}</h3>
                            <
    div class="muted">{xen:phrase quick_links}</div>
                        </
    div>
                        <
    ul class="secondaryContent blockLinksList">
                        <
    xen:hook name="navigation_tabs_forums">
                            <
    xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'forums/-/mark-read', $forum, 'date={$serverTime}'}" class="OverlayTrigger">{xen:phrase mark_forums_read}</a></li></xen:if>
                            <
    xen:if is="{$canSearch}"><li><a href="{xen:link search, '', 'type=post'}">{xen:phrase search_forums}</a></li></xen:if>
                            <
    xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'watched/threads'}">{xen:phrase watched_threads}</a></li></xen:if>
                            <
    li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li>
                        </
    xen:hook>
                        </
    ul>
                    </
    div>
                </
    li>
            </
    xen:if>
     
    Chris D likes this.
  4. fredrikse

    fredrikse Active Member

    With help of TMS it was a breeze to add a conditional check :)
     

Share This Page