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...Skins, Themes, ...Skins, Themes, ...This skin is driving me crazy! Please help...This skin is driving me crazy! Please help...
Previous
 
Next
New Post
10/11/2007 4:46 PM
 

This is driving me nuts!  I am working on customizing an ascx skin and it keeps on erroring on me. I have been looking at it for awhile and think that I am overlooking something... Could someone please take a look and see why it errors? I appreciate it!

 

<%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="MENU" Src="Admin/Skins/SolPartMenu.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="Admin/Skins/Privacy.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TERMS" Src="Admin/Skins/Terms.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="Admin/Skins/Copyright.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="<%= SkinPath %>styles/default.css" rel="stylesheet" type="text/css" />
<link href="<%= SkinPath %>styles/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<table width="850" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
<td width="200" rowspan="2" valign="top" background="images/header-right-bg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="5"><img src="<%= SkinPath %>images/spacer.gif" width="5" height="1" /></td>
            <td><img src="<%= SkinPath %>images/spacer.gif" width="1" height="5" /></td>
            <td width="5"><img src="<%= SkinPath %>images/spacer.gif" width="5" height="1" /></td>
          </tr>
          <tr>
            <td></td>
            <td align="center" valign="top"><dnn:LOGO runat="server" id="dnnLOGO" /></td>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td align="center" valign="bottom">
                  <dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="reg_login" />
                  <span class="reg_login" >|</span>
                    <dnn:USER runat="server" id="dnnUSER" CssClass="reg_login" />
             
              </td>
            <td></td>
          </tr>
        </table></td>
        <td width="236" rowspan="2" align="center" valign="top"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="236" height="235">
          <param name="movie" value="<%= SkinPath %>flash/movie.swf" />
          <param name="quality" value="high" />
          <embed src="<%= SkinPath %>flash/movie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="236" height="235"></embed>
        </object></td>
        <td width="414" rowspan="2" valign="top" background="images/header-right-bg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="5"><img src="<%= SkinPath %>images/spacer.gif" width="5" height="1" /></td>
            <td height="5" colspan="3"><img src="<%= SkinPath %>images/spacer.gif" width="1" height="5" /></td>
            <td width="5"><img src="<%= SkinPath %>images/spacer.gif" width="5" height="1" /></td>
          </tr>
          <tr>
            <td rowspan="2"></td>
            <td colspan="3" align="right" valign="top"></td>
            <td rowspan="2"></td>
          </tr>
          <tr>
            <td colspan="3" align="center" valign="top" id="TopPane" runat="server"></td>
          </tr>
          <tr>
            <td></td>
            <td  id="Header" runat="server"></td>
            <td  id="Header2" runat="server"></td>
            <td  id="Header3" runat="server"></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#A64863">
      <tr>
        <td width="10" height="25"></td>
        <td width="98%"><dnn:MENU runat="server" id="dnnMENU" rightseparator="&lt;img src=&quot;images/nav-sep.jpg&quot;&gt;" usearrows="false" userootbreadcrumbarrow="false" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td width="10" rowspan="9"><img src="<%= SkinPath %>images/spacer.gif" width="10" height="1" /></td>
        <td ><img src="<%= SkinPath %>images/spacer.gif" width="1" height="14" /></td>
      <td width="10" rowspan="9" class="leftsideborder"><img src="<%= SkinPath %>images/spacer.gif" width="10" height="1" /></td>
        <td width="452" ><img src="<%= SkinPath %>images/spacer.gif" width="1" height="14" /></td>
        <td rowspan="8"  id="RightPane" runat="server" visible="false"></td>
        <td width="10" rowspan="8"><img src="<%= SkinPath %>images/spacer.gif" width="10" height="1" /></td>
      </tr>
      <tr>
        <td width="188" valign="top" id="LeftPane" runat="server"></td>
        <td rowspan="6" valign="top" id="Contentpane" runat="server"></td>
        </tr>
      <tr>
        <td valign="top" id="LeftPane1" runat="server"></td>
      </tr>
      <tr>
        <td valign="top" id="LeftPane2" runat="server"></td>
      </tr>
      <tr>
        <td valign="top" id="LeftPane3" runat="server"></td>
      </tr>
      <tr>
        <td valign="top" id="LeftPane5" runat="server"></td>
      </tr>
      <tr>
        <td valign="top" id="LeftPane4" runat="server"></td>
      </tr>
    <tr>
        <td valign="top" id="LeftPane6" runat="server"></td>
      </tr>
    <tr>
      <td valign="top" id="LeftPane7" runat="server"></td>
      <td colspan="2" valign="top" id="Footer" runat="server"></td>
        </tr>
      <tr>
        <td width="10"></td>
        <td></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#a64863">
      <tr>
        <td width="16" height="46" valign="top"><img src="<%= SkinPath %>images/spacer.gif" width="10" height="1" /></td>
        <td width="374" valign="middle" Class="terms-privacy" ><a href="http://www.wisweddingplanner.com/TermsofUse/tabid/139/Default.aspx">Terms of Use</a> :: <a href="http://www.wisweddingplanner.com/PrivacyStatement/tabid/140/Default.aspx">Privacy Statement</a> :: <a href="http://www.wisweddingplanner.com/Home/sitemap/tabid/300/Default.aspx">Sitemap</a></td>
        <td width="364" align="right" valign="middle"><dnn:COPYRIGHT runat="server" id="dnnCOPYRIGHT" CssClass="terms-privacy" /></td>
        <td width="10" valign="top"><img src="<%= SkinPath %>images/spacer.gif" width="10" height="1" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

 
New Post
10/19/2007 6:30 PM
 

What are the errors?

By the way,  you should remove the part from <doctype...>  to <body> and the </body></html> at the end as an ascx  is a user control that get injected in a page that already has a doctype etc.

The CSS you can import on top of your from skin.css like this:

@import url(styles/default.css);

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...This skin is driving me crazy! Please help...This skin is driving me crazy! Please help...


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