Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 21

BulliesofNCCurtisOdenericgilletteesttc74 +16 guests

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:

Comments

  • Posts: 32

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

  • Posts: 346

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

  • Posts: 346

    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.

  • Posts: 32

    No, Its not there.

  • Posts: 346

    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.

  • Posts: 32

    default.master.php is there but there is not like searchForm

  • Posts: 346

    Look for the word Search!

  • Posts: 78

    @As22

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

  • Posts: 32

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

  • Posts: 346

    As22 - which theme are you using?

  • Posts: 32

    public_vforg @whu606

  • Posts: 346

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

    Is there any particular reason you are using that theme?

  • Posts: 346

    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.

  • Posts: 32

    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.

  • Posts: 346

    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?

  • Posts: 32

    I have total of 3 files. 1. .DS_Store 2. default_master.tpl 3. old_default.master.php

  • Posts: 346

    Why have you chosen the vforge theme, as opposed to the current one?

  • Posts: 32

    @whu606 what do u mean by current one? Which one are you talking about?

  • Posts: 346

    I think you must be using an old version of Vanilla.

    The current version is 2.0.18.1

  • Posts: 32

    :( No i am using 2.0.18.1 . Installed yesterday only!

  • Posts: 346

    Then how did you end up with the vforge theme as your custom theme?

    You must have chosen it!

  • Posts: 32

    yes i downloaded it from addon section. I like the UI thats y.

  • Posts: 346

    I'm baffled then.

    I've got the same version, I've downloaded vforge, and I don't have a search box until I put one in.

  • Posts: 32

    Can u please let me know if you switch to category view then also u dont have search ? and if switch to all discussion section then also?

  • Posts: 346

    OK - got rid of all my other themes and I can see the big search box now. Not sure where it is called from, but you can get rid of it using the custom.css file, and the same technique as for the toggle box in the other thread.

Sign In or Register to comment.