944,124 Members | Top Members by Rank

Ad:
Dec 5th, 2004
0

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

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
edprush is offline Offline
15 posts
since Nov 2004
Dec 5th, 2004
0

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

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
cscgal is online now Online
13,646 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Configuring Readymade Scripts Forum Timeline: Submitting forms
Next Thread in Configuring Readymade Scripts Forum Timeline: chat room





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC