Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 12-10-2007, 07:23 PM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
Addon: Quick Photo Finder

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




You like this addon?
__________________
Uh!log Photoblog
My Addons

Last edited by austriaka; 02-07-2008 at 07:19 PM.
Reply With Quote
  #2  
Old 12-11-2007, 04:57 PM
Dr.Ozdi's Avatar
Dr.Ozdi Offline
pp regular
 
Join Date: Mar 2007
Location: Czech republic, Europe
Posts: 47
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.
__________________
Dr.Ozdi
Dr.Ozdi takes a photos, photoblog
Reply With Quote
  #3  
Old 12-11-2007, 07:44 PM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
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...
__________________
Uh!log Photoblog
My Addons
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:56 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs