PDA

View Full Version : second searchbox in navbar


JoergZ
16 Nov 2009, 17:31
S O L V E D


Hello together,

after some time absense from the vB-code (obviusly too long absense :rolleyes:) I am working now a little bit on the vB4.

What I want to do is to place a second search box in the navbar, to do direct from there membersearch. (See attached screenshot, that's how i want it).

I tried a little bit this and that, but nothing really works. Don't get me wrong, I don't ask for a complete coded solution, but maybe someone can "bring me on the way" and give me some hints. (The searchobx itself is working, but the position is not correct)

Thanks for your help.


Best regards

Jörg



Edit

I attached a second screenshot, where you can see, what my best result was. The problem is, I can't get the second searchbox left of the original search-box. Currently I add the code for "my" searchbox here:

Template "navbar"

above



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Edit 2

O.k., leave me alone with the problem and I will solve it :D

No, seriously, I nearly made it. After creating additionaly CSS-entries, it's working. The only thing is, that the position is now in a fixed distance to the last menu-button. I would like it more, to have it fixed with a special distance to the right searchbox. But that's a small detail without priority.

If someone is interested, I can post how to make the change.

milsirhc
16 Nov 2009, 22:21
I'm interested! :)

JoergZ
17 Nov 2009, 08:17
I'm interested! :)


O.k., here we go.

In template "navbar"

find



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



add above



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




In template "vbulletin-chrome.css"

find



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



add above



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




To change the position of the new box change more left or right, change the parameter width here:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------








Known issues:
New searchbox is fixed to the left menu-buttons, not to the right searchbox. That has the effect, when you resize your browser-window and make it very small, there is a point that the original searchbox and the new searchbox are overlayed.
In the CMS the white input-box for member-search is bigger (some pixels higher) than in the forum. But that's probably a beta-problem of vb4 and will disappear when we come closer to vb4 goldSuggestions how to fix the box relative to the right searchbox are welcome :)


Jörg