Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

  • Admin Junkies is proud to announce 📣 an awesome ☀️ summer special on ✍️ Content Bundles for YOUR forums! Kickstart your discussions with a Content Bundle. For the entire summer through August, use the promo code AJSUMMER 🎉 to receive 50% 🎁 off your content bundle. For example, a package that normally only costs 100 Credits will only cost 50 💰 credits. Full news here.

Search This Thread

Joined
Mar 1, 2012
Messages
128
Credits
1,310
Link to my resource on xenforo. http://xenforo.com/community/resources/search-this-thread.644/


This will you allow you to drop down search when viewing the thread, to search it.

Just want everybody to know, that you can't search the first post in a thread. Only the other posts.

Admin CP -> Appearance -> Your Style -> Templates -> Thread_view

Scroll down till you see:

Code:
<div class="pageNavLinkGroup">
    <div class="linkGroup SelectionCountContainer">
        <xen:if hascontent="true">

Add this after the <xen:if hascontent="true">

Code:
<div class="Popup">
            <a href="{xen:link search, '', 'type=post', 'thread_id={$thread.thread_id}'}" method="post" rel="Menu">{xen:phrase search_this_thread_only}</a>
            <div class="Menu JsOnly formPopup">
                <form action="{xen:link 'search/search'}" method="post">
 
                <div class="primaryControls">
                    <input type="search" name="keywords" value="" class="textCtrl" placeholder="{xen:phrase search}..." results="0" title="{xen:phrase enter_your_search_and_hit_enter}" />
                </div>
 
<dl class="ctrlUnit fullWidth secondaryContent">
                            <dt></dt>
                            <dd><ul>
                              <li><label><a href="{xen:link search/search, '', 'type=post', 'thread_id={$thread.thread_id}', 'users={$visitor.username}'}">{xen:phrase your_content}</a></label></li>
                            </ul></dd>
                        </dl>
                <div class="secondaryControls">
                    <dl class="ctrlUnit submitUnit fullWidth">
                    <dt></dt>
                    <dd><input type="submit" value="{xen:phrase find_now}" class="button primary"></dd>
                    </dl>
 
                    <a href="{xen:link search, '', 'type=post', 'thread_id={$thread.thread_id}'}" class="advSearchLink">{xen:phrase advanced_search}</a>
                </div>
 
                <input type="hidden" name="type" value="post" />
                <input type="hidden" name="type[post][thread_id]" value="{$thread.thread_id}" />
                <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
 
                </form>
            </div>
        </div>

Save and your done! :)

It would be nice if one of you (if you have a xenforo license), review it and rate it with 5 full stars. :)
 
Advertisement Placeholder

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in
Who read this thread (Total readers: 0)
No registered users viewing this thread.

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 5 17.2%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 24 82.8%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds