Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] rss_live_search
Updated to version 0.2. I would highly recommend upgrading if you’ve installed version 0.1. Quite a bit of new features and fixes.
Version 0.2
- Fix to allow navigation of search results using arrow keys and selection of a result using enter. If no result is selected, enter will run a normal textpattern search.
- Changed HTML structure to use divs rather than unordered list for more flexibility.
- Added ability to use a Textpattern article form for displaying search results.
- Added ability to show posted date in addition to title if not using a form.
- Added ability to add a submit button and specify the button label.
- Added ability to add a value to the input field and set the size of the input field. You can also turn off autocomplete on the input field.
The latest version is in use on my site.
Offline
#14 2005-05-14 15:35:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] rss_live_search
When I want to install rss_live_search 0.2, in the preview I see this around line 46:
<code>
print ‘<?xml version=
Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /home/httpd/vhosts/doggiez.nl/httpdocs/textpattern/include/txp_plugin.php on line 152
’1.0\’ encoding=\‘utf-8\’ ?>’;
</code><br />
So I haven’t installed it yet, because I don’t know what it means. Can anyone tell me?
Offline
Re: [plugin] [ORPHAN] rss_live_search
doggiez – I’ve never seen that. It looks like its just having an problem parsing the file for some reason. If you try installing, it should work. The line just reads <code>print ‘<?xml version=\‘1.0\’ encoding=\‘utf-8\’ ?>’;</code> which seems fine to me.
Also, I’ve updated the download to 0.2.1 to fix a minor problem caused by searching for the “0” (thats the number zero).
Download rss_live_search 0.2.1
Last edited by wilshire (2005-05-17 16:15:07)
Offline
#16 2005-05-17 20:58:06
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] rss_live_search
I still got that warning in the preview, but after installing it works fine, so no problem I guess.
Offline
Re: [plugin] [ORPHAN] rss_live_search
Would it be possible to include as an option the chance to use <input type="search" />
? This only works on Safari, but it produces pretty cool rounded search boxes.
Thanks and great plugin.
bludrop studios .::. Creative Expression
Offline
Re: [plugin] [ORPHAN] rss_live_search
installed this yesterday and got it working. switching to /section/title fixed the url error it was giving me. i prefer to be on /year/month/date format, but when i was using that the search always returned a value of /1969/12/31/. any ideas?
Listen to Kenneth
Offline
#19 2005-06-01 15:57:12
- alice_c
- Plugin Author
- From: Karlsruhe, Germany
- Registered: 2004-07-03
- Posts: 33
Re: [plugin] [ORPHAN] rss_live_search
Is it possible, that the livesearch finds articles, which are in sections, that shouln’t be searched? I just compared the two results, an in the “normal” search they are excluded.
Edit: found the bug:
$s_filter = filterSearch();
is missing in the plugin, also the function filterSearch() from search.php.
Having included that, it works fine ;)
Last edited by alice_c (2005-06-01 16:23:40)
Offline
Re: [plugin] [ORPHAN] rss_live_search
blumie – I’m not too inclined to add browser specific code to the plugin. Just because Safari is light years better than IE doesn’t make browser specific hacks any better. In any case I don’t think that code validates to the XHTML spec which is why I didn’t add it. I could be wrong on that though.
kennethlove – I assume that this doesn’t happen when you do a normal search? If not I’m not sure what would cause that because the permalink is built using the built in textpattern function. I’ll have to experiment with it.
alice_c – That was a problem in the initial release of the plugin but it should work in the latest download.
Offline
Re: [plugin] [ORPHAN] rss_live_search
wilshire – just hitting enter works, yes. and i changed my url scheme to /section/title so it works now, but i’d rather have /year/month/date. any ideas?
Listen to Kenneth
Offline
Re: [plugin] [ORPHAN] rss_live_search
Rob. Re: recent discussions in my “TXP Gespaa Single” thread it would appear that having the live_search_js tag on any page other than the search page itself throws a scripting error in IE6. This is a bit of a pain as I use a common DTD form template in my style ports. Other than throwing the error there doesn’t appear to be any other side-effects, but short of creating a separate search page template is there any way around this?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: [plugin] [ORPHAN] rss_live_search
i can’t figure this out. using just the rss_live_search tag produces the search form, but it’s not visible on the the site (i had to view page source to see it).
and when i attempt to just add the code that should be produced, the search results area shows a copy of the entire site. weird, eh?
Last edited by gdtroiano (2005-06-03 20:36:16)
Offline
Re: [plugin] [ORPHAN] rss_live_search
There’s a new release of this plugin to fix a couple of the bugs mentioned above…
Version 0.2.2
- Fixed javascript errors on pages that include the live search js but not the live search form (thanks Stuart)
- Fixed problems when using /year/month/day/title URLs scheme (thanks Kenneth)
Offline