Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-11-11 03:02:09

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

[plugin] [ORPHAN] ob1_advanced_search

Name: ob1_advanced_search
Version: 1.032b
Author: Henrik Jönsson
Author URL: revolutioni.se
Modified: 2007-10-13
Paste URL
Manual

It has happend. A new version has been released that has been tested on TXP 4.0.5 but I see no reason why it shouldn’t work on 4.0.4.
This version is a beta, before I release it as a full version I want some testing by you done.

And please, read the manual before doing anything else so you understand the plugin.

FOR USERS THAT HAVE EVER USED THE OLD VERSION (0.9a) OF THE SEARCH PLUGIN ON A DATABASE
If you have used my previous version of the old plugin, remove the indexes that it have created in your textpattern table of your database before setting the new version up.
This is now doable through the attribute uninstall added in v1.03b.

Last edited by obeewan (2007-12-27 20:37:08)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#2 2004-11-11 03:08:53

gonzo409
Member
From: Ohio
Registered: 2004-06-25
Posts: 50
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

I’ve been waiting for this one! Unfortunately, I need to get some rest for work tomorrow – but I’ll be downloading this ASAP!


Liberal. Geek.

Offline

#3 2004-11-11 03:16:25

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

I’ve been wanting to put this plugin out there for a long time. Just haven’t had time (and still doesn’t) to do the last parts of it.

I found the last “bug” I knew of and removed it today so, hopefully, it is bug free. But don’t take my word for it. :)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#4 2004-11-11 04:56:21

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

yay! same with gonzo… i’ll be keeping this window up and checking it out tomorrow… i’ve been looking forward to it :)
thanks obeewan.

*edit: okay i read through your instructions and ‘am realizing that i’ll have to sit this one out for a while.. php and the coding stuff aren’t really my thing :-/ i’ll be silently cheering from the sidelines, though, for everyone else who gets to implement it and try it out. and hopefully even my amateurish hands will get a chance at it eventually.

Last edited by alicson (2004-11-11 18:59:06)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#5 2004-11-12 00:53:46

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

Up and running nicely thanks obeewan. I’ll leave the CSS for tomorrow. I’m too tired. Another great plugin thanks.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2004-11-12 13:57:44

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

alicson,
That note is more of a disclaimer ;)
If you want some help with the install, mail me and I’ll do my best to answer or post it here in the forum.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#7 2004-11-12 14:29:21

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

:) Thank you obeewan.
I’ll plan to try it later this afternoon, then, or sometime this weekend.
And I appreciate your graciousness.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#8 2004-11-19 19:09:35

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

well, rather later than I’d intended to get to it, but I have finally gotten to it and it works wonderfully and may the heavens bend downand bless obeewan’s beautiful head.

two things i’d like to correct when you have some leisure time and feel so inclined:
<strike>when the normal search is used now, it goes to the Advanced Search page, instead of running the regular inquiry. how to get it to run the inquiry and maybe add a link at the beginning of the search results to say “To refine your search, use <code><link>Advanced Search</link></code> here.”</strike> *edit: i think i’ve figured this one

also, i can’t figure out how to get that border around the whole thing to go away (ferrydust.com/search/).. it’s clearly my own fault through some css setting i have or something, but i’ve been unsuccessful in locating it to shut it off. (please be warned that my css sheet is really the messiest thing ever..i do apologize a bit, but that doesn’t mean i’ll be sufficiently cleaning it up anytime soon… but i hope to eventually!) if it’s not easily evident to anyone, then that’s fine… i’ll live with it or endeavor to solve it again in the future..

thank you thank you!

Last edited by alicson (2004-11-19 21:45:42)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#9 2004-11-19 23:49:30

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

The border comes from the fieldset wrapped around the form input as you need to have in XHTML Strict. The quick fix is to just do a

<code>
fieldset {
border: 0;
}
</code>

in your CSS and you’re borderless.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#10 2004-11-20 05:26:01

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

:)

obeewan’s one of the world’s best people ever.

thank you.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#11 2004-12-26 01:48:06

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

I discovered a bug today with the search. I can not currently release a new version but you can fix it easily by yourself.

Find the three rows with the following code:

<code>$SQLQuery = join(” “,$fieldQuery);</code>

Alter them to instead read:

<code>$SQLQuery = “(” . join(” “,$fieldQuery) . “)”;</code>

The bug was that it searched (for instance) for draft articles etc when using the OR clause in the search (this OR that word).


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#12 2005-04-12 14:50:47

ArbinShire
Member
From: Tallahassee, FL
Registered: 2004-03-23
Posts: 31
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

It would be just dandy if one didn’t have to pick through this plugin trying to weed out the unneeded class information. It’s all nicely hidden away and a royal pita to do.

Any way to get a version without the class information for each input and destroy all those extra unneeded divs?

Offline

#13 2005-07-27 18:16:22

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

The new version is on the drawing board at the moment but I need some feedback on how to continue on with this plugin. Any help is appriciated!

New features

  • Custom fields searchable
  • Able to set what the user may use in the admin panel
  • Able to set what is default for the different settings

Preferences

  • search type visible [y/n] (this is the all the words/exact match/any word)
  • search type default [1-3]
  • search results one (now 10) (might be stored finally in search plugin language)
  • search results two (now 20)
  • search results three (now 50)
  • search results four (now 100)
  • search results default [1-4]
  • search results save cookie [y/n] (save a cookie what the user has specified for number of results)
  • search without visible [y/n]
  • search custom fields [y/n]
  • search which custom fields [1-10] (multiple select)
  • search occurences default [1-13] (4-13 beeing custom fields)
  • search date visible [y/n]
  • search date between visible [y/n]
  • search date between format (default beeing %Y-%m-%d but can be set to any format)
  • search plugin language (comma separated list with all text that is used in the plugin)
  • search display excerpt [y/n] (instead of doing like google, just show the excerpt of the article, if any)

Problem one

So far my thought is to create a admin tab for the plugin settings. Not that hard to do in what I’ve seen. The only problem I see here is that I would really like to just have one tab for all my plugins (if there will be more that needs administration that is). Is it possible to create one tab for all of your plugins? On the examples I’ve downloaded and tried (like quikpik for instance) all I see that the tab calls on a function that needs to be included in the plugin. So do I need to first create a ob1-adminconfig plugin or can I later on tie more plugins to the same tab without the first beeing installed?

Problem two

Every custom field you add to be searchable creates another FULLTEXT index to the database and updating the “all” one too meaning I will have to do some writing to the database, especially if the user changes this often. Maybe not a problem but hmmm .. Anyone know how much strain a fulltext index does to the database?

That’s it for now I guess. It’s a start.

So, point away where you think it should be done differently.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#14 2005-07-27 18:35:46

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

And in reply to ArbinShire,

All <code>div</code>s etc are stored in the forms, you are welcome to remove as much as you like. And as I stated earlier, the old version is released as-is meaning that I released as I myself used it and I’m not releasing another version of it. Whatever you get, it’s up to yourself to alter it to fit your needs.

How the new version will look “out-of-the-box” is still under development.

Last edited by obeewan (2005-07-27 18:36:15)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#15 2005-07-27 19:02:03

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] ob1_advanced_search

Not being a coder I might be on the wrong track here but relating to “Problem one” does Manfre’s latest mem_admin_parse – Admin Side Plugin tags work along those lines?

I like the cookie idea and will it still work with “Googlenav”?

Have you settled in now? :) On pain of repeating myself I consider that the 2 most important things that TXP lacks is proper 404 processing and a proper search facility so go devs and go Henrik. Let’s get this application rocking!!!


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB