Search Bar Above Forum [like VanillaForums.org]
Hi Everyone,
I would like to add the search bar above my forum exactly as it is here on VF.
Could somebody assist me with this simple change?
I am using the Vanilla default theme.
I would like to add the search bar above my forum exactly as it is here on VF.
Could somebody assist me with this simple change?
I am using the Vanilla default theme.
Tagged:
0
Best Answer
-
ntuyelik
New
I make it by adding the following code as an announce message, here is my code ;
You can edit it as you want....<center> <div class="SearchForm"> <form action="/search" method="get"> <div> <input id="Form_Search" class="InputBox" type="text" value="herkesuzman'da ara..." name="Search" onfocus="if (this.value==this.defaultValue) this.value='';"> </div> </form> </div> </center>0
Answers
public function Base_Render_Before($Sender) {if (in_array(strtolower($Sender->ControllerName), array('discussionscontroller', 'categoriescontroller')))
$Sender->AddModule('DiscussionSearchModule');
}
The default theme doesnt seem to have a hooks file, How do I add this?
You can edit it as you want....
<center> <div class="SearchForm"> <form action="/search" method="get"> <div> <input id="Form_Search" class="InputBox" type="text" value="herkesuzman'da ara..." name="Search" onfocus="if (this.value==this.defaultValue) this.value='';"> </div> </form> </div> </center>