Search field inside albums

Tiger3

Joined: 2008-02-05
Posts: 4
Posted: Tue, 2008-02-05 01:31

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.5.7
Apache version: 1.3.33
PHP version (don't just say PHP 4, please): 4.3.10
Graphics Toolkit:
Operating system: Fedora 3
Web browser/version (if applicable):

Hi, I'm looking to add a search field box in all my albums, not only on the main page. I've found some explanation by searching in the forum, but all I found seam to be out of date or incomplete answer.

Thank

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2008-02-06 20:08

Hello,

Gallery 1.5.7 has a function called 'addSearchForm'.

So if you want to add somewhere the search input field do:
<?php echo addSearchForm(); ?>
or if already inside a <?php ... ?> block do:
echo addSearchForm();

The function is located in lib/content.php if you want to see what it does.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6