954,173 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How did Dani get the "Search" link to go directly...

How did Dani get the "Search" link to go directly to the advanced search page?

Also does the Search field (see the purple-colored bar near the top of the page) perform the same search as on the search.php page?

edprush
Newbie Poster
15 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

I'm a bit confused as to what you're asking. The word "Search" is a direct link to the search.php page. I used CSS to make it not really look like a link, but it's just a standard hyperlink. The search field is in a simple form which calls the search.php page. If you are running a vBulletin board, you could put the following wherever you want:

<form action="search.php" method="post">
	 <input type="hidden" name="do" value="process" />
	 <input type="hidden" name="showposts" value="0" />
	 <input type="text" name="query" />
	 <input type="submit" value="Go" />
</form>


Then, just play around with CSS to make it look the way you want :) Notice that when you do a search, a list of threads is returned. If you change the showposts attribute to 1, a list of individual posts will be returned. Your preference :)

Also, since it's just a regular ol' form - that HTML code can go anywhere ... within a vBulletin template or on a regular HTML page.

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: