Quantcast

Jump to content

» «
Photo

Making a search page

5 replies to this topic
MiNdLeSs
  • MiNdLeSs

    Hustler

  • Members
  • Joined: 26 Apr 2004

#1

Posted 18 April 2005 - 08:27 PM Edited by MiNdLeSs, 19 April 2005 - 12:49 AM.

I'm using the autoindex php script and have search enabled. I'm wondering if it's possible to make a search page elsewhere on the site and when you search it will search using the autoindex search function. I noticed a search.php in the classes folder of autoindex, but thats it.

Also, how would i change the colors to green and white? im kinda clueless about php

Samutz
  • Samutz

    if ($lol) { die(rofl()); }

  • Members
  • Joined: 17 Sep 2003

#2

Posted 18 April 2005 - 09:28 PM

Just what is "the autoindex php script"?

MiNdLeSs
  • MiNdLeSs

    Hustler

  • Members
  • Joined: 26 Apr 2004

#3

Posted 19 April 2005 - 12:49 AM

sorry for not being specific-
http://autoindex.sourceforge.net/

Samutz
  • Samutz

    if ($lol) { die(rofl()); }

  • Members
  • Joined: 17 Sep 2003

#4

Posted 19 April 2005 - 02:26 AM

Best I can tell is to just make a copy of the form (just html, no php required) and stick it on any page you want.

CODE
<form method='get' action='/autoindex/index.php?'>
<p>
<input type='text' name='search' value='' />
<input type='hidden' name='dir' value='' /><br />
<select name='searchMode'>
<option value='f'>Files</option>
<option value='d'>Folders</option>
<option value='fd'>Both</option>
</select>
<input type='submit' value='Search' class="button" />
</p>
</form>


Here's an example:
http://bluehydraro.h...utz/search.html

Just change '/autoindex/index.php?' if needed.

MiNdLeSs
  • MiNdLeSs

    Hustler

  • Members
  • Joined: 26 Apr 2004

#5

Posted 19 April 2005 - 11:03 AM

thanks! smile.gif
that worked perfectly.
for the colors would i edit the default.css?

Samutz
  • Samutz

    if ($lol) { die(rofl()); }

  • Members
  • Joined: 17 Sep 2003

#6

Posted 19 April 2005 - 03:37 PM

For the colors of the autoindex pages, yes. Or you can put them directly into the page via html.
For the colors of the page with the extra search thing, you'd have to put them in directly, or add the code in the header that calls the css to be used.
CODE
<link rel="stylesheet" href="stylesheet.css" type="text/css" title="AutoIndex Default" />




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users