Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] rss_live_search
I noticed if I have logging turned on in the prefs, then anything I type in the search box creates a gazillion hits in the log view.
Anyone else have this problem, is there a way around this?
Offline
Re: [plugin] [ORPHAN] rss_live_search
I’m seeing some strange behavior when I use a custom form. Particularly, I see two problems one problem:
1.) If I go with the year/month/date/title format, instead of the id/title format, the LS results all come back with 1969 as the year, instead of the actual year I posted the article.
2.) If I use the arrow keys and hit enter, it passes the text in the search box through to TXP’s default search engine, instead of taking me to the page I highlighted with the arrow key. Turns out my problem was that I included the DIV class=“LSRow” element in my form. I just read that part of the instructions hastily, but I wonder how many other folks make the same mistake?
I am using version 0.2.2 of the plugin on TXP 4.0.1.
Any ideas on what’s going on?
Last edited by distantlyyours (2005-10-18 07:36:56)
Offline
Re: [plugin] [ORPHAN] rss_live_search
awhile back sekhu posted that he had validation errors. No one replied. I am having those same errors. Any ideas:
Here are the w3c validation errors.
here is my page.
Thanks yall,
Matthew
Below are the results of checking this document for XML well-formedness and validity.
<code>
Error Line 85 column 27: there is no attribute “name”.
<form id=“searchform” name=“searchform” method=“get” action=“http://www.artiswor
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element.
Error Line 86 column 10: document type does not allow element “label” here; missing one of “p”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag.
<label>LiveSearch:
The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.
Error Line 89 column 86: document type does not allow element “br” here; missing one of “p”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag.
…) {this.value = ‘’;}” /></label><br/>
</code>
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_live_search
bump, anyone? This looks like it needs tweaking that I don’t know how to do at all?
THoughts,
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_live_search
Change the search form code to read as follows. This should be around line 250:
<code>return ‘<form id=“searchform” name=“searchform” method=“get” action=”’.hu.$searchto.’” onsubmit=“return liveSearchSubmit()”> <label>’.$label.$input.’</label>’.$sbtn.’<br/> <div id=“LSResult” style=“display: none;”><div id=“LSShadow”></div></div> </form>’;</code>
When I have time I’ll release a newer version of the plugin with this code included.
Offline
Re: [plugin] [ORPHAN] rss_live_search
Rob,
Sorry, that didn’t do it for me. I tried a fresh install of 2.2, etc.
Also, I note that atleast in bbedit for mac the line is at 120? I am curious why there is such a discrepency. I have checked validation of my page without the plugin and its all validated xhtml 1.0 strict. I am not sure what’s going on here?
Thanks for your help on this,
Matthew
ps. I still get the same three errors.
pps. That’s a interesting banana you had lunch with.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_live_search
Sorry, I was looking at the line numbers on my source code version.
I just uploaded version 0.2.3 which should work. Let me know if not.
Offline
Re: [plugin] [ORPHAN] rss_live_search
Rob,
Well done. That did it. It added an additional box for me? I guess I will have to check my css to see why it did this? Maybe its a conflcting class or something?
If you want to see, or have any ideas see here
Thanks again, for the fix.
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_live_search
Glad that worked. Add <code>fieldset {border: 0;}</code> to your CSS to get rid of the extra box.
Offline
Re: [plugin] [ORPHAN] rss_live_search
has anyone else noticed in firefox that if you type a space as the first character in the input box, the search results become a mirror of the entire page?
also, and i can’t explain it, the up and down arrow navigation has stopped working. strange stuff.
Last edited by gdtroiano (2005-10-25 02:18:53)
Offline
#86 2005-10-25 03:40:04
- Infi
- Member
- Registered: 2005-05-28
- Posts: 75
Re: [plugin] [ORPHAN] rss_live_search
Thanks for the update, Mr. Sable. And despite the upcoming reboot. Above and beyond.
gdtroiano: You’re right. I hadn’t noticed that. Weird. :\ Cool effect, though. I think I’m going to count on people beginning the search with a letter for the time being, just so I can play with that. Neat. :)
(I know. I’m weird.)
Offline
Re: [plugin] [ORPHAN] rss_live_search
I’m using messy URLs and have the “entire homepage” problem. When I place the search field on the default page, everything works fine. But when I put it onto the Artist section “?s=artists” it will display the complete default site – without any search results.
What can I do? I want the search field in my artists-section, too!
Offline
Re: [plugin] [ORPHAN] rss_live_search
Turbo G,
Do you have the javascript in your art section?
Did you make the mods that Gerhard recommended on page 4 of this thread?
Are you hitting enter and then it takes you to the default page?
? More information please,
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_live_search
Also,
My own question:
If a user hits “enter” on a rss_livesearch query, how do I call a search formated page? Currently it calls the default. This may be related to Turbo G’s question?
Any ideas,
Thanks,
matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_live_search
you can have it display a specific section with the searchto tag.
for example, searchto=“search/”
Last edited by gdtroiano (2005-10-29 23:55:49)
Offline