google search words

Creating and modifying plugins.
Post Reply
romulus
Regular
Posts: 49
Joined: Fri Sep 24, 2004 4:31 pm
Contact:

google search words

Post by romulus » Sat Oct 09, 2004 2:27 am

I have written a google search words plugin to display last search words that were used on google to find your site. This plugin is relying on bbclone statistics. It does not run alone without bbclone!

download: romulus_plugin_googlesearch-0.2.zip

To install extract zip file in s9y plugin directory. After extracting and adding the plugin in your plugin list you must configure the correct path to you last.php of your bbclone installation. You can do that in the same way you configure every s9y plugin.
The plugins inserts a html list into the sidebar but does no formatting. To format the search words to your preference insert a "list_googlesearch" class into your style.css. Here is mine for my site:

Code: Select all

.list_googlesearch {
   list-style-type: none;
}

.list_googlesearch li {
   margin-left: -35px;
   border-bottom: 1px solid #ececea;
   padding: 5px;
}


For german speaking people here is my posting on my site: http://www.romulus23.de/archive/96-Sere ... riffe.html

Update: fixed a bug and added config option in s9y admin area. Updated the download link to new version.
Last edited by romulus on Sat Oct 09, 2004 11:37 am, edited 1 time in total.

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: google search words

Post by garvinhicking » Sat Oct 09, 2004 10:21 am

That's a nifty plugin - need to install bbclone to see how it works. Thanks!

BTW, you can also emit CSS styles within a plugin :)
# 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/

romulus
Regular
Posts: 49
Joined: Fri Sep 24, 2004 4:31 pm
Contact:

Re: google search words

Post by romulus » Sat Oct 09, 2004 10:42 am

garvinhicking wrote:BTW, you can also emit CSS styles within a plugin :)


What do you mean? Sure, I could format the output with some nifty styles, but these styles wouldn't match the theme the user is using, would it?

Guest

Re: google search words

Post by Guest » Sat Oct 09, 2004 1:05 pm

Hi romulus!

No, what I meant was that you could emit the CSS classes via plugin,if the user theme doesn't contain those styles. You may want to look at how the karma plugin or the livesearch plugins do that. Well, in the end, it may not be needed for your plugin, but I just wanted to point to that nifty feature ;)

Regards,
Garvin.

romulus
Regular
Posts: 49
Joined: Fri Sep 24, 2004 4:31 pm
Contact:

Post by romulus » Sat Oct 09, 2004 1:43 pm

interesting ... I didn't know that was possible with s9y. I will look into it :)

Post Reply