Log in

View Full Version : Forum Home Enhancements - Header Search (vb.org search style)


christian8a
09-05-2009, 10:00 PM
This is a template mod similar to vb.org. Is not a copy since on your forums you have the same options, just move it to your header section or navbar, etc...

I added it right next to the logo

Install

Find the place where you want it to be and paste the following code...
Replace the name of your forums and their respective forum id's (option value)

Demo

http://www.extremecorvettes.com

<!-- forum search -->
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

<table cellpadding="10" cellspacing="0" border="0" width="100%" align="center">
<tr><td align="right"><div style="white-space:nowrap">
<input type="text" class="bginput" name="query" size="25" /> <select name="forumchoice[]">
<option value="-1" selected="selected" class="time">All Forums</option>
<option value="5" class="time">Common Interest</option>
<option value="13" class="time">Cool Stuff</option>
<option value="8" class="time">Classifieds</option>
</select> <input name="search" value="Search" type="submit" class="bginput" />
</div></td></tr>
</table>

</form>
<!-- /forum search -->

sphinx
09-06-2009, 04:46 PM
excellent will try

9bz
09-06-2009, 05:19 PM
nice one works great...

9bz
09-11-2009, 01:57 PM
how do i change the color of my forum txt in the drop down box

christian8a
09-11-2009, 03:25 PM
where it says <option value="-1" selected="selected" class="time"> change the class to Alt1 or Alt2 or smallfont

9bz
09-11-2009, 03:34 PM
thx's christian8a for the fast reply, works great,,,,,,,,,,,, #80)

Binoy
09-13-2009, 12:08 AM
thanx . installed

abouahmed
09-13-2009, 08:02 PM
nice code

thanx

cagbaazee
12-19-2009, 05:35 PM
Hi

I have install it and it appear on the top right .

It display fine But there is one error - search Title only or Search Entire words is not display on my page

Do reply.

Warlord
12-22-2009, 11:49 PM
Installed, but I put it in my footer. Good work.

Raptor
12-23-2009, 09:44 AM
It would be better to have correct forum variables in the code - then no need for editing for other users

ravenfaust
12-23-2009, 02:31 PM
any way to make it so its in a custom box so it blends with the theme better?
and also where would be a good spot to place this, in header /navbar etc?

Cloverfield
01-10-2010, 10:08 AM
gives me security token error on my forum after upgradation to 3.8.4 from 3.8.2.

Your submission could not be processed because a security token was invalid.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Please guide.

JamesC70
01-10-2010, 03:48 PM
gives me security token error on my forum after upgradation to 3.8.4 from 3.8.2.

Your submission could not be processed because a security token was invalid.

Verify that the security token code still exists in your template:

... copied from first post ...
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

NinjaKane
01-29-2010, 03:51 PM
Awesome. added above my navbar. thanks!

Log on
02-02-2010, 05:46 AM
nice one

thank you

RedHacker
03-05-2010, 09:23 AM
Any release for vBulletin 4....?

L0rd-81
03-27-2010, 07:36 PM
Thank You for this :)
But i have a Problem.
In the Select Tab i see the Last Forum in this Drop Box is write.

How i can change this the i see "Alle Foren" as first?

Example you can see on my Forum www.wm-apps.de/forum

Please help me, thank you :)

<!-- forum search -->
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

<table cellpadding="10" cellspacing="0" border="0" width="100%" align="center">
<tr><td align="right"><div style="white-space:nowrap">
<input type="text" class="bginput" name="query" size="25" /> <select name="forumchoice[]">
<option value="-1" selected="selected" class="time">Alle Foren</option>
<option value="145" selected="selected" class="time">ASUS</option>
<option value="132" selected="selected" class="time">HP</option>
<option value="46" selected="selected" class="time">HTC</option>
<option value="69" selected="selected" class="time">LG</option>
<option value="84" selected="selected" class="time">Samsung</option>
<option value="100" selected="selected" class="time">Sony Erricsson</option>
<option value="1095" selected="selected" class="time">Multimedia & Grafik</option>
<option value="1379" selected="selected" class="time">Desktop & Shell</option>
<option value="1096" selected="selected" class="time">Komm. & Internet</option>
<option value="1097" selected="selected" class="time">System & Entwicklung</option>
<option value="1342" selected="selected" class="time">Programme</option>
<option value="1099" selected="selected" class="time">Spiele</option>
<option value="1371" selected="selected" class="time">Navigation</option>
<option value="1098" selected="selected" class="time">Office</option>
<option value="1100" selected="selected" class="time">Styles WM 6.1</option>
<option value="1101" selected="selected" class="time">Styles & Modding</option>
<option value="1377" selected="selected" class="time">Icon Pack</option>
<option value="1102" selected="selected" class="time">Wallpaper</option>
<option value="1387" selected="selected" class="time">Klingelt?ne</option>
<option value="1382" selected="selected" class="time">WM7 Styles</option>
<option value="1381" selected="selected" class="time">WM7 Icons</option>
<option value="784" selected="selected" class="time">NetCologne</option>
<option value="59" selected="selected" class="time">T-Mobile</option>
<option value="60" selected="selected" class="time">Vodafone</option>
<option value="61" selected="selected" class="time">O2</option>
<option value="62" selected="selected" class="time">E-Plus</option>
</select> <input name="search" value="Direktsuche" type="submit" class="bginput" />
</div></td></tr>
</table>

</form>
<!-- /forum search -->

JamesC70
03-28-2010, 07:35 PM
How i can change this the i see "Alle Foren" as first?

Remove the code selected="selected" from all options other then the preferred default. See the code box for proper usage.

<input type="text" class="bginput" name="query" size="25" /> <select name="forumchoice[]">
<option value="-1" selected="selected" class="time">Alle Foren</option>
<option value="145" class="time">ASUS</option>
<option value="132" class="time">HP</option>
<option value="46" class="time">HTC</option>
<option value="69" class="time">LG</option>
<option value="84" class="time">Samsung</option>

L0rd-81
03-29-2010, 08:33 PM
Thank you for your help ;)

kjsmith84
05-05-2010, 04:32 PM
is there any way to make this into a vba module ore maybe put it in the location here in the pic I attached?

RobbieZ
05-12-2010, 11:15 PM
Tagged . Thanks

stevieb
01-18-2013, 06:53 PM
The following code works a dream loading it in the (Style Manager) -> Navbar which adds the search towards the right (opposite the logo) in my header.

<!-- New Header Search Input -->
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="text" class="bginput" name="query" size="20" value="$search[query]"/> <input type="submit" value="Search Forum" />
</form><br><span align="right" class="smallfont"><a href="search.php?">Advanced Search</a>&nbsp;&nbsp;</span>

<!-- New Header Search Input -->

mahmo0od
01-21-2013, 09:48 PM
thank u friend
i will try that code

autoescala
01-30-2013, 02:34 PM
Any way of apply this mod to a 4.12 ?? Best Regards