1
VyseVilifous
Custom theme error, left and right colums disappear

I'm trying to code a custom skin (not a very good one I admit, but I digress) but whenever I upload the theme.html file, it seems to work okay, except the left and right columns don't show up (though any data from the main center column is there, i haven't tried any of those center subcolumns yet).

I did that thing where you combine all the files to one html file (I saw it used on the 7dana-rose skin that I like and tried to do it with this).

Here is the code for the page:

<html>
<
head>
<
title>Website Title To Go Here Baka-kinstitle>
head>
<
body bgcolor="#FFFFFF" text="#000000" background="<{$xoops_imageurl}>bg.gif">
<
div align="center">
  <
center>
  <
table border="0" width="800" cellspacing="0" cellpadding="0">
    <
tr>
      <
td width="800" colspan="3"><img border="0" src="<{$xoops_imageurl}>topbanner.gif" width="800" height="100">td>
    tr>
  center>
  <
tr>
    <
td width="800" colspan="3" bgcolor="#993366">
      <
p align="right"><font face="Verdana" color="#FFFFFF" size="1"><b><{$smarty.now|date_format:"%A. %B %e. %Y"}>b>font>td>
  tr>
  <
tr>
    <
font face="Verdana" size="2"><td id="leftcolumn" width="150" bgcolor="#993366" valign="top">
        
<{foreach 
item=block from=$xoops_lblocks}> 
            <
div class="<{cycle values="blockTitle"}>"><{$block.title}>div
            <
div class="blockContent"><{$block.content}>div
             <
p>
            <{/foreach}> 
                   
      td>
    <
center>
    <
td id="centercolumn" width="500" bgcolor="#993366" valign="top">
        
<{if 
$xoops_showcblock == 1}> 
            <
table cellspacing="0"
              <
tr
                <
td id="centerCcolumn" colspan="2" 
<{foreach 
item=block from=$xoops_ccblocks}> 
                  <
table align="center" cellpadding="0" cellspacing="2"
                    <
tr
                      <
td> <div class="blockTitle"><{$block.title}>div
                        <
div class="blockContent"><{$block.content}>div>td
                    tr
                  table
<{/foreach}> 
                   td
              tr
              <
tr
                <
td id="centerLcolumn" 
<{foreach 
item=block from=$xoops_clblocks}> 
                  <
table align="center" cellpadding="3" cellspacing="2"
                    <
tr
                      <
td> <div class="blockTitle"><{$block.title}>div
                        <
div class="blockContent"><{$block.content}>div>td
                    tr
                  table
<{/foreach}> 
                   td
                <
td id="centerRcolumn" 
<{foreach 
item=block from=$xoops_crblocks}> 
                  <
table align="center" cellpadding="3" cellspacing="2"
                    <
tr
                      <
td> <div class="blockTitle"><{$block.title}>div
                        <
div class="blockContent"><{$block.content}>div>td
                    tr
                  table
<{/foreach}> 
                   td
              tr
            table
<{/if}> 
             
            <
div id="content"> <{$xoops_contents}> div
      td>
    center>
    <
td id="rightcolumn" width="150" bgcolor="#993366" align="right" valign="top">
        
<{foreach 
item=block from=$xoops_rblocks}> 
            <
div class="<{cycle values="blockTitle,blockTitle"}>"><{$block.title}>div
            <
div class="blockContent"><{$block.content}>div
            <
p>
            <{/foreach}> 
             
      td>
  tr>font>
  table>
div>
body>
html>


Many thanks to anyone to can help! Sorry that the code is a bit messy. A cross between a WYSIWYG editor (nuuu don't laugh) and putting the HTML in that I need.

(Oh by the way, whenever I switch to a well made skin, including the 7dana-rose one, the left and right columns show up fine, so it's not that they're disabled or anything).

2
astonstreet
Re: Custom theme error, left and right colums disappear

I just tested that code and it worked for me on my local system, showed left and right blocks... it must be something you have above the body tag?

I just copy and pasted everything above body tag from default theme and it worked...

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" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<
meta name="robots" content="<{$xoops_meta_robots}>" />
<
meta name="Keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="Description" content="<{$xoops_meta_description}>" />
<
meta name="rating" content="<{$xoops_meta_rating}>" />
<
meta name="author" content="<{$xoops_meta_author}>" />
<
meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
meta name="generator" content="XOOPS" />
<
title><{$xoops_sitename}>-<{$xoops_pagetitle}>title>
<
link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />

<{
$xoops_module_header}>
<
script type="text/javascript">

script>
head>
<
body bgcolor="#FFFFFF" text="#000000" background="<{$xoops_imageurl}>bg.gif">
<
div align="center">
  <
center>
  <
table border="0" width="800" cellspacing="0" cellpadding="0">
    <
tr>
      <
td width="800" colspan="3"><img border="0" src="<{$xoops_imageurl}>topbanner.gif" width="800" height="100">td>
    tr>
    <
tr>
      <
td width="800" colspan="3" bgcolor="#993366">
        <
p align="right"><font face="Verdana" color="#FFFFFF" size="1"><b><{$smarty.now|date_format:"%A. %B %e. %Y"}>b>font>td>
    tr>
    <
tr> <font face="Verdana" size="2">
      <
td id="leftcolumn" width="150" bgcolor="#993366" valign="top">
        
<{foreach 
item=block from=$xoops_lblocks}>
      <
div class="<{cycle values="blocktitle"}>"><{$block.title}>div>
      <
div class="blockContent"><{$block.content}>div>
      <
p> <{/foreach}>
          
      td>
      <
center>
        <
td id="centercolumn" width="500" bgcolor="#993366" valign="top">
          
<{if 
$xoops_showcblock == 1}>
        <
table cellspacing="0">
          <
tr>
            <
td id="centerCcolumn" colspan="2">
              
<{foreach 
item=block from=$xoops_ccblocks}>
              <
table align="center" cellpadding="0" cellspacing="2">
                <
tr>
                  <
td>
                    <
div class="blockTitle"><{$block.title}>div>
                    <
div class="blockContent"><{$block.content}>div>td>
                tr>
              table>
<{/foreach}>
              
            td>
          tr>
          <
tr>
            <
td id="centerLcolumn">
              
<{foreach 
item=block from=$xoops_clblocks}>
              <
table align="center" cellpadding="3" cellspacing="2">
                <
tr>
                  <
td>
                    <
div class="blockTitle"><{$block.title}>div>
                    <
div class="blockContent"><{$block.content}>div>td>
                tr>
              table>
<{/foreach}>
              
            td>
            <
td id="centerRcolumn">
              
<{foreach 
item=block from=$xoops_crblocks}>
              <
table align="center" cellpadding="3" cellspacing="2">
                <
tr>
                  <
td>
                    <
div class="blockTitle"><{$block.title}>div>
                    <
div class="blockContent"><{$block.content}>div>td>
                tr>
              table>
<{/foreach}>
              
            td>
          tr>
        table>
<{/if}>
        
        <
div id="content"> <{$xoops_contents}> div>td>
      center>
      <
td id="rightcolumn" width="150" bgcolor="#993366" align="right" valign="top">
        
<{foreach 
item=block from=$xoops_rblocks}>
      <
div class="<{cycle values="blocktitle,blocktitle"}>"><{$block.title}>div>
      <
div class="blockContent"><{$block.content}>div>
      <
p> <{/foreach}>
          
      td>
    font>tr>
  table>
div>
body>
html>


hope ive been a help.

3
VyseVilifous
Re: Custom theme error, left and right colums disappear

I had to delete some old files and re-upload things, but I eventually got it working.
Thanks for your help! ^_^

Login

Who's Online

434 user(s) are online (302 user(s) are browsing Support Forums)


Members: 0


Guests: 434


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits