TinyPortal
Development => Block Codes => Topic started by: Zetan on April 26, 2009, 05:34:38 AM
I managed to mangle together a SMF Gallery Search Block, incase anybody is interested. (please go easy on me I am not really a coder)
<div style="text-align:center"><br /><form action="/index.php?action=mgallery;sa=search" method="post"><input type="text" name="search" size="19" /><input type="submit" style="height: 1.8em; width: 10em; margin: 4px auto;" name="submit_mgal" value="Search" /><br /><br />Search in:<br /><font size="1"><div style="text-align:left; margin:4px 0px 0px 20px;"><input type="checkbox" name="sch_title" checked="checked" />Title: <br /><input type="checkbox" name="sch_kw" checked="checked" />Keywords: <br /><input type="checkbox" name="sch_desc" checked="checked" />Description: </div><br /></font><p style="margin: 4px"><font size="1"><a href="http://briespics.com/index.php?action=mgallery;sa=search">Advanced Search</a></font></form></div>
Screenshot? or Test site?
Sounds like a good script to me if it works ;)
Looks to be a DIV with a FORM field that posts the query into the gallery's search fields, which is a good and quick block that may be very useful.
Of special note is that anyone using the block will need to edit the URLs in the code to their own website... this particular code has links to briespics.com for the advanced search link. Not too hard to change though.