1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help! Google Custom Search Implementation Issue

Discussion in 'AdSense' started by M_ac, Jan 11, 2010.

  1. #1
    I have been trying to add Google Custom Search to my website. I have copied the code etc, but when I do a search the search results page links to some random page on my site, see below.

    Its supposed to link to http://www.bblogic.com/misc.php?do=page&template=gsearch

    But instead it links to http://www.bblogic.com/misc.php?cx=...=&sa=Search&siteurl=www.bblogic.com/forum.php

    Search Box Code
    
    <form action="http://www.bblogic.com/misc.php?do=page&amp;template=gsearch" id="cse-search-box">
      <div>
        <input type="hidden" name="cx" value="partner-pub-X2XXXX933XXXX02:71XXrslXXne" />
        <input type="hidden" name="cof" value="FORID:11" />
        <input type="hidden" name="ie" value="ISO-8859-1" />
        <input type="text" name="q" size="30" />
        <input type="submit" name="sa" value="Search" />
      </div>
    </form>
    <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en"></script>
    
    Code (markup):
    Search Results Code
    
    <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>
    
    
    Code (markup):
    Thanks
     
    M_ac, Jan 11, 2010 IP
  2. Aj khan

    Aj khan Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    surely you'd want to contact google with this !
     
    Aj khan, Jan 11, 2010 IP
  3. M_ac

    M_ac Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have looked through countless threads on their site, no luck :(
     
    M_ac, Jan 11, 2010 IP
  4. M_ac

    M_ac Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I fixed it, I put in some hidden attributes. Thanks
     
    M_ac, Jan 12, 2010 IP