You need to Register for free and Login to post a message in the forum.

Forum

Subject: How to place google adsense within DNN-blue skin
Prev Next
You are not authorized to post a reply.

Author Messages
cipher2079
DNN Creative Magazine Subscriber
Nuke Pro
Nuke Pro
Posts:65

12 Jan 2007 1:59 PM  
hi lee,

I am currently trying to enter an adsense within the DNN-blue skin
however I am having a problem with wrapping the adsense with the

paragraphs

when I run the website the adsense appears within the title bar
I have tried to play around with the ascx code and the adsense

appears everywhere except within the paragraphs


here is my code:
    container:
        Image Header - White Background.ascx:

             <TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
              <TR>
                <TD valign="middle" nowrap><dnn:ACTIONS runat="server" id="dnnACTIONS" /></TD>
                <TD valign="middle" nowrap><dnn:ICON runat="server" id="dnnICON" /></TD>
                <TD valign="middle" width="100%" nowrap>&nbsp;<dnn:TITLE runat="server" id="dnnTITLE" /></TD>
                 <TD class="googlesquareleft"><script type="text/javascript"><!--
                google_ad_client = "pub-4326389331401253";
                google_ad_width = 250;
                google_ad_height = 250;
                google_ad_format = "250x250_as";
                google_ad_type = "text";
                //2006-10-14: dnn example
                google_ad_channel = "7119732510";
                google_color_border = "F7F7F7";
                google_color_bg = "F7F7F7";
                google_color_link = "F7F7F7";
                google_color_text = "000000";
                google_color_url = "003366";
                //--></script>
                <script type="text/javascript"
                  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script></TD>
                <TD valign="middle" nowrap><dnn:VISIBILITY runat="server" id="dnnVISIBILITY" /><dnn:ACTIONBUTTON5 runat="server" id="dnnACTIONBUTTON5" CommandName="ModuleHelp.Action" DisplayIcon="True" DisplayLink="False" /></TD>
               </TR>
            </TABLE>

    container:
       Image Header - White Background.html:
          <TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
              <TR>
                <TD align="left" valign="middle" nowrap>[ACTIONBUTTON:1]</TD>
                 <p class="googlesquareleft"><script type="text/javascript"><!--
                google_ad_client = "pub-4326389331401253";
                google_ad_width = 250;
                google_ad_height = 250;
                google_ad_format = "250x250_as";
                google_ad_type = "text";
                //2006-10-14: dnn example
                google_ad_channel = "7119732510";
                google_color_border = "F7F7F7";
                google_color_bg = "F7F7F7";
                google_color_link = "F7F7F7";
                google_color_text = "000000";
                google_color_url = "003366";
                //--></script>
                <script type="text/javascript"
                  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script></p>
                <TD align="right" valign="middle" nowrap>[ACTIONBUTTON:2]&nbsp;[ACTIONBUTTON:3]&nbsp;[ACTIONBUTTON:4]</TD>
              </TR>
            </TABLE>


    container:
       container.css:
             .googlesquareleft
{
    width: 252px;
    height: 252px;
    margin: 15px 10px 5px 10px;
    float: left; /*allows main content to wrap around google ad */
    /* note: after this we need to use the clear class to clear the
        end of the container */
}
      
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3304

13 Jan 2007 8:56 AM  
Hello,

I've just taken the DNN Blue container and put adsense in the text area. - This is the code I used - you will notice I placed the code inside the table cell for the content area of the container:

<TABLE class="containermaster_blue" cellSpacing="0" cellPadding="5" align="center" border="0">
        <TR>
          <TD class="containerrow1_blue">
            <TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
              <TR>
                <TD valign="middle" nowrap><dnn:ACTIONS runat="server" id="dnnACTIONS" /></TD>
                <TD valign="middle" nowrap><dnn:ICON runat="server" id="dnnICON" /></TD>
                <TD valign="middle" width="100%" nowrap>&nbsp;<dnn:TITLE runat="server" id="dnnTITLE" /></TD>
                <TD valign="middle" nowrap><dnn:VISIBILITY runat="server" id="dnnVISIBILITY" /><dnn:ACTIONBUTTON5 runat="server" id="dnnACTIONBUTTON5" CommandName="ModuleHelp.Action" DisplayIcon="True" DisplayLink="False" /></TD>
              </TR>
            </TABLE>
          </TD>
        </TR>
        <TR>
          <TD class="containerrow2_blue" id="ContentPane" runat="server" align="center"><p class="googlesquareleft_ih"><script type="text/javascript"><!--
google_ad_client = "pub-0292528573481571";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text";
google_ad_channel ="7735649050";
google_color_border = "E9D8D8";
google_color_bg = "E9D8D8";
google_color_link = "003366";
google_color_text = "000000";
google_color_url = "003366";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p></TD>
        </TR>
        <TR>
          <TD class="containerrow2_blue">
            <HR class="containermaster_blue">
            <TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
              <TR>
                <TD align="left" valign="middle" nowrap><dnn:ACTIONBUTTON1 runat="server" id="dnnACTIONBUTTON1" CommandName="AddContent.Action" DisplayIcon="True" DisplayLink="True" /></TD>
                <TD align="right" valign="middle" nowrap><dnn:ACTIONBUTTON2 runat="server" id="dnnACTIONBUTTON2" CommandName="SyndicateModule.Action" DisplayIcon="True" DisplayLink="False" />&nbsp;<dnn:ACTIONBUTTON3 runat="server" id="dnnACTIONBUTTON3" CommandName="PrintModule.Action" DisplayIcon="True" DisplayLink="False" />&nbsp;<dnn:ACTIONBUTTON4 runat="server" id="dnnACTIONBUTTON4" CommandName="ModuleSettings.Action" DisplayIcon="True" DisplayLink="False" /></TD>
              </TR>
            </TABLE>
          </TD>
        </TR>
      </TABLE>
      <BR>

CSS code:
.googlesquareleft_ih
{
    width: 252px;
    height: 252px;
    margin: 15px 10px 5px 10px;
    float: left; /* allows main content to wrap around google ad */
    /* note after this the clear class is called up at the end of the container
     to clear the float */
}

Hope this helps, thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
cipher2079
DNN Creative Magazine Subscriber
Nuke Pro
Nuke Pro
Posts:65

14 Jan 2007 10:11 PM  
Thanks for your quick and clear response
You are not authorized to post a reply.
Forums > Users Lounge > Everything Else > How to place google adsense within DNN-blue skin



ActiveForums 3.7

Latest Forum Posts

RE: EasyCGI help? by Dr Joe
I'll let you know how it works out. I think I opened up about 6 tickets with them so far. ...
RE: EasyCGI help? by derpir
Hi Joe amazing to say the least! I will change host to PowerDNN as soon as possible, seems to me t...
RE: EasyCGI help? by Dr Joe
Amazing - I'm going through this exact same thing with EasyCGI! I managed to successfully instal...
Running the local host installation after building the application by saintX
My localhost installation of DNN was running blameless. After I oppened the application with VWD it ...
RE: quick question by derpir
Hello Is it possible to buy two skins and combine them? for example put one skins visual attributes...
RE: Environment Variables by leesykes
Thanks for the info,
RE: How can i edit any module from front end by sanju_k1421
ok if i added an text html . now i want to fill into that have to log in ,but i want that an...
Module not working when logged off. by t.ramya85
Hi friends,I have created two modules which interact with each other and i have kept one module to b...
RE: Environment Variables by fandnet
There are many ways to use variables like what I was trying to use...But here is how I did it.DotNet...
RE: OpenForce '08 by mgordon
It was truly a great time.  I really feel this year was much better than last year.  I hope to ge th...
Environment Variables by fandnet
I am creating a simple module that registered users can use to send an email invitation to people wh...
RE: How can i edit any module from front end by leesykes
I'm not sure that I follow, could you provide an example?
RE: Development of modules by leesykes
Hello,Glad you find them useful, at the moment there are not any plans to go into Module Development...
RE: SQL Server 2008 Documents Module DotNetNuke by leesykes
Hello,Thanks for the tip. Yes both connection strings are in correctly and the user has full permiss...
RE: Now, portal creation problem by jncraig
Since you have other issues with installing modules, etc. I believe that you are correct that it's a...
RE: How do I display the current time by jncraig
The [CURRENTDATE] skin object has a DateFormat attribute. The examples give MMMM dd, yyyy as a typi...
RE: Now, portal creation problem by SupaHoopsa
Posted By jncraig on 18 Nov 2008 8:54 AMIf there are other errors related to the database, I would s...
RE: SQL Server 2008 Documents Module DotNetNuke by MobileNow
Make sure that both of the connection strings are the same in the web.config file. Also make sure t...
RE: Now, portal creation problem by jncraig
If there are other errors related to the database, I would start by looking there.  This could be so...
Un-installing SQL Server 2005 by leesykes
I'm in the process of un-installing SQL Server 2005 and while doing this it informs me that Full Tex...
AppTheory
RSS Feeds