Search Option
|
257 posts
|
Hey everyone, Does anyone know how to create a search function for a site built in frog? I have a site that I would like to include a search button for and am not sure where to start with it! Perhaps it could be in a plugin format if it does not exist already (?) Andy |
|
541 posts
|
this is not done yet! |
|
257 posts
|
Hey Philippe, thanks for Frog, it's awesome! The more I use it the more I love it. I'm going to switch from other CMS from now on! Are there plans to implement a Search utility? If so, do you know what the timescale would be. It would be the icing on the cake (along with a tag cloud plugin ;) All the best Andy |
|
4 posts
|
Id love a search module |
|
50 posts
|
I am planning to make a search module, need plugin docs before I can really begin. |
|
11 posts
|
HI, I know the search feature is planned. I was wondering if this PHP script could be of any help to get this. http://www.bewebmaster.com/58.php I tried to get it running but since I'm not a PHP expert, i get some issues. Maybe it can help someone. Thanks! |
|
343 posts
|
Hi eteen. Could you post the issues please? Maybe we can help you. |
|
343 posts
|
Just tried to make a little search engine for frog, it works ok, but it only shows relative titles... |
|
11 posts
|
Bdesign, did you use the script I sent? |
|
343 posts
|
Nope, i developed a very simple one. I'm still working at it. If I'll manage to do something useful I'll post it here. |
|
9 posts
|
I've been fiddling with a Search script and have bits and pieces of it, but haven't put anything together yet. My question is - would people prefer to search the title and the content of the page, or the meta data of a page? At the moment it seems like it will be too much of a pain in the *** to do both in one, but I could give people the option of what they want to search. (Or any ideas on how I can achieve this easily...) I also plan to give the option of using a simple 'LIKE' search or using a Boolean search that is built into MySQL. Both will trim the input and remove text/code that shouldn't be submitted.. And finally the search box will use ajax to show the results in a slide down box on the page.. kinda like on apple.com.au. Ill let people know when I am looking for beta testers. Cheers |
|
257 posts
|
That sounds awesome - especially the Ajax functionality... Let me know when you need testers I will happily put it through its paces. As a short term solution I have been using Orca Search - it has a great admin panel and is very well written. I was thinking it may be good to convert this to a plugin, in which case all you would need to do is drop in a function to the page eg. <?php makeSearchBox(); ?> For more info check out http://www.greywyvern.com/search?q=index Despite the lack of design on the page, it is extremely functional. It may well be that most of the code you want to write is already in here! Cheers Andy |
|
9 posts
|
Thanks for that - I'll have a look. And yep, this will be a plugin, so to call the search box that is all you'd have to do.. and choose what options you want... so something like <?php SearchBox('meta','boolean') ?> to make a search box that searches Metadata and uses boolean search.. With the boolean search you will be able to do thngs like "frog AND cms" and "frog OR help"... |
|
1493 posts
|
This sounds genius! Looking forward to trying it out when it comes available. Thanks for the initiative SG! |
|
9 posts
|
okay, i have the search plugin working! works a charm! It looks for the given search term in the title, content, slug, and the metadata! but at the moment - for a page to be found it must have metadata tags. I have the ajax search box working - just have to modify what i do have for the slide down results box. (and make it so if the user doesn't have javascript it takes them to the search page! My only hiccup at the moment is... how the hell do i pull a pages link on the fly from a seperate class? Once i have that, I'll just have to wack some comments in and tidy it up a bit and it'll be available for some testing. Cheers SG |
|
257 posts
|
Fantastic - can't wait to see it! Was orca search any good to you in the end? |
|
9 posts
|
I didn't end up looking at it. I used a script for the ajax bit and then the rest I threw together just looking at it all. It's been good to get my head around all this fangle dangle new PDO sql stuff. |
|
257 posts
|
Hey SoulGlo, how are things going on the Search plugin? Been a while since I've heard about it - do you have it on a test site anywhere, it sounds great from your description... |
|
9 posts
|
It's going slow.. Got a uni assignment (anyone a data mining expert :-) ?) , work , meetings with clients etc.. so haven't had a chance to touch it. I might upload it this weekend for people to have a look at. I've got it to work and it gives me the results I expect, but I just can't optimise the results.. (e.g. it shows up 4 results to the same page). |
|
1493 posts
|
Hey SG - my brother is a "data mining expert" ... so he tells me, anyway. :) Thanks for pressing on with the search-plugin. It will make a great addition to Frog! |
|
40 posts
|
just bumping this post & wondering if in the meanwhile someone has been able to create a search function.? |
|
1493 posts
|
Hi jeCa – you can get a decent, basic search function in Frog using the solution offered in this forum post. Read further in that thread for a couple enhancements. While we wait for a search plugin, BlueFrog’s method is a superb help! |
|
40 posts
|
thx David! I’m trying to get it to work right now :D |