Google quicksearch plug-in

Creating and modifying plugins.
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Google quicksearch plug-in

Post by wesley »

I made a Google quicksearch plug-in as an alternative to the default
quicksearch. Quicksearch can't search half of my website, that is, the
Korean version, since it only indexes the default language version. So
instead of waiting for quicksearch to improve I just hitched on Google.

The search page's language and encoding is configured automatically
based on s9y's current page settings (e.g. if it's set to Korean, it'll show
the results in Korean).

SourceForge CVS download

Related blog post
I make s9y plugins, too.
My s9y blog depends on them. :)
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

why is this not on spartacus
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

It is on Spartacus. "Serendipity_plugin_google_quicksearch", "Search for an entry (Google)". It's a sidebar plugin.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

i'm getting this

Code: Select all

Please report this bug. This error can happen if a plugin was not properly downloaded (check your plugins directory if the requested plugin was downloaded) or the inclusion of a file failed (permissions?)
Backtrace:
Installing plugin: Array ( [0] => serendipity_plugin_google_quicksearch [1] => [2] => right [3] => 0 [4] => serendipity_plugin_google_quicksearch ) 
INSERT INTO serendipity_plugins (name, sort_order, placement, authorid, path) values ('serendipity_plugin_google_quicksearch:c72a03d0c2e5dc54865205b190d4b328', 7, 'right', '0', 'serendipity_plugin_google_quicksearch')
Init probe for plugin serendipity_plugin_google_quicksearch:c72a03d0c2e5dc54865205b190d4b328, , serendipity_plugin_google_quicksearch
Including plugin serendipity_plugin_google_quicksearch, serendipity_plugin_google_quicksearch
No valid path/filename found.
Including plugin(2) serendipity_plugin_google_quicksearch, serendipity_plugin_google_quicksearch
No valid path/filename found. Aborting.
Classname serendipity_plugin_google_quicksearch still does not exist. Aborting.
Loading plugin failed painfully. File not found?
Init probe for plugin serendipity_plugin_google_quicksearch:c72a03d0c2e5dc54865205b190d4b328, , 
Including plugin serendipity_plugin_google_quicksearch, 
No valid path/filename found.
Including plugin(2) serendipity_plugin_google_quicksearch, serendipity_plugin_google_quicksearch
No valid path/filename found. Aborting.
Classname serendipity_plugin_google_quicksearch still does not exist. Aborting.
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Did the file get downloaded, the path created?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

Nup the directory was not created, and no file is downlaoded
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Did you check the permissions on your plugin directory? They should be 777. Try to download another spartacus plugin, that might also not work?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

ok got it
it still can't find my latest article.
I gues its the same BS with google.

it would be nice if it showed the results using my blog look
Image
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

OK it isn't validating
click here to see the result
Image
Wizard
Regular
Posts: 103
Joined: Sat Aug 13, 2005 7:18 am
Location: Southern California
Contact:

Search Button

Post by Wizard »

Why on both QuickSearch plugin and Google the Site plugin there is no Search button or Submit or something to indicate the user to Go start the search? It's not necessarily obvious to some users to press the enter key. I know, it's a minor issue, but it's all about maintaining GUI standards.
Wizard
My WeBlog
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

Okay, I fixed the validation issue and added option to put 'submit' button
under the search box. The new version has just been committed. It'll be
accessible in a few hours (version 1.3). Thanks for the suggestions! :)
I make s9y plugins, too.
My s9y blog depends on them. :)
Wizard
Regular
Posts: 103
Joined: Sat Aug 13, 2005 7:18 am
Location: Southern California
Contact:

Ah... something wrong..

Post by Wizard »

Just so you know. Spartacus still shows Version 1.1 so it doesn't allow me to upgrade. I ended up uninstalling and then deleting the plugin from my site. After retrieving the listed 1.1 version from Spartacus again, it is indeed the 1.3 version. Also, it widens my left sidebar a little more than it used to, so it throws everything off slightly. So I think something is wrong with the version still. Just a heads up.
Wizard
My WeBlog
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

As for the Spartacus, I've updated my plugin the usual way, so I don't
think there should've been any problem. SF CVS properly shows the
version as 1.3. Perhaps Spartacus didn't properly have the version number
loaded, although as I understand this should be automatically retrieved,
and my code has the version declaration properly. So I don't think it can
be solved from my side. Weird... -_-a I wonder how often Spartacus checks
the version string... it's only been two days.

As for the widening, that's weird, too, if it occurs regardless of adding the
button or not. The form code has nothing changed except for adding a
part for checking if it should display the button or not, and therefore it
should look formatted exactly like the previous version. If it only happens
when adding the button, it could be that the template or the browser might
have interacted with the new element a bit, although in my testing there
were no layout anomalies. Can you check a bit?
Last edited by wesley on Thu Sep 15, 2005 8:13 am, edited 1 time in total.
I make s9y plugins, too.
My s9y blog depends on them. :)
Wizard
Regular
Posts: 103
Joined: Sat Aug 13, 2005 7:18 am
Location: Southern California
Contact:

Spartacus?...

Post by Wizard »

Is there a problem with Spartacus? Is that why I don't see version 1.3 and downloadmanager version 0.3?
garvinhicking wrote:(Plugin also committed to CVS as version 0.3 :-)

Regards,
Garvin
Maybe there is a time delay, but three days?
Wizard
My WeBlog
Wizard
Regular
Posts: 103
Joined: Sat Aug 13, 2005 7:18 am
Location: Southern California
Contact:

Too wide

Post by Wizard »

You know, the only thing I can see different is the size of the input box. Somehow it's slightly bigger, so it stretches the whole plugin to fit. It's slightly bigger than even the Shoutbox. I moved it to my right side for now, since I haven't a clue on how to fix it. It's already wide on that side due to the calendar being wide.
Wizard
My WeBlog
Post Reply