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

Reply

Join Date: Nov 2004
Posts: 15
Reputation: edprush is an unknown quantity at this point 
Solved Threads: 0
edprush edprush is offline Offline
Newbie Poster

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

 
0
  #1
Dec 5th, 2004
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?
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,047
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 131
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

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

 
0
  #2
Dec 5th, 2004
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.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Existing Scripts Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC