Google search

I added the adsense search code to my site (in hope of generating a little more income) and made a new page for results, as required by google adsense.

However, the block I created on the page will only show the first result, although i can see that there are more than one result per search.

Has anyone experienced this?

Quote · 4 Mar 2013

I've had great results with the google search, showing lots of content.

Recheck your code. Can you PM your site link?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

wow. thanks so much for offering to help. just pm'd you link.

Quote · 4 Mar 2013

In your code, you have set your width on the results page.

var googleSearchFrameWidth = 850;

you need to add the "height," and set at something like 1000px

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

Added height. Cleared cache.

Still no joy!

Quote · 4 Mar 2013

Here's something I just noticed.

The AdSense code gives me this to implement in the box :

<div id="cse-search-results"></div>

<script type="text/javascript">

  var googleSearchIframeName = "cse-search-results";

  var googleSearchFormName = "cse-search-box";

  var googleSearchFrameWidth = 850;

  var googleSearchDomain = "www.google.com";

  var googleSearchPath = "/cse";

</script>

<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>

But when i save, then open the HTML block, i find this : 
 
<div style="height: 1000px!important;" id="cse-search-results"></div>
<script type="text/javascript">// <![CDATA[
var googleSearchIframeName = "cse-search-results";
  var googleSearchFormName = "cse-search-box";
  var googleSearchFrameWidth = 850;
  var googleSearchDomain = "www.google.com";
  var googleSearchPath = "/cse";
// ]]></script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
 
(I added the height myself)
Who can help me here?
Quote · 4 Mar 2013

On that, 

read this, it has a lot to do with Dolphin striping code.

http://www.boonex.com/forums/topic/How-Do-I-Add-Facebook-Fans-Box--2010-12-14.htm

even though this is for something different it may solve your problems.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

Nope.  Followed your instructions to apply directly in phpmyadmin.  Cleared cache.  Same problem.  Only the 1st result shows up and the rest is hidden, though a full page of results appears for a second, then disappears again.

Quote · 4 Mar 2013

 

Nope.  Followed your instructions to apply directly in phpmyadmin.  Cleared cache.  Same problem.  Only the 1st result shows up and the rest is hidden, though a full page of results appears for a second, then disappears again.

 have you cleared your cache?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

cleared cache is something i do by nature ;)

 

So here's how it was fixed.

a. follow newton's link above to see how to get the adsense code in via phpmyadmin.

b. to add height to your block, add this to the AdSense code itself

var googleSearchFrameHeight = 1000;

c. clear cache

Done.

Thanks to newton for the support and tips.

Quote · 4 Mar 2013

 

cleared cache is something i do by nature ;)

 

So here's how it was fixed.

a. follow newton's link above to see how to get the adsense code in via phpmyadmin.

b. to add height to your block, add this to the AdSense code itself

var googleSearchFrameHeight = 1000;

c. clear cache

Done.

Thanks to newton for the support and tips.

 Your welcome Cool

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

OK. Not working again.

  • When I clear cache, it works.
  • Then a try another search and only one search result appears.
  • So I clear cache, and a full page of results appears.
  • But if I try another search straight after, only one result appears again!! 

Tested on 2 browsers.  caches cleared...

Anybody?

Quote · 4 Mar 2013

 

OK. Not working again.

  • When I clear cache, it works.
  • Then a try another search and only one search result appears.
  • So I clear cache, and a full page of results appears.
  • But if I try another search straight after, only one result appears again!! 

Tested on 2 browsers.  caches cleared...

Anybody?

 <div class="boxContent"><div class="dbContentHtml bx-def-bc-margin"><div id="cse-search-results"><iframe name="googleSearchFrame" src="http://www.google.com/cse?cx=partner-pub-6217357236%3A3121856484&amp;cof=FORID%3A10&amp;ie=UTF-8&amp;q=boonex+support&amp;sa=Search&amp;siteurl=xxxxxxxx.xxx%2Fpage%2Ffind&amp;ref=www.boonex.com%2Fmail%2Fmsg%2F1289857%2Finbox%2F0&amp;ss=5665j2913315j16&amp;ad=n9&amp;num=10&amp;rurl=http%3A%2F%2Fxxxxxxxx.xxx%2Fpage%2Ffind%3Fcx%3Dpartner-pub-6217%253A3121856484%26cof%3DFORID%253A10%26ie%3DUTF-8%26q%3Dboonex%2Bsupport%26sa%3DSearch%26siteurl%3Dxxxxxxx.xxxx%252Fpage%252Ffind%26ref%3Dwww.boonex.com%252Fmail%252Fmsg%252F1289857%252Finbox%252F0%26ss%3D5665j2913315j16" frameborder="0" width="850" height=".UTUKNTDrwi4px" marginwidth="0" marginheight="0" hspace="0" vspace="0" allowtransparency="true" scrolling="no"></iframe></div>

<script type="text/javascript">

  var googleSearchIframeName = "cse-search-results";

  var googleSearchFormName = "cse-search-box";

  var googleSearchFrameWidth = 850;

var googleSearchFrameHeight = 1000;

  var googleSearchDomain = "www.google.com";

  var googleSearchPath = "/cse";

</script>

You need to turn all cache options off while troubleshooting.

That height is coming from another source...your clearing the cache and it works, then it stores that for some reason.

What type of cache system are you using?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

 

You need to turn all cache options off while troubleshooting.

That height is coming from another source...your clearing the cache and it works, then it stores that for some reason.

What type of cache system are you using?

 

Installed Available
File Yes Yes
EAccelerator Yes No
Memcache No No
APC No No
XCache No No
Quote · 4 Mar 2013

looking more at what you have in the PM I sent you.

when a member uses the search box in header that you have on all of the site; how are you telling it to display the found results on the page you created? e.g. /page/find/

That is not in the script and I have not seen it done that way, to return results to a certain page.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

I create the page. Then i input that link in Google AdSense for their search box option, and then they provide the code to add to the block in the page i created.

when a member uses the search box in header that you have on all of the site; how are you telling it to display the found results on the page you created? e.g. /page/find/

That is not in the script and I have not seen it done that way, to return results to a certain page.

 

Quote · 4 Mar 2013

 

I create the page. Then i input that link in Google AdSense for their search box option, and then they provide the code to add to the block in the page i created.

when a member uses the search box in header that you have on all of the site; how are you telling it to display the found results on the page you created? e.g. /page/find/

That is not in the script and I have not seen it done that way, to return results to a certain page.

 

 oh, ok forgot about that option.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

I have what you want working here.

http://webcamyourface.com/

use the search box and search what ever you want and your results will be on the page I set.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

so if it works in yours, why isnt it working on mine???

Quote · 4 Mar 2013

 

so if it works in yours, why isnt it working on mine???

 lol, that is why I'm curious where your getting those strange links.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

is there any difference between your adsense code and mine?

and how does your cache compare?

Quote · 4 Mar 2013

This is what is in the database for the page...

<center><div id="cse-search-results"></div>

<script type="text/javascript">

  var googleSearchIframeName = "cse-search-results";

  var googleSearchFormName = "cse-search-box";

  var googleSearchFrameWidth = 800;

  var googleSearchDomain = "www.google.com";

  var googleSearchPath = "/cse";

</script>

<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>

The other code, 

<form action="http://webcamyourface.com/page/google_results" id="cse-search-box">

  <div>

    <input type="hidden" name="cx" value="partner-pub-xxxxxx:2531462266" />

    <input type="hidden" name="cof" value="FORID:10" />

    <input type="hidden" name="ie" value="UTF-8" />

    <input type="text" name="q" size="55" />

    <input type="submit" name="sa" value="Search" />

  </div>

</form>

<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>

is in a banner.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

ok. so there is no difference in our code.

plus i placed it via phpmyadmin like your instructions.

so its cache-related?? truly confused.

Quote · 4 Mar 2013

 

ok. so there is no difference in our code.

plus i placed it via phpmyadmin like your instructions.

so its cache-related?? truly confused.

 still not sure.

your getting that string of code and it is messing it up.

you have some tracking code on the site?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

you mean like google analytics? yes.

Quote · 4 Mar 2013

 

you mean like google analytics? yes.

 so your form for the search, where did you put it?

like I noted, for this test, I placed the "form" code in the top banner.

and of course the results return page we have in our database the same.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 4 Mar 2013

 my form code is in the top banner too. so we set it up exactly the same.

very confused.

so your form for the search, where did you put it? 

like I noted, for this test, I placed the "form" code in the top banner.

and of course the results return page we have in our database the same.

 

Quote · 4 Mar 2013

If you want me to help further, you going to have to let me in on your server.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 5 Mar 2013

OK.  Sending you details now. thanks

Quote · 5 Mar 2013

 

OK.  Sending you details now. thanks

 Your all fixed now.. Cool

your going to have to clear all your browser cache settings.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 5 Mar 2013

I've tried it again on 3 different browsers and STILL i only get the fist result showing.  Caches cleared, yes.

I'm at a loss here.  

Quote · 7 Mar 2013

just a thought to throw out there - what about trying a different height other than 1000, I ask because what if the 1000 (for some strange reason) is being viewed as a variable and plugging in what the variable is (.UTUKNTDrwi4px)

or - what about putting 1000px instead of just the 1000

I dont know, but trying to think of things to help out.

caredesign.net
Quote · 7 Mar 2013

 

just a thought to throw out there - what about trying a different height other than 1000, I ask because what if the 1000 (for some strange reason) is being viewed as a variable and plugging in what the variable is (.UTUKNTDrwi4px) ----> this is just the AddThis code. 

or - what about putting 1000px instead of just the 1000 ----> tried this.  no effect.

I dont know, but trying to think of things to help out. ----> totally appreciate any help I can get because this is driving me nuts. 

 

Quote · 7 Mar 2013

You can try my homepage at: http://www.dialme.com

In the "Optimized Search Powered by Google" section on the right sidebar enter a search. The results should provide what you are trying to do. Nothing fancy, but it looks decent enough.

I tweaked Google search code in my account to match my site.

I also use a static page that I have uploaded to my account called: search_results.php with the custom google iframe code. A long with a Dolphin .css and index customization.

Other than that the original search code is in a block on the home page.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 7 Mar 2013

i want one of those!!.. under the banner search things like newt has!

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 7 Mar 2013

 

You can try my homepage at: http://www.dialme.com

In the "Optimized Search Powered by Google" section on the right sidebar enter a search. The results should provide what you are trying to do. Nothing fancy, but it looks decent enough. ---> Is this the Google Search code you get via AdSense or just the general Google search code you don't get paid for?

I tweaked Google search code in my account to match my site. ---> Do you mean just CSS? Or what other tweaks did you use?

I also use a static page that I have uploaded to my account called: search_results.php with the custom google iframe code. A long with a Dolphin .css and index customization. ---> So you mean this page search_results.php was NOT a page built inside the Dolphin page builder?

Other than that the original search code is in a block on the home page.

 Thanks for your proposal.  My replies are in red.

Quote · 7 Mar 2013

 

i want one of those!!.. under the banner search things like newt has!

 it works fine and is easy T, webcamyourface.com has a demo search with landing page.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 7 Mar 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.