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
3/21/2006 11:12 AM
 

Hi All,

This is my first post to the forum, and I've searched on this topic extensively.  I apologize in advance if I've missed the solution.

I use DNN to drive my entire site and I use Google AdSense to deliver ads on the site.  I  would also like to use Google AdSense for Search, which provides a Google search capability from within the site, but this breaks the DNN skin and does not function (as further described below).  As with AdSense for Content, Google generates the HTML to be used for the search form.

Here is what happens.  Suppose I create a brand new page on my DNN site.  It uses the default Horizontal menu, fixed-width DNN-Gray skin with very basic CSS modifications (text colors and backgrounds only).  I then add a Text/HTML module to the Content Pane.  So far, so good.  The page renderrs fine and everything is as it should be.

I then take the Google-generated "Search Box" code and paste it into the Text/HTML module (using the HTML editor) and update the page.  When the update is complete, the Right Pane is rendered below the Copyright on the page -- the rendering is screwed up.  Somehow the Google-generated code is interfering with the DNN module/page code. 

As soon as I remove the Google-generated code, the problem goes away and the Right Pane goes back into place.

This is really an annoyance.  I was relying on the ability to drive Google searches from my site, and need to resolve the problem.  Unfortunately, due to the Google T&C I cannot share the Google-generated code with you.  I have asked Google for help, but we'll see how long that takes.  My hope is that someone here has, either directly or indirectly, heard of this problem in the past. 

My first guess is that the DNN search form and the Google Search Box conflict.  I think I might try modifying the default skin to not present the [SEARCH] in the menu bar.

Any thoughts/advice are welcome.  This is a problem for the community at large, and I'm sure  that I'm not the only one effected by this.

Thanks in advance.

Adam

 
New Post
3/21/2006 8:15 PM
 
Hi Adam,

Don't worry about not being able to find your answer around here or the other forums.. DNN-related support and communication channels are so broadly and disparately frameworked and sectioned that it is no simple task to hook up with the people who can help.

In any case.. I might be someone who can help... so here are some options for you to consider:

First, when using the Text/HTML module in Basic view to insert HTML; make absolutely sure you have ticked the radio button to switch to HTML mode each time you use it. I have overlooked that once or twice myself when inserting or editing code snippets. No doubt you will have checked this point many times by now.

Second, add table tags around the HTML you are inserting. The problem you see is likely a missing tag, a bracket, or some other cell layout problem. Enclosing your bits in a table will immunise them from whatever else is going on.

<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>googly bits</td>
    </tr>
</table>


Third, for googlestuff that is to appear on each and every page in the same place, add the code directly to the skin ascx file.

Fourth, fix the skin... nah
Well you could if you felt like it.

Lemme know how you get on.
Rob
 
New Post
3/21/2007 9:20 AM
 
Thanx for the great stuff, very useful.
 
New Post
3/21/2007 9:57 AM
 

Sounds like the editor is messing with the code.

You could just paste the html code from Google to the header section of a module in it's admin settings.

Select a suitable text module or create a new one in the right place. Go to Module settings, expand advanced settings then paste the html code in to the header section. This will not be fritzed by the editor, no need to worry about always selecting the right setting when updating the module.

 
New Post
9/16/2008 6:17 PM
 

I'm also having trouble geting google Adsense Search to work our site. I place the google code in the text/html editor. (I covered the basics including the above suggestion) and when I click submit, the page refresh and to the same starting point...  What I mean if I'm on the home page, when I click submit, the page refresh and opens back to home with no search results. It should open up to a new page that I had created and asigned for search results.

If you want to take a look at what I'm refering to view the search on www.belmopancityonline.com and it should open up on this page www.belmopancityonline.com/searchresult.aspx

 
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