-
Website
http://dancameron.org/ -
Original page
http://dancameron.org/wordpress/wordpress-plugins/google-ajax-search-plugin -
Subscribe
All Comments -
Community
-
Top Commenters
-
LillyLipscomb
1 comment · 1 points
-
paynito
1 comment · 1 points
-
stevehahn
8 comments · 1 points
-
futurelevel
2 comments · 1 points
-
Jason Hansen
4 comments · 2 points
-
-
Popular Threads
I'd just suggest triggering or attaching the onload script from within your plugin, by including a script reference using the 'wp_head' WordPress action. Then you could remove installation step 5.
Looks really cool. I have it installed just like you said, but for me it just shows ...loading...
I checked out your source and mine and they look identical. What do you figure I am doing wrong?
Thank you.
@Jared:
function OnLoad() {
...
}
GSearch.setOnLoadCallback(OnLoad);
Google actually suggests that method anyways.
Wow. thats great. it loads. but yeah it looks ugly with the glossy blue theme.
thanks though.
Make you download the newest release. It's already at .95.
Also make sure you go to the configuration page.
But you should consider to correct the Installation Guide, it seems you forgot to place an questionmark in the String:
It won't load without the missing questionmark.
best regards, lars
I am running WordPress 2.1. Well, I aren't sure what plugin might be interfering with it. But, that might be possible.
Any way to keep everything, including search results locked at say, 200 pixels? That's what's preventing me from installing it in a production environment.
But looks great otherwise!
Good work. Let me know if others have experienced the same issue.
One question tho; for some reason the search results aren't correct. If I make a search for something it shows some posts, but not all. And sometimes it doesn't show any posts at all, even tho it should since the search query is correct.
Any ideas on what I'm doing wrong here?
Thnx in advance!!
i checked out the code on abhi's site, and mine is nothing like it.
All that happens when i search is it takes me to a google blog search page....
maybe its just too late at night to be trying to implement this stuff.
does the standard plugin give the same functionality as on your search box, cause that is what i was expecting...
.gsc-results .gsc-blogResult * {
width: 180px;
}
Works in IE, but not 100% in FF...
i checked out the code on abhi’s site, and mine is nothing like it.
All that happens when i search is it takes me to a google blog search page….
maybe its just too late at night to be trying to implement this stuff.
does the standard plugin give the same functionality as on your search box, cause that is what i was expecting…[/quote]
when you say not 100% in ff, what do you mean? it stops the text extract flowing over on mine, but not the url, is this what you mean?
also, add this, and the width is regulated for page search, not just blog
/* Blog Results Width */
.gsc-results .gsc-blogResult * {
width: 180px;
}
.gsc-results .gsc-webResult * {
width: 180px;
}
is there a way to not show a title for this sidebar widget? my theme automatically puts a background up for h2 headings in the sidebar, but i dont want one here, and if i change the css for it, it changes the other h2 in the nav sidebar.
thanks
To take the header title out, I would use sidebar modules instead of sidebar widgets. It has the option to not show the title of the widget.
Hope that helps.
1. Google is finding the RSS feed content in the "web" section of results, which we don't want.
2. Is there a way to control how many results display, currently it's only one.
3. I don't see the option for open vs. closed either. It's currently set to "closed", and I thought it would impact the drop down of the results, but the results drop down.
FYI, the only changes we made were to the user defined labels:
"webSearch.setUserDefinedLabel("Webpages");"
"blogSearch.setUserDefinedLabel("Articles");"
You can see the installed search at www.kidoinfo.com/ri/ But we need to either fix or remove it soon.
If we can't get the Google search to stop finding RSS content and also control the # of results, then I'll just use the search_everything3.php (which we already installed), at least it searches the pages, but the results aren't displayed nearly as well as the Google solution.
Bottom line, I appreciate all that you've done to develop these solutions, they are almost perfect for what we need and much more than we could have created ourselves.
Any feedback or customizations you can offer would be greatly appreciated.
The difference between OPEN and CLOSED in the options is basically to tell the plug-in to just search your blog (CLOSESD) and the enter web (OPEN), right?
I think I had another question but I just forgot it...
Your help is appreciated. :)
Not sure why results aren't showing since it uses Google. Search Google directly with site:www.your_url andsee if you get any results.
did you get my email?
where is the PHPSESSID being created?
a
I've noticed that a from the groups that Google AJAX search doesn't validate strict XHTML.
I'm sure theirs a thread in the groups about it, http://groups.google.com/group/Google-AJAX-Sear... since I remember seeing one a few weeks back.
I'm interested in your fixes if you want to send me another email.
overflow: hidden;
to the
.gs-result a.gs-visibleUrl,
.gs-result .gs-visibleUrl {
and
.gs-result a.gs-clusterUrl,
.gs-result .gs-clusterUrl {
sections of the plugin file.
dan, this is another fix that ive only just thought of, and is not in the file i emailed you.
did you get the mail?
therefore the file i sent you is 100% XHTML valid.
Wahoo!
One.One appears to be available from http://google-ajax-search-wordpress-plugin.goog...
Thanks!
www.smears.co.uk
I'm using WordPress as CMS so no posts need searching by the way.
this is totally sweet
i love you.
[quote post="1673"]Seems nice but I encountered problems using it. My wordpress installation directory is different from my blog root. This plugin sends my wordpress installation path to google not my blog root and this is not correct (eg. http://www.gozir.com/wordpress instead of http://www.gozir.com).[/quote]
There's no option to change the search result text color. There are options for the title and links, but not the text color.
I can't figure out how to make the change with style sheets, so it would be nice to have an option.
Thanks again.
The money goes to Google of course. I would love for it to go to me but that's not how it works.
Adsense is a seperate issue entirely, and the WordPress plugin is for managing your Adsense ads on your own site.
In other words, the ads in the API search results have anything at all to do with your Adsense account.
[quote comment="245455"]HEY !
this is totally sweet
i love you.
[quote post="1673"]Seems nice but I encountered problems using it. My wordpress installation directory is different from my blog root. This plugin sends my wordpress installation path to google not my blog root and this is not correct (eg. http://www.gozir.com/wordpress instead of http://www.gozir.com).[/quote][/quote]
But I think this is not true. It must use "Blog URI" not "WordPress URI". "WordPress URI" is used to determine path to wordpress installation (path to administration url, theme, css, ...) while the blog address actually determines where the home page is.
I figured this out by changing my WordPress URI in general options: Everything got wrong, my control panel address became redirected to root address and ... . Only a db modification using phpMyAdmin helped me.
Do a search on 'prefab' and do a search on 'test' to see the difference:
http://www.smallhousestyle.com/
Best,
Jared
I think I have a problem with Your plugin. When I search for something only the "Second Search" works fine. "Web search" is always using http://www.adbundy.com as a sourse for its results and I'm not sure that "blog" search works fine either. Please help.
Thanks
æµæ°´çº¿
what do i need to do differently?
thanks!
nothing shows up at all. it's completely blank where the code is.
i'll play around with a second template and see if i can get that working.
thanks
Installed the plugin, configured it, but I don't use sidebar widgets. What's the code for placing it on my sidebar?
/* reset
--------------------------------------------------*/
body,h1,h2,h3,h4,h5,h6,p,form,fieldset {margin:0;padding:0;}
.low {display:none;}
/* body
--------------------------------------------------*/
body {
margin:0;
padding:15px 0;
font-family:Arial, Helvetica, sans-serif;
font-size:75%;
line-height:1.6em;
text-align:center;
}
body#commentspopup {padding:0;}
/* headings
--------------------------------------------------*/
h1 {font-size:30px;}
#content h2 {
margin:0 0 18px 0;
font-family:Georgia, serif;
font-size:1.6em;
font-weight:normal;
}
#content h3 {
margin:0 0 18px 0;
font-size:1em;
}
#content h4 {
margin:0;
font-size:1em;
}
#content.archive h2 {margin:0 0 26px 0;}
#content.archive h3 {
margin:0 0 10px 0;
font-family:Georgia, serif;
font-size:1.3em;
font-weight:normal;
}
#content.archive h4 {
margin:0 0 18px 0;
font-size:1em;
}
#content.archive h5 {
margin:0;
font-size:1em;
}
/* links
--------------------------------------------------*/
a {text-decoration:none;}
a img {border:none;}
/* paragraphs, lists, etc
--------------------------------------------------*/
p {
margin:0;
padding:0 0 18px 0;
}
ul {
margin:0 0 0 1.4em;
padding:0 0 18px 0;
}
ul ul {padding:0;}
blockquote {
margin:0;
padding:0 18px;
font-style:italic;
}
pre {
overflow:auto;
margin:0 0 18px 0;
padding:4px;
}
pre, code, kbr {font-family:Courier, Monaco, monospace;}
code, kbr {padding:0 2px;}
abbr, acronym {
font-size:0.9em;
letter-spacing:1px;
}
/* images
--------------------------------------------------*/
img.left {
float:left;
margin:0 12px 0 0;
}
img.right {
float:right;
margin:0 0 0 12px;
}
img.center {
display: block;
margin:0 auto;
}
/* container
--------------------------------------------------*/
#container {
width:690px;
margin:0 auto;
padding:30px 30px 0 30px;
text-align:left;
}
#commentspopup #container {
width:455px;
padding:0 15px;
}
/* header
--------------------------------------------------*/
#header {
height:115px;
padding:0 0 0 18px;
}
#header h1 {
/*display:none; This will hide the text in your header */
padding-top:50px;
}
/* navigation
--------------------------------------------------*/
#navigation {
height:2.7em;
line-height:2.7em;
}
#navigation ul {
margin:0;
padding:0;
}
#navigation li {
float:left;
margin:0;
padding:0;
list-style-type:none;
border-right:1px solid;
white-space:nowrap;
}
#navigation li a {
display:block;
padding:0 18px;
font-size:0.8em;
text-transform:uppercase;
letter-spacing:1px;
}
* html #navigation a {width:1%;} /* see http://www.positioniseverything.net/explorer/es... */
#navigation form {
float:right;
height:100%;
width:189px;
padding:0 15px;
border-left:1px solid;
line-height:0;
}
#navigation form fieldset {
/* centering the search form could've
been done way more elegant but IEWin
and Opera refused to follow the rules */
margin-top:7px;
border:0 solid; /* Opera */
}
* html #navigation form fieldset {margin-top:7px;}
#navigation #s {
height:1.5em;
width:140px;
margin:0 5px 0 0;
padding:0;
border:1px solid;
font-size:0.8em;
vertical-align:middle;
}
#navigation #searchbutton {
height:2em;
width:auto;
padding:0 1px;
border:1px solid;
font-size:9px;
letter-spacing:1px;
text-align:center;
vertical-align:middle;
}
/* content
--------------------------------------------------*/
#content {
float:left;
width:455px;
padding-top:32px;
}
.singlecol #content {
float:none;
width:550px;
margin:0 70px;
}
#commentspopup #content {
float:none;
padding-top:0;
}
/* entry
--------------------------------------------------*/
.entry {margin:0 0 40px 0;}
.entry .info {
position:relative;
margin-top:-3px;
padding:3px;
border-top:1px solid;
border-bottom:1px solid;
font-size:0.9em;
}
.entry.single {clear:both;}
.entry.single .info {margin:0 0 22px 0;}
.entry .info a {
margin-right:6px;
padding-right:9px;
border-right:1px solid;
}
.entry .info em {
padding-right:6px;
font-style:normal;
}
.entry .author,
.entry .editlink a {
margin:0;
padding:0 0 0 10px;
border-left:1px solid;
border-right:none
}
.entry #filedunder {
clear:both;
padding:3px 0 0 0;
font-size:0.9em;
border-top:1px solid;
}
/* mini-entry
--------------------------------------------------*/
.minientry {
position:relative;
margin:0px 0 35px 0;
padding:10px 0;
border-top:1px dotted;
border-bottom:1px dotted;
}
.minientry p {padding:0;}
.minientry .commentlink {
margin-left:3px;
padding-right:7px;
border-right:1px solid;
font-size:0.9em;
}
.minientry .permalink {
margin-left:3px;
font-size:0.9em;
font-style:normal;
}
.minientry .author,
.minientry .editlink a {
margin-left:6px;
padding:0 8px 0 10px;
border-left:1px solid;
font-size:0.9em;
font-style:normal;
}
.minientry .editlink a {margin:0;}
/* comments
--------------------------------------------------*/
#comments h2 {margin-bottom:24px;}
#comments h2 a {
margin-left:2px;
padding-left:6px;
border-left:1px solid;
font-family:Arial,Helvetica,sans-serif;
font-size:0.55em;
}
#comments ul {margin:0 0 0 20px;}
#comments li {
position:relative;
margin-bottom:18px;
}
#comments li p {padding:0 0 10px 0;}
#comments .header {
position:relative;
min-height:19px; /* 19 + 3 +3 = 25px = height of gravatar */
margin:0 0 10px 0;
padding:3px 6px;
}
* html #comments .header {height:19px;} /* IEWin */
#comments .header strong {font-family:Georgia,sans-serif;}
#comments .header .gravatar {
position:absolute;
top:1px;
right:1px;
}
/* form
--------------------------------------------------*/
form {padding:6px 0;}
#commentform, #contactform {margin-bottom:18px;}
form fieldset {border:0 solid;} /* Opera */
form p {
padding:6px 0;
border-bottom:1px solid;
}
form label {
display:block;
float:left;
width:60px;
}
#commentform label {margin:0 15px 0 15px;}
#contactform label {margin:0 15px 0 0;}
form em {
margin-left:5px;
font-size:0.9em;
font-style:normal;
}
form input, form textarea {
padding:3px;
width:200px;
border:1px solid;
font-family:Arial,Helvetica,sans-serif;
font-size:0.9em;
}
form textarea {overflow:auto;}
#commentform input {width:200px;}
#commentform textarea {width:325px;}
#contactform textarea, #contactform #bx_subject {width:465px;}
* html #commentform textarea {width:320px;} /* IE WIN; but why? */
* html #contactform textarea,
* html #contactform #bx_subject {width:445px;} /* IE WIN; but why? */
form .button {
width:90px !important;
border-bottom:1px solid;
font-weight:bold;
}
#commentform .button {margin-left:90px;}
#contactform .button {margin-left:75px;}
form .hiddenfield {display:none;}
form .info {padding-left:90px;}
/* archives
--------------------------------------------------*/
.archive .postspermonth {
margin:0;
list-style:none;
}
/* content misc
--------------------------------------------------*/
.next a {float:right;}
.previous a {float:left;}
#entrynavigation {
overflow: auto;
height:1%;
margin-bottom:13px;
padding-bottom:13px;
border-bottom:1px solid;
font-size:0.9em;
}
/* subcontent
--------------------------------------------------*/
#subcontent {
float:right;
width:205px;
padding:15px 0 0 15px;
font-size:0.9em;
line-height:1.5em;
}
* html #subcontent {padding-top:32px;} /* dirty fix for IEWIN; temporary! */
#subcontent ul, #subcontent p {margin:0 10px;}
/* subcontent headings
--------------------------------------------------*/
#subcontent h2 {
margin:18px 0 10px 0;
font-family:Georgia,serif;
font-size:1em;
line-height:1em;
}
#subcontent h2 em {
display:block;
padding:5px 10px;
font-style:normal;
}
/* subcontent list
--------------------------------------------------*/
#subcontent ul li {
margin:2px 0 2px 18px;
padding-bottom:2px;
border-bottom:1px solid;
}
#subcontent li a {
padding:1px 0;
height:1%; /* IE WIN */
}
#subcontent ul.categories li ul {margin:0;}
#subcontent ul.categories li li {
margin:0;
padding:0 0 3px 0;
border-bottom:none;
}
#subcontent ul.categories li ul ul {margin:0 0 0 16px;}
/* calendar
--------------------------------------------------*/
#wp-calendar {
display:inline-table;
border-collapse:collapse;
width:185px;
margin:0px 10px 0 10px;
text-align:center;
}
#subcontent table caption {
margin:-5px 10px 0 10px;
padding-bottom:5px;
border-bottom:1px solid;
letter-spacing:0.1em;
}
#subcontent table thead tr {border-bottom:1px solid;}
#subcontent table th {border-bottom:1px solid;}
#subcontent table td {
width:200px; /* maximaize width; honestly, I don't know much about tables... */
padding:1px;
font-size:0.9em;
}
#subcontent table td#today {
padding:0;
border:1px solid;
font-size:1em;
font-weight:bold;
}
#subcontent table td a {
display:block;
border-bottom:1px solid;
font-weight:bold;
font-size:1.15em;
}
#subcontent table tfoot {border-top:1px solid;}
#subcontent table tfoot a {
border:none;
font-weight:bold;
}
#subcontent table tfoot #prev a {text-align:left;}
#subcontent table tfoot #next a {text-align:right;}
/* footer
--------------------------------------------------*/
#footer {
clear:both;
padding:40px 0 15px 0;
font-size:0.9em;
}
.singlecol #footer {
padding:25px 0 15px 0;
}
#footer p {
padding:12px 0 18px 0;
border-top:1px solid;
}
#footer strong {font-weight:normal;}
.singlecol #footer p {
padding:12px 70px 18px 70px;
}
Edited:
form .button {width:90px !important;
border-bottom:1px solid;
font-weight:bold;
}
It looks like your search doesn't work either?
Gerben
but the only thing that's not really good with my version of the plugin is the layout it comes with.
i have installed the plugin and tried to begin styling it with my own custom CSS but before i got to the styling part i already noticed a slight glitch in the layout itself.
i tried editing the layout in the plugin file itself but even there i had no luck. so maybe someone can help me out here and get me back on the search of Google ajax again.
a screenshot of my layout at the moment: http://tinyurl.com/2t2s2n
taghere's a sample of the code that should be my AJAX search widget:
Lost something?