Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2011-03-17 00:36:03

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

Yup, bit late here. In the page:

<txp:js n=“slideshow” /> is a potential trap. The tag doesn’t exist, or you tried Bloke’s brand new macro plugin. Probably not

But the real problem might be this here:
<img src=”<txp:http://www.fonmedia.co.uk/images/{id#1}.jpg” alt=”{alt#1}” width=”{width#1}” height=”{height#1}” />

Remove <txp: from it.

Last edited by uli (2011-03-17 00:37:18)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#26 2011-03-17 00:38:02

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

Ouch, removed the txp part myself instead of just copying.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#27 2011-03-17 00:42:27

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

<txp:js n=“slideshow” /> 

That was using stm_javascript with Aeron Glemann’s slideshow js…

removing both above and <txp: did nothing…

Sleep beckons… till tomorrow. Cheers for your help.

Last edited by kstewart (2011-03-17 00:42:47)


www.kimstewart.co.uk

Offline

#28 2011-03-17 00:49:55

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

Form gallery:

Remove <txp:txp: from the image path.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#29 2011-03-17 00:55:16

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

Form footer opens 7 divs and closes 3. Might be OK, but I fear it’s not.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#30 2011-03-17 00:57:31

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

The page code is, forgive me, a complete mess.

<div id="head">

 <div class="slideshow">

<ul class="section_list">
	<li><a class="active" href="http://www.fonmedia.co.uk/">Home</a></li>

	<li><a href="http://www.fonmedia.co.uk/our_work/">Our Work</a></li>
	<li><a href="http://www.fonmedia.co.uk/our_people/">Our People</a></li>
	<li><a href="http://www.fonmedia.co.uk/contact_us/">Contact Us</a></li>
</ul>


</div>

which duplicates the code further down. You must remove the <div class="slideshow"> tag.

I’m assuming that the very last closing </div> near the bottom of the page is to close the container but just above that you have:-


<div id="content">
<div id="gallery" class="content">
<div id="slideshow" class="slideshow"></div>
<div id="controls"></div>
<div id="caption" class="embox"></div>



<!-- footer -->
	<div id="foot" > 

<div align="left">
<div class="span-5">

<p>288 A BURTON ROAD DIDSBURY</p>

<p>GREAT MANCHESTER</p>
<p>M20 2NB</p>


<div align="center">
<div class="span-21"> 
<p>Tel +44 7580 792703</p>

<p>glyn@fonmedia.co.uk</p>

<div align="right"> 
<div class="span-22 last">

<p>Registered No. 7444194</p>

</div>
</div>
</div>

<div id="content"> and <div id="gallery" class="content"> have no closing tags then, starting with the <div id="foot" > tag you have 7 opening tags but only 3 closing tags. Also there is no such thing as <div align="whatever">. You need to use CSS to align div blocks using “float”. In fact you might just as well remove those 3 <div align="whatever"> tags which means you will only be 1 closing tag short down there.

Try this:-

<div class="container">

<div id="head">

 <ul class="section_list">
	<li><a class="active" href="http://www.fonmedia.co.uk/">Home</a></li>

	<li><a href="http://www.fonmedia.co.uk/our_work/">Our Work</a></li>
	<li><a href="http://www.fonmedia.co.uk/our_people/">Our People</a></li>
	<li><a href="http://www.fonmedia.co.uk/contact_us/">Contact Us</a></li>
</ul>

</div> <!-- /#head -->


<div id="content">
<div id="gallery" class="content">
<div id="slideshow" class="slideshow"></div>
<div id="controls"></div>
<div id="caption" class="embox"></div>
</div> <!-- /#gallery -->
</div> <!-- /#content -->

<div id="foot" > 

<div class="span-5">
<p>288 A BURTON ROAD DIDSBURY</p>
<p>GREAT MANCHESTER</p>
<p>M20 2NB</p>
</div>

<div class="span-21"> 
<p>Tel +44 7580 792703</p>
<p>glyn@fonmedia.co.uk</p>
</div>

<div class="span-22 last">
<p>Registered No. 7444194</p>
</div>

</div> <!-- /#foot-->

</div> <!-- /#container -->

Also move all your scripts down to just above the closing body tag.

Last edited by thebombsite (2011-03-17 01:12:49)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#31 2011-03-17 01:06:30

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

thebombsite wrote:

The page code is, forgive me, a complete mess.

Yup.
At the moment I’m focusing on what might cause the blank pages and try to leave small faults out when I can bear it, like e.g. width=”{width#1}” in an HTML image tag. That’s stuff I leave to kstewart.

I’m done now, should be displaying something.

Last edited by uli (2011-03-17 01:42:35)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#32 2011-03-17 01:18:40

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

I know, and who has time for bed. ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#33 2011-03-17 02:26:33

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,472

Re: Articles not displaying, sections blank, slideshow not working, etc...

kstewart:

Muchacho, sit down and learn the basics …

Not only the HTML is a mess, also the CSS. And I have the impression that you copy and paste, without knowing what you do. As an example, the beginning, before the reset:

#head {float: left;}

* {
    outline: 0;
    padding: 0;
    margin: 0;
    border: 0;
    }

html[xmlns] .clearfix {
    display: block;
}

I can’t see the sense of it. And, other example, float: center; is part of CSS4.1 [ ;-) ] and no current browser parse it. Etc.

Offline

#34 2011-03-17 03:26:13

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Kim

As you noted, you are new Txp, and maybe to coding for the web? Which is totally fine – we’ve all been there. It looks like you are struggling a bit with keeping your code lean, clean, and organized. And with some of the basics as well. Don’t worry – you’ll get it. :)

You can make comments in your html code by enclosing them like so: <!— your comments here —>

Stuart (thebombsite) illustrates a coding practice you might want to try until you get more sure of yourself. This will help you keep track of where you are in your code.

</div> <!— /#foot—>

</div> <!— /#container —>

Each time you open a division, especially if you have given an id or class, create a comment on the corresponding closing tag just to make sure you close it. You may want to get in the habit of creating your opening and closing div together and then adding content inside of it. That may help ensure you always have a matching div.

Another practice that might help, if you are not already using it, is to get a good text editor that can highlight (color code) your html tags. I personally like subethaedit, a lot of people use Textmate. Coda is a more advanced html editor. Sometimes developing your code as a whole page, then breaking it out to the forms, can be helpful, especially in the beginning when trying to get the big picture and track down problems.

In troubleshooting this case, one option might be to make a copy of everything, then clear it out and start from scratch. Create your basic structure first – html tags, head tags, body tags. Then add, say the basic navigation code and make sure it is working. Then add your footer code and make sure it is working. In other words, take it in small bits, and be very methodical.

fwiw – Just some thoughts that might help you get a handle on this problem and going forward.

Mike

Offline

#35 2011-03-17 12:58:41

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

I’ve decided to start again from scratch… it’s weird because I used the same page templates I downloaded online and it worked fine on my personal site: http://www.kimstewart.co.uk/textpattern-4.3.0/

Thanks guys. Stuart: Your page code got rid of all formatting, I had this in my CSS:

/* Floating */
.f-left {float: left;}
.f-right {float: right;}
.f-center {float: center;}

/* Text align */
.t-left {text-align: left;}
.t-center {text-align: center;}
.t-right {text-align: right;}

.va-middle {vertical-align:middle;}

so thought <div align=“f-center”> might work in the footer form?


www.kimstewart.co.uk

Offline

#36 2011-03-17 13:06:29

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Can anyone recommend a decent template I can work from?


www.kimstewart.co.uk

Offline

Board footer

Powered by FluxBB