Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Google AdSense for Search and DNN SkinsGoogle AdSense for Search and DNN Skins
Previous
 
Next
New Post
11/9/2008 7:45 PM
 

I am having the same problem.  Putting the code in the text/html editor breaks the entire page.  Did you ever find an answer?

 
New Post
12/18/2008 3:59 PM
 

dwillcutts wrote
I am having the same problem.  Putting the code in the text/html editor breaks the entire page.  Did you ever find an answer?

If you intend to offer SEARCH on every page I'd recommend adding the code directly into your skin rather than a module.  Here's a post on how to swap a skin's DNN Search box for a Google Search box.  It shows the newer Google AJAX search rather than the old post-and-refresh search, but the way you add the code is the same.

   Part 1:  http://www.eguanasolutions.com/DNN_Blog/EntryID/7.aspx
   Part 2:  http://www.eguanasolutions.com/DNN_Blog/EntryID/9.aspx
   Additional:  http://www.eguanasolutions.com/DNN_Blog/EntryID/14.aspx

Here's an interesting note:  the website hosting the above postings has a working Google AJAX Search example using the code shown in the postings but the site actually houses the working example code in a Text/HTML module rather than as part of the skin (the example code works either way).

-mamlin


esmamlin atxgeek.me
 
New Post
3/22/2009 9:24 AM
 

DNN will not accept the <form> tags.  You should change the Google AdSense Search sciipt.  Instead of:

    <form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
      <div>
        <input type="hidden" name="cx" value="BLAH" />
        <input type="hidden" name="ie" value="ISO-8859-1" />
        <input type="text" name="q" size="12" />
        <input type="submit" name="sa" value="Search" />
      </div>
    </form>
 

use

      <div>
        <input type="hidden" name="cx" value="BLAH" />
        <input type="hidden" name="ie" value="ISO-8859-1" />
        <input type="text" name="q" size="12" />
        <input type="submit" name="sa" value="Search" onClick="this.form.action='http://www.google.com/cse'; this.form.id='cse-search-box'; this.form.target='_blank'; this.form.submit();" />
      </div>

or something like that.

 

 
New Post
3/22/2009 2:26 PM
 

Actually I was wrong.  This code doesn't work (even though it will pop up a couple of pages).  All you need to do is to create an HTML file with the code, upload the file to your site, create an IFrame, and point the IFrame to the file on your site.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Google AdSense for Search and DNN SkinsGoogle AdSense for Search and DNN Skins


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out