vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Moving the Search Bar (https://vborg.vbsupport.ru/showthread.php?t=244942)

shempsall2009 06-20-2010 10:02 AM

Moving the Search Bar
 
Hi

How do I move the search bar Above the Forums instead of the Navbar?

Thanks.

ChopSuey 06-20-2010 02:29 PM

Edit the navbar template.....

shempsall2009 06-20-2010 07:19 PM

What code do I need to edit & where would I put it?

borbole 06-20-2010 07:45 PM

Quote:

Originally Posted by shempsall2009 (Post 2056594)
What code do I need to edit & where would I put it?

This is the code you need to remove the search from the navbar template.

HTML Code:

<vb:if condition="$vboptions['enablesearches']">
        <div id="globalsearch" class="globalsearch">
                <form action="search.php?do=process" method="post" id="navbar_search" class="navbar_search">
                        <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
                        <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.png" 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>


As to where to put it, you will need to be a bit more specific than "above the forums". A screenshot of where you want to move it would be even better.

shempsall2009 06-21-2010 09:54 AM

I have now change my mind and I have created a Forum Block to place Search Box in...

I have copied the above code in the "Specify content you want to display." and it's not working...

Any Ideas?

--------------- Added [DATE]1277136905[/DATE] at [TIME]1277136905[/TIME] ---------------

I have managed to put the Search in ForumBlock...

But now When I search it says : Your submission could not be processed because a security token was invalid...

I have tried

<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
and
<input type="hidden" name="securitytoken" value="$bbuserinfo [securitytoken]" />

Please can someone tell me where I am going wrong???

This is my full code:

HTML Code:

<vb:if condition="$vboptions['enablesearches']">
        <div id="globalsearch" class="block_html">
                <form action="search.php?do=process" method="post" id="navbar_search" class="block_html">
                        <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
                                                <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="http://www.******.com/******/images/buttons/search.png" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
                </form>
                <ul class="navbar_advanced_search">
                        <li><a href="http://www.*****.com/****/search.php">Advanced Search</a></li>
                </ul>
        </div>
        </vb:if>


shempsall2009 07-10-2010 10:20 AM

bump


All times are GMT. The time now is 07:03 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.01017 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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