SEARCH BOX

hakalugi

Joined: 2002-08-23
Posts: 14
Posted: Fri, 2002-08-23 03:12

is there a way to make it appear on all of the pages?

(first post 4 me- let me know if this should be in the config section)

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-08-23 04:28

Well, there is no config option for that, but you should be able
to copy the code from albums.php and try inserting it into the
appropriate header files in html_wrap. If that fails, you can tack
it onto the the view_album.php and view_photo.php files where
appropriate.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-08-23 15:44

Just to test, I copied the search bit from albums.php into html_wrap/album.header
and now have the search bar on all album pages. You could add it to the
photo.header as well most likely and have it on every page.

 
hakalugi

Joined: 2002-08-23
Posts: 14
Posted: Mon, 2002-09-02 05:21

awesome, thanks.

 
jeremy
jeremy's picture

Joined: 2003-02-15
Posts: 49
Posted: Sun, 2003-02-16 00:39

Sorry for being a newbie, but what code did you copy over from album.php to you header file. I tried the following but it did not work.<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> </TD></TR></TABLE><!-- BBCode End --><?php
if (!strcmp($gallery->app->default["showSearchEngine"], "yes")) {
?>
<table width=100% border=0 cellspacing=0>
<tr><?php echo makeFormIntro("search.php"); ?>
<td valign="middle" align="right">
<span class="admin"> Search: </span>
<input style="font-size=10px;" type="text" name="searchstring" value="" size="25">
</td>
</form>
</tr>
?>

 
jeremy
jeremy's picture

Joined: 2003-02-15
Posts: 49
Posted: Sun, 2003-02-16 01:52

I figured that part out. Just paste the following into you album header
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
<table width=100% border=0 cellspacing=0>
<tr><?php echo makeFormIntro("search.php"); ?>
<td valign="middle" align="right">
<span class="admin"> Search: </span>
<input style="font-size=10px;" type="text" name="searchstring" value="" size="25">
</td>
</form>
</tr>
</TD></TR></TABLE><!-- BBCode End -->