vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Navtab Search Box with Options (https://vborg.vbsupport.ru/showthread.php?t=265829)

8thos 06-25-2011 10:00 PM

Navtab Search Box with Options
 
1 Attachment(s)
Create search navtab across all skins, remove search from navbar, disable search box for guests, increase rate of accidental ad clicks due to search being right above ads.


https://vborg.vbsupport.ru/attachmen...1&d=1309067185


Plugin PHP Code:
The code in green is where you can disable search for guests.
The code in red is where you can move the template hook per Allan's Guide.


Code:

// change $allowguests from 'true' to 'false' if you do NOT want guests to see the gallery menu

        $allowguests = false;

/******** NO EDITS below here! ************/
/******************************************/

if ($show['member'] OR $allowguests)
{
        global $vbphrase, $vbulletin, $bbuserinfo;
        $sess = $vbulletin->session->vars['sessionurl_q'];
$template_hook['navbar_after_community'] .= '
<li class="popupmenu nohovermenu forumsearch menusearch" id="forumsearch">
                               

etc...


To remove search from the navbar:

AdminCP/Styles and Templates/ Style Manager / Edit Templates / Navigation and Breadcrumb Templates / navbar

In navbar delete the following code:

Code:

<vb:if condition="$vboptions['enablesearches']">
    <div id="globalsearch" class="globalsearch">
        <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
            <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
            <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
            <input type="hidden" name="do" value="process" />
            <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
            <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="(is_browser('ie') AND !is_browser('ie', 7) AND !is_browser('ie', 8))">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
        </form>
        <ul class="navbar_advanced_search">
            <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
        </ul>
    </div>
    </vb:if>

Read this article if you want to create the plugin yourself: https://vborg.vbsupport.ru/showthread.php?t=265810

I'll add another product later that disables the search bar in navtab for you.

AttalaEA 06-27-2011 04:59 PM

1 Attachment(s)
Hello, Please I would Like to know how do i change the font colors of show posts and advance search because it doesn't appear properly?

See attachment.

Thanks

Attachment 130456

8thos 06-27-2011 05:30 PM

1 Attachment(s)
Quote:

Originally Posted by AttalaEA (Post 2213611)
Hello, Please I would Like to know how do i change the font colors of show posts and advance search because it doesn't appear properly?

See attachment.

Thanks

Attachment 130456

I have attached a version 1.5 to the first post that has the font changed to white.

If you do not want white font, please take a look at the pic attachments. They show where and how to change the colors of Show Threads, Show Posts and Advanced Search.


https://vborg.vbsupport.ru/attachmen...1&d=1309199321

https://vborg.vbsupport.ru/attachmen...1&d=1309199321

AttalaEA 06-28-2011 03:25 AM

Thank You Octavius for your kind and amazing support. :)

8thos 06-28-2011 04:13 AM

Quote:

Originally Posted by AttalaEA (Post 2213893)
Thank You Octavius for your kind and amazing support. :)

Thanks but I haven't figured out how to remove the default Search button through use of a product yet. I will later. I also had to go back and edit the 'how to remove default search box' code.

kylek 06-03-2012 11:39 PM

Looks like it is not working now in 4.2.0 unless I have overlooked something.

dr1 07-22-2012 10:00 AM

Quote:

Originally Posted by kylek (Post 2336315)
Looks like it is not working now in 4.2.0 unless I have overlooked something.

Any update on getting this working 4.2.0 ?

Nirjonadda 07-22-2012 10:29 AM

Quote:

Originally Posted by 8thos (Post 2213909)
I'll add another product later that disables the search bar in navtab for you.

Need mod remove Advanced Search Bar without manual template edit, is it possible to just flat out remover the search bar from the forum navbar?

bzcomputers 08-22-2012 07:50 PM

Would like to use this on 4.2 but can't get it to work. Also how would I move it to be placed on the far right of the navbar row?

bhantugh 08-27-2012 06:09 PM

any update why this does not work with 4.2? thanks


All times are GMT. The time now is 08:41 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.01232 seconds
  • Memory Usage 1,748KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete