vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Add search in this forum to forumhome (https://vborg.vbsupport.ru/showthread.php?t=319037)

hazem_aliraqi 06-10-2015 09:00 PM

Add search in this forum to forumhome
 
1 Attachment(s)
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

concepts 06-17-2015 06:09 PM

would much rather like this as a plugin, ...yeh, I'm lazy. Easy deactivation. lol

eisb?renforum 07-09-2015 05:40 PM

Works fine for admins but not for registered users (maybe because hidden subforums)... Breaks skin/lay-out for registered users..

Black Snow 07-10-2015 11:53 AM

1 Attachment(s)
I have modified this code and placed it a bit better. Works find now and doesn't mess up the theme.

eisb?renforum 07-12-2015 06:29 AM

Please can you share the modified version?


All times are GMT. The time now is 10:41 PM.

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.01383 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete