Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2009-11-18 19:22:50

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: [plugin] [ORPHAN] cbs_live_search

Cheers buddy, I don’t know why I didn’t think of this, it worked a dream.


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#86 2009-11-20 09:48:49

Noxgenus
Member
Registered: 2009-03-12
Posts: 21

Re: [plugin] [ORPHAN] cbs_live_search

I don’t think the author is paying anymore attention to this thread..

anybody have the v0.6 version of this plugin for me, or know where I can find it? Need the mootools 1.11 version

tried mailing Christophe, but no answer

Offline

#87 2009-11-26 00:56:45

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: [plugin] [ORPHAN] cbs_live_search

I still got a problem on all browsers
It’s only display the live-results-list when I’m viewing my site with www.
but without www it’s not working.

Does anyone else got this problem?
and maybe know how to fix it please?

Offline

#88 2009-12-02 20:12:05

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] cbs_live_search

THE BLUE DRAGON wrote:

It’s only display the live-results-list when I’m viewing my site with www.
but without www it’s not working.

Not sure, but could it be caused by this code?

<form id="live_search" name="live_search" method="get" action="http://www.flash-brothers.com/search">

I haven’t used this plugin for ages so I don’t know if this is what the plugin tag generates, or if you can change it manually to action="/search" (and if that would solve the problem at all…). If not, a possible solution might be to redirect all non-www requests to www in .htaccess.

Offline

#89 2009-12-02 20:38:41

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: [plugin] [ORPHAN] cbs_live_search

Els wrote:

or if you can change it manually to action="/search"

ohhh…thank you!
that does solve my problem :)

Last edited by THE BLUE DRAGON (2009-12-02 20:39:15)

Offline

#90 2010-03-17 03:37:43

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: [plugin] [ORPHAN] cbs_live_search

How to limit search to one section?


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#91 2010-03-17 11:50:35

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: [plugin] [ORPHAN] cbs_live_search

whaleen wrote:

How to limit search to one section?

Take a look 6 posts above

Offline

#92 2010-03-17 19:01:28

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: [plugin] [ORPHAN] cbs_live_search

Take a look 6 posts above

I cannot do that. Sections should be searchable on demand. Some instances I need to only search one section and in others other sections. An example attribute would be limit_search_to_section and it’s value could be a single section name or multiple comma separated.

Example:

<txp:cbs_live_search limit_search_to_section="people" />

If:

Someone who was willing could develop the plugin further to have this functionality.

Then:

Feature requests:

  • limit_search_to_section attribute
  • form attribute (use a form to output results)

txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#93 2010-03-30 09:38:46

mrjysta
Member
Registered: 2008-09-22
Posts: 89

Re: [plugin] [ORPHAN] cbs_live_search

Yes also the ability to search specific categories would also be great, the plug-in works nice but keeps bringing up headings and items which are unwanted as a user searching the site. i.e. just searching articles in ‘blog’ section with a category of ‘design’ :

<txp:cbs_live_search cbs_section=“blog” cbs_category=“design” />

Offline

#94 2012-03-08 10:04:51

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: [plugin] [ORPHAN] cbs_live_search

I started using this because live search stopped working after my last upgrade. It works fine but I really wish there was some info that showed up in the visitor logs after a user does a search. That was a nice feature in live search.


its a bad hen that wont scratch itself.
photogallery

Offline

#95 2012-05-11 21:19:20

etc
Developer
Registered: 2010-11-11
Posts: 5,192
Website GitHub

Re: [plugin] [ORPHAN] cbs_live_search

EDIT: Don’t take the code from this post, there’s a link to the plugin’s own topic one post below!

I have tweaked this plugin some time ago to enable more elaborated searches. In its simplest form it treats a search string like term1 !term2, term3 as (term1 AND NOT term2) OR term3, but you can implement your own rules and query for virtually any information in your database. I have not modified the original plugin’s help, but if someone is interested, I could post it here.

Plugin code:

YToxMTp7czo0OiJuYW1lIjtzOjE1OiJjYnNfbGl2ZV9zZWFyY2giO3M6NjoiYXV0aG9yIjtzOjE2OiJDaHJpc3RvcGhlIEJleWxzIjtzOjEwOiJhdXRob3JfdXJpIjtzOjIzOiJodHRwOi8vd3d3LmRpZ2l0YWxpYS5iZSI7czo3OiJ2ZXJzaW9uIjtzOjQ6IjAuOGIiO3M6MTE6ImRlc2NyaXB0aW9uIjtzOjA6IiI7czo0OiJoZWxwIjtzOjE0ODg2OiIJPGgzPkRlc2NyaXB0aW9uPC9oMz4KCgk8cD5UaGlzIHBsdWdpbiBkaXNwbGF5cyBhIHNlYXJjaCBib3ggc2ltaWxhcmx5IHRvIDxjb2RlPiZsdDt0eHA6c2VhcmNoX2lucHV0IC8mZ3Q7PC9jb2RlPi4gSWYgSmF2YXNjcmlwdCBpcyBlbmFibGVkLCBhIHJlc3VsdHMgbGlzdCB3aWxsIGZhZGUgaW4gYW5kIHJlc2l6ZSBpbiByZWFsIHRpbWUgYmVsb3cgdGhlIHNlYXJjaCBib3ggd2l0aCBhIG5pY2UgYW5pbWF0aW9uIGVmZmVjdCBhcyB0aGUgdXNlciB0eXBlcyBoaXMgcXVlcnkuPC9wPgoKCTxwPk9wdGlvbmFseSwgYSBjbGlja2FibGUgaW1hZ2UgY2FuIGJlIGRpc3BsYXllZCBhdCB0aGUgcmlnaHQgb2YgdGhlIHNlYXJjaCBib3ggdG8gY2xlYXIgaXRzIGNvbnRlbnQuIFdoZW4gdGhlIHNlYXJjaCBib3ggaXMgZW1wdHkgb3IgY29udGFpbnMgbGVzcyB0aGFuIDMgY2hhcmFjdGVycywgdGhlIHJlc3VsdHMgbGlzdCBzaHJpbmtzIGFuZCBmYWRlcyBvdXQuPC9wPgoKCTxwPkFsc28sIGFuIGltYWdlIChzdWNoIGFzIGEgc3Bpbm5lcikgY2FuIGJlIGRpc3BsYXllZCBhdCB0aGUg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Beyls <http://www.digitalia.be>
	MIT-style licence
*/
var cbs_live_search=(function(d){var f="",q,a,m,n,p,b,o,c,r,h,j;function g(){o.value="";k();o.focus()}function e(){clearTimeout(n);i(r);if(a){a=0;d(h).hide(600)}}function i(t,s){if(t){return t.css("visibility",s?"":"hidden")}}function k(){var s=o.value;if(s!=f){f=s;i(c,s);s=d.trim(s);if(s!=q.q){if(b){b.abort()}if((q.q=s).length<3){e()}else{i(r,1);b=d.ajax(d.extend(p,{data:q}))}}}}function l(){var s={width:j.clientWidth,height:j.clientHeight};if(!a){a=1;d(h).queue(function(){d(h).css(s).dequeue()}).show(600)}else{d(h).animate(s,600)}}return function(v,s,u,w,t){u="<p>"+u+"</p>";q=t;v=d("#"+v).append(d([j=i(d("<div />")).css("position","absolute")[0],h=d("<div />").css("display","none")[0]]).addClass("ls_results"))[0];o=d("input",v).focus(function(){if(d(o).hasClass("ls_inactive")){d(o).removeClass("ls_inactive");o.value=""}m=setTimeout(k,1000)}).blur(function(){clearTimeout(m);k();if(!o.placeholder&&(o.value=="")){d(o).addClass("ls_inactive");o.value=s}}).keyup(function(x){if(x.keyCode==27){g()}else{clearTimeout(m);m=setTimeout(k,600)}})[0];r=i(d('<span class="ls_wait_image" />')).insertAfter(o);c=!w&&i(d('<span class="ls_reset_image" />')).click(g).insertAfter(o);if(d.browser.mozilla&&!document.getElementsByClassName){r.add(c).css("display","-moz-inline-stack")}d(o).attr({autocomplete:"off"});if(!o.placeholder){d(o).attr({value:s}).addClass("ls_inactive")}p={url:v.action,type:"POST",dataType:"html",success:function(x){clearTimeout(n);i(r);d([j,h]).html((x=="<none />")?u:x);n=setTimeout(l,50)},error:e}}})(jQuery);

Last edited by uli (2012-11-14 20:55:03)

Offline

#96 2012-10-08 16:08:04

etc
Developer
Registered: 2010-11-11
Posts: 5,192
Website GitHub

Re: [plugin] [ORPHAN] cbs_live_search

etc_search is out.

mrjysta wrote:

Yes also the ability to search specific categories would also be great : <txp:cbs_live_search cbs_section="blog" cbs_category="design" />

This is possible with etc_search:

<txp:etc_search query="{Title,Body} AND Section='blog' AND (Category1='design' OR Category2='design')" />

Last edited by etc (2012-10-08 19:40:45)

Offline

Board footer

Powered by FluxBB