Gallery Search on Every Gallery Page

dzinn

Joined: 2005-02-09
Posts: 19
Posted: Tue, 2005-02-22 03:51

Hi all,

Apologies, I did a quick search & looked at Tutorials -- maybe I'm too much of a Newbie.

Gallery is the essential part of our website (within PHPNuke) and all is working well.

But I would like the Search feature to be on EVERY gallery page, when viewing images.

Search only appears on the first page after selecting the Gallery module -- once you go into an Album, the search box disappears (and also when looking at an individual image...

Could anyone point me to the answer, if has already been written?

I'm only using the features that are for the 'newbies' on Gallery -- no customisation & I don't know PHP.

Sorry!

THanks,
Deb of Beads-L

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25967
Posted: Tue, 2005-02-22 04:40

in albums.php the search is generated with this

		echo '<td valign="middle" align="right">';
		echo makeFormIntro('search.php', array(
							'name'		=> 'search_form',
							'method'	=> 'post'));
		echo '<span class="search">'. _("Search") .': </span>';
		echo '<input style="font-size:10px;" type="text" name="searchstring" value="" size="25">';
		echo '</form></td>';

you can move it where you like I placed mine in the album header.

Dave

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2006-10-01 12:00

In Gallery 1.5.2 and newer 1.x you can also simply do: echo addSearchForm();

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
cmoreno

Joined: 2006-10-26
Posts: 3
Posted: Thu, 2006-10-26 10:44

Hi all,

this comment is also related to the Search feature. The way of searching now is writing a word that should be associated to the photo in some way. Should it be possible chosing the word to search among a list of options? Is it planned to add complexity to this feature in future releases, to make deeper searchings?

Best regards, Carolina

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2006-10-26 13:45

Hello Carolina,

i can not completely follow you. Can you make an example ?

Jens
--
Last Gallery v1 Developer and v1 translation manager.