Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search Box location change.
I want to place my search box above category. As my homepage is category and want to place it above that. Like in this forum also. I am using public_vforg in which its only in "all discussion" page. So i want it mainly in category page.
Tagged:
0
Answers
@wuf606 now this one :-) Help me with this one!
Sorry - tried to edit and it double posted...
AfaIk that is governed by the default.master.php file.
You should have one in your custom theme's views folder.
Have a look through there and you should find the code.
Then just cut and paste it to where you want it. It may take some experimenting to get it right!
Look at the source code of the page you want it to be like to get the answer.
No, Its not there.
What isn't?
The code or the default.master.php file?
The code is certainly in mine, I've just managed to do what you want.
default.master.php is there but there is not like searchForm
Look for the word Search!
@As22
I checked mine, it's all there...
@jongos @whu606 i have this.
but i checked in another theme which is:
<div id="Body"> <div class="Wrapper"> <div id="Panel"> <div class="SearchBox">{searchbox}</div> {asset name="Panel"} </div> <div id="Content"> {asset name="Content"} </div> </div> </div>
Still with the first one its showing SearchBox.. dont know how..
As22 - which theme are you using?
public_vforg @whu606
OK, that doesn't seem to have a search box as default.
Is there any particular reason you are using that theme?
You need to paste this:
<div class="SearchBox">{searchbox}</div>
between the Body div and the Content div.
You may then need to play with the css to get it as you want it.
I did that but when i open all discussion page i get 2 search boxes one small(added using ur code) and other big(orignal). there must be some other trick i guess.
As22
That's odd. I've downloaded the vforge theme and when I enable it I don't see a search button until I put that code in the default.master.tpl file. You must have made some modification.
What other files do you have in the views folder?
I have total of 3 files.
1. .DS_Store
2. default_master.tpl
3. old_default.master.php
Why have you chosen the vforge theme, as opposed to the current one?
@whu606 what do u mean by current one? Which one are you talking about?
I think you must be using an old version of Vanilla.
The current version is 2.0.18.1
No i am using 2.0.18.1 . Installed yesterday only!