Welcome to Geeklog, Anonymous Thursday, November 14 2024 @ 10:45 am EST

Geeklog Forums

HTML problems


Status: offline

orfilms

Forum User
Regular Poster
Registered: 08/02/05
Posts: 70
Okay just when I thought I had everything running good I'm starting to encounter a html code problem (I think) that I can't work around.

Please look at my site: www.slashfilm.com which uses the Project XU template.

Everything was working fine and is working fine on most of the pages other than the articles themselves. See the text "test" which is in the begining of the footer of the page? Well on the articles themselves it ends up somewhere in the header... but only in the articles?! Every other section of the site displays the "test" text where I want it. I've replaced most of the template files and can't figure this one out. Anyone have any ideas?

Thanks in advance
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Not sure I understand - where does that stray "test" come from and where do you expect it to be?

bye, Dirk
 Quote

Status: offline

orfilms

Forum User
Regular Poster
Registered: 08/02/05
Posts: 70
The stray text "test" is supossed to appear underneath the content at the top of the footer. If you look at the index of my site or any other page other than the article pages themselves, you will see the "test" text where I want it.

But then look at one of the articles and see how somehow the test text gets moved to above the left block in what looks to be some kind of table error. I don't know how this is happening. And it's only happening in pages with article.php.

So maybe the question is either:

1. does anyone know why the text is moving?
or
2. what types of html (or thtml) code does article.php pull up that isn't in the rest of the site that may be causing this?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
This has probably to do with the fact that the right blocks are not displayed on the article pages (and pretty much any page other than the index).

So you have to work your way through footer.thtml and rightblocks.thtml so see where it goes wrong.

bye, Dirk
 Quote

Status: offline

orfilms

Forum User
Regular Poster
Registered: 08/02/05
Posts: 70
But the right blocks are turned off for the whole site, index and all, so unless I don't understand something, I don't believe that's relevant.

And the header and footer template files are used in the index and all the other pages where the test text appears where it's supossed to in addition to the article.php pages where it gets moved above the left block. So my debugging skills tell me its something other than the footer or header template files that the article.php is calling that causes the problem. Something that only article.php calls?
 Quote

Status: offline

ajzz

Forum User
Regular Poster
Registered: 01/19/05
Posts: 113
Your footer.thtml reads:
Text Formatted Code
test
</td>
<!-- this theme does not use right blocks -->
</tr>
</table>


 

The first few tags close the table that was created in the header and body, therefore the above behavior. You may try moving the word test to a region after where the table from the header is closed i.e. to 4 lines below where it is now to look like:
Text Formatted Code
</td>
<!-- this theme does not use right blocks -->
</tr>
</table>
test


 

Alternatively, you could also put the text into the next footer table [edit: after Content End and Footer Start] or use a static page to show at the bottom of each topic.

How does that work?

Ajay
 Quote

Status: offline

orfilms

Forum User
Regular Poster
Registered: 08/02/05
Posts: 70
I first want to thank you guys for your efforts,

let me first say that the reason I'm doing this is I'm trying to put a google adsense unit at the bottom of the page (but not the way bottom where no one looks) I want it to appear right after the last post or where you see the forum plugin.

the static page trick works awesome but only on the index and topic pages. when you go to the article pages, poll pages, search pages...etc - no static blocks, so no google ad. So this isn't a good workaround.

if i put the "test" text (which will eventually be an ad) after the table in the footer.thtml, it would put the "test" text at the very bottom of the page where all the copyright info is. I'm looking to go higher, right below the last post on the page or where the forum plugin appears.

This is where you see "test" on the index page and most of the other pages on the site, right where i want it. But somehow when you go to a article posting itself the "test" tag moves drasticly above the left blocks.

So the question remains, why is the article.php pages moving the test text? I still don't believe it's a problem with the header of footer files as the test text appears perfectly where i need it in every other page but the article.php pages.

The only thing I can think of is that the article.php is generating some kind of tag (maybe a table tag) that moves the "test" text out into a phantom table.

Anyone have an answer?
 Quote

Status: offline

ajzz

Forum User
Regular Poster
Registered: 01/19/05
Posts: 113
a quick look at the source suggests you may be right - tough i have not looked carefully enough to be sure, I think there is premature closure of a cell-division in the article template. Look for and get rid of the first line in the following code which is the final source of your article.php output:
Text Formatted Code
</td>
test
</td>
<!-- this theme does not use right blocks -->
</tr>
</table>

 
from either the story or comment templates one of which seems to generate it... this should work if I am not dreaming.

Cheers!

Ajay
 Quote

Status: offline

orfilms

Forum User
Regular Poster
Registered: 08/02/05
Posts: 70
You saved me big time! I found it in article.thtml. I was so busy going through code that it didn't hit me that the template script from axon would have a table flaw.
 Quote

All times are EST. The time is now 10:45 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content