PDA

View Full Version : Template Problems, Need help.


Seraph
04-05-2006, 09:36 AM
Here it goes, hopefully someone can see what the problem is as I can't. When the page is a story the bottom table backgrounds work find, when it's a page they don't. Here's what I have set up ad my node template:

<div align="center">
<if condition="$node->type == 'story'">
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="left" height="50" background="http://www.sexualforums.com/img/contentheaders.jpg">&nbsp;&nbsp;<span class="smallfont"><b><font size="2">$ntitle</font></b><br>
&nbsp;&nbsp;<span class="headNote">$nsubmitted</span></td>
</tr>
</if>
<tr<if condition="$node->type == 'story'"> class="contentbgs"</if>><td align="left">
<table width="100%" height="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td>
$ncontent
</td>
</tr>
</table>
</td></tr>
<if condition="$show[links]">
<tr>
<td align="right" class="contentbgs">$nlinks&nbsp;&nbsp;</td>
</tr></if>
<if condition="$node->type == 'story'">
<td height="2" background="http://www.sexualforums.com/img/contentbottoms.jpg"></td>
</tr>
</if>
</table>
<br>



You can see what the problem is here:

Go here: http://www.sexualforums.com/onlinedatingtrust and scroll to the bottom, page is fine.

Go here: http://www.sexualforums.com/articlesdating And scroll to the bottom. The backgrounds are not showing up.

myetalk
04-05-2006, 09:46 AM
Here it goes, hopefully someone can see what the problem is as I can't. When the page is a story the bottom table backgrounds work find, when it's a page they don't. Here's what I have set up ad my node template:

<div align="center">
<if condition="$node->type == 'story'">
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="left" height="50" background="http://www.sexualforums.com/img/contentheaders.jpg">&nbsp;&nbsp;<span class="smallfont"><b><font size="2">$ntitle</font></b><br>
&nbsp;&nbsp;<span class="headNote">$nsubmitted</span></td>
</tr>
</if>
<tr<if condition="$node->type == 'story'"> class="contentbgs"</if>><td align="left">
<table width="100%" height="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td>
$ncontent
</td>
</tr>
</table>
</td></tr>
<if condition="$show[links]">
<tr>
<td align="right" class="contentbgs">$nlinks&nbsp;&nbsp;</td>
</tr></if>
<if condition="$node->type == 'story'">
<td height="2" background="http://www.sexualforums.com/img/contentbottoms.jpg"></td>
</tr>
</if>
</table>
<br>



You can see what the problem is here:

Go here: http://www.sexualforums.com/onlinedatingtrust and scroll to the bottom, page is fine.

Go here: http://www.sexualforums.com/articlesdating And scroll to the bottom. The backgrounds are not showing up.
no idea sorry...

Seraph
04-05-2006, 10:04 AM
That's helpful. Thanks though.

Seraph
04-07-2006, 07:32 PM
Found the issue. I am such an idiot..

<if condition="$node->type == 'story'">
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="left" height="50" background="http://www.sexualforums.com/img/contentheaders.jpg">&nbsp;&nbsp;<span class="smallfont"><b><font size="2">$ntitle</font></b><br>
&nbsp;&nbsp;<span class="headNote">$nsubmitted</span></td>
</tr>
</if>

Should have been

<table width="520" border="0" cellspacing="0" cellpadding="0">
<if condition="$node->type == 'story'">
<tr>
<td valign="middle" align="left" height="50" background="http://www.sexualforums.com/img/contentheaders.jpg">&nbsp;&nbsp;<span class="smallfont"><b><font size="2">$ntitle</font></b><br>
&nbsp;&nbsp;<span class="headNote">$nsubmitted</span></td>
</tr>
</if>


It was cutting off the table tags.