PDA

View Full Version : Addon: Quick Photo Finder


austriaka
12-10-2007, 07:23 PM
QUICK PHOTO FINDER

Quick Photo Finder Addon is a small and simple Quickfind Feature on Image Titles and Descriptions for use in any photoblog page.
A search result should bring you to a "found" page which can look exactly like your browse page.

Features


Titles and Descriptions are searched.
Search is done in the actual language only.
Wrapping quotes around the search term finds the word only as standalone.
Without quotes it finds the word in context too.
Multiple search terms are always treated as string.


New Tags

<QUICK_FIND> - The form for the search terms.
CSS: #quickfinder, .quicktext, .quicksubmit
<KEYWORD> - The search term (if there is a search result) or the message (if there is no result).
CSS: .nokeyw, .nomatch
<THUMBNAILS_FOUND> - The thumbnails as shown in browse page.
CSS: .thumbnails

Using the Quick Photo Finder Addon


Open your browse_template.html
replace <CATEGORY_OR_DATE_NAME_PAGED_ARCHIVE> with <KEYWORD> or put <KEYWORD> wherever you want.
replace <THUMBNAILS> or <THUMBNAILS_WHOLE_PAGED> with <THUMBNAILS_FOUND>.
Save it as "found_template.html".
Do this for browse_XX_template.html too if you use an alternative language (XX is the language abbreviation)
Save it as "found_XX_template.html".
Put <QUICK_FIND> (the input form) wherever you want.<br />
Do some styling in your CSS file according to the ids and classes listed above.
Open the quickphotofinder.php file and change / translate the phrases in the beginning of the file.
Upload everything to your server and you are done :-)


This Addon is still in Beta because I wanted to ask a few people to test it before I upload it to the Extend section of Pixelpost.
It should work fine with v1.6 and v1.7, perhaps even with lower versions but I did not test it.

Download it here: http://blog.uhlig.at/addons_dld/quickphotofinder.zip
View it in action in my blog: http://blog.uhlig.at

http://blog.uhlig.at/qpfscrs.jpg


You like this addon?
https://www.paypal.com/en_US/i/btn/x-click-but04.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=karin%40uhlig%2eat&item_name=Donation%20for%20Pixelpost%20Stuff&item_number=pixelpost&no_shipping=0&no_note=1&tax=0&currency_code=EUR&bn=PP%2dDonationsBF&charset=UTF%2d8)

Dr.Ozdi
12-11-2007, 04:57 PM
Thanks, it seems to be much more better than public google search engine.

I tried it on your pages but result is not clear...they are categories, pictures, numbers of pages below etc.

Search in written comments is possible after input keywords from them to picture in admin side?
Dr.

austriaka
12-11-2007, 07:44 PM
Perhaps my template is a bit confusing ;-)
The search term is shown above the tag cloud (as if it were just another tag). Categories are not used in my template and the numbers below are the month calendar. No page numbers on found page...
See it here in my 1.6 test installation: http://uhlig.at/pp16/index.php?x=found&quick=zebra
(not many matches since there are not many photos)


The quick search searches ONLY in title and description. No tags (since there is the tag cloud for that), no categories and no search in comments.
I can extend the Addon and set switches for where to search. But for a true "quick search" it is only with titles and description so far...