Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add search in this forum to forumhome Details »»
Add search in this forum to forumhome
Version: 1.00, by hazem_aliraqi hazem_aliraqi is offline
Developer Last Online: Aug 2019 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.2.2 Rating:
Released: 06-10-2015 Last Update: Never Installs: 7
Template Edits
 
No support by the author.

hello


Add search in this forum to forumhome

you can search in the forum about threads and posts in one forum


How to do this ??



1- open the forumhome_forumbit_level2_post template

2- find this


PHP Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title


3- add this after it



PHP Code:
<li class="popupmenu nohovermenu forumsearch menusearch" id="forumsearch">
                <
h6><a href="javascript://" class="popupctrl" title="search in this ({vb:raw forum.title}) forum about Threads and posts" >{vb:rawphrase search_this_forum}</a>search</h6>
                <
form action="search.php?do=process" method="get">
                <
ul class="popupbody popuphover">
                    <
li>
                        <
input type="text" class="searchbox" name="q" value="{vb:rawphrase search_dots}" />
                        <
input type="submit" class="button" value="{vb:rawphrase search}" />
                    </
li>
                    <
li class="formsubmit" id="popupsearch">
                        <
div class="submitoptions">
                            <
label><input type="radio" name="showposts" value="0" checked="checked" /> {vb:rawphrase show_threads}</label>
                            <
label><input type="radio" name="showposts" value="1" /> {vb:rawphrase show_posts}</label>
                        </
div>
                        <
div class="advancedsearchlink"><a href="search.php?{vb:raw session.sessionurl}search_type=1&amp;contenttype=vBForum_Post&amp;forumchoice[]={vb:raw forumid}" rel="nofollow">{vb:rawphrase advanced_search}</a></div>

                    </
li>
                </
ul>
                <
input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                <
input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                <
input type="hidden" name="do" value="process" />
                <
input type="hidden" name="contenttype" value="vBForum_Post" />
                <
input type="hidden" name="forumchoice[]" value="{vb:raw forumid}" />
                <
input type="hidden" name="childforums" value="1" />
                <
input type="hidden" name="exactname" value="1" />
                </
form>
            </
li




save and enjoy

Download Now

File Type: (7.4 KB, 0 views)
File Type: (11.0 KB, 0 views)
File Type: (12.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Bastien

Comments
  #2  
Old 06-17-2015, 06:09 PM
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Location: Woodland Hills, Ca
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would much rather like this as a plugin, ...yeh, I'm lazy. Easy deactivation. lol
Reply With Quote
  #3  
Old 07-09-2015, 05:40 PM
eisb?renforum eisb?renforum is offline
 
Join Date: Jun 2015
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine for admins but not for registered users (maybe because hidden subforums)... Breaks skin/lay-out for registered users..
Reply With Quote
  #4  
Old 07-10-2015, 11:53 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have modified this code and placed it a bit better. Works find now and doesn't mess up the theme.
Attached Images
File Type: jpg 8494157.jpg (53.5 KB, 0 views)
Reply With Quote
  #5  
Old 07-12-2015, 06:29 AM
eisb?renforum eisb?renforum is offline
 
Join Date: Jun 2015
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please can you share the modified version?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04488 seconds
  • Memory Usage 2,290KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete