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.

edited January 2012 in Vanilla 2.0 - 2.8

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:
«1

Answers

  • @wuf606 now this one :-) Help me with this one!

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited January 2012

    Sorry - tried to edit and it double posted...

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited January 2012

    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.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    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

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    Look for the word Search!

  • @As22

    I checked mine, it's all there...

  • edited January 2012

    @jongos @whu606 i have this.

    <div id="Body">
    
       <div id="Content">{asset name="Content"}</div>
       <div id="Panel">{asset name="Panel"}</div>
    

    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..

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    As22 - which theme are you using?

  • edited January 2012

    public_vforg @whu606

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    OK, that doesn't seem to have a search box as default.

    Is there any particular reason you are using that theme?

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    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.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    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

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    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?

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited January 2012

    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!

Sign In or Register to comment.