The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Moving the Search Bar
Hi
How do I move the search bar Above the Forums instead of the Navbar? Thanks. |
#2
|
|||
|
|||
Edit the navbar template.....
|
#3
|
|||
|
|||
What code do I need to edit & where would I put it?
|
#4
|
||||
|
||||
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. |
#5
|
|||
|
|||
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> |
#6
|
|||
|
|||
bump
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|