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) |
|
Posts: 487
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.
Posts: 487
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.
Posts: 14
awesome, thanks.
Posts: 49
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>
?>
Posts: 49
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 -->