The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Search box
You know the search box on the navbar (the drop down one)
Is there a way for me to copy the code for that but change it so i can have 2 search boxes. So on the 2nd search box if users entered a name for example it would search **********/pictures.php?let=demi So i would need to swap the 2nd search box for my code above which would just search my pictures. |
#2
|
||||
|
||||
Similar to how vb.com does it with the forums and the projects? Sure, I'd take a look at that code and see how they did it (just two different forms I would guess).
|
#3
|
|||
|
|||
Thanks for quick reply
ive tried to look for the code - do u know exactly which part i need to copy so i can add a new search box to the drop down menu Lynne. |
#4
|
||||
|
||||
Well, I'm not gonna copy vb.com's source here, you can see it yourself on their page. Just look at everything between <br><!-- header quick search form --><br> and <br><!-- / header quick search form --><br><br>That's all the drop-down menu content. Each one of the searches has it's own form with all of it's own form action and 'hidden' fields and such.<br>
|
#5
|
|||
|
|||
ive had a look in navbar is a lot of search code there.
|
#6
|
||||
|
||||
I would start by just copying the regular search code and changing the form action for your pictures.php page and then see what happens. Look at the pictures page and see what variables it expects to have passed and then change the hidden input lines to carry those variables.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|