TinyPortal

Development => Support => Topic started by: shadrach on December 14, 2006, 12:07:46 AM

Title: Whats wrong with this code?
Post by: shadrach on December 14, 2006, 12:07:46 AM
Everytime I activate the block that I put this code into on my site, the whole thing borks. Can someone please tell me whats wrong with it? Its in an html block, and it shows up, but the rest of the site is messed up then.

<center><a href="http://www.distorted-logic.com"><img src="/linklogo.jpg" alt="Distorted Logic" title="Distorted Logic" border="0">
</a><br /><br /><form action="" method="post"><textarea name="linktous" cols="15" rows="4" readonly="readonly">
<a href="http://www.distorted-logic.com">
<img src="http://www.distorted-logic.com/linklogo.jpg" alt="Distorted Logic" title="Distorted Logic" border="0"></a>
Title: Re: Whats wrong with this code?
Post by: rebelrose on December 14, 2006, 12:30:24 AM
are these all images with links you are tying to show here?

I tried that in a block and it seems to be a image on top of a scrolling block or iframe type thing.

Title: Re: Whats wrong with this code?
Post by: shadrach on December 14, 2006, 12:45:38 AM
Its a block that has a small 88x31 image link in it, with the code to paste somewhere to link back to my site. For the life of me I cant figure out what is broken in the code to make it bork everything.
Title: Re: Whats wrong with this code?
Post by: rebelrose on December 14, 2006, 12:47:58 AM
maybe try putting the link back code in code brackets

Title: Re: Whats wrong with this code?
Post by: stormlrd on December 14, 2006, 12:49:18 AM

<center>
<a href="http://www.distorted-logic.com">
<img src="/linklogo.jpg" alt="Distorted Logic" title="Distorted Logic" border="0">
</a>
<br /><br />
<form action="" method="post"><textarea name="linktous" cols="15" rows="4" readonly="readonly">
<a href="http://www.distorted-logic.com">
<img src="http://www.distorted-logic.com/linklogo.jpg" alt="Distorted Logic" title="Distorted Logic" border="0"></a>
</form></center>


just a guess but you forgot to close your form ive added the closing tag here.
Title: Re: Whats wrong with this code?
Post by: shadrach on December 14, 2006, 12:57:20 AM
yeah, I just didnt get it in the paste
oops
Title: Re: Whats wrong with this code?
Post by: stormlrd on December 14, 2006, 01:00:23 AM
so is it fixed?
Title: Re: Whats wrong with this code?
Post by: shadrach on December 14, 2006, 01:18:16 AM
Sorry, its been a long day. With the proper closing, it is not fixed. I dont know if it is a bad html command or what. Someone gave me the code from a phpnuke block made for the same purpose. It renders everything properly, but then nothing will come after.
Title: Re: Whats wrong with this code?
Post by: stormlrd on December 14, 2006, 01:19:16 AM
well double check you got all the code as it does look incomplete to me.
Title: Re: Whats wrong with this code?
Post by: shadrach on December 14, 2006, 01:39:24 AM
found it. </textarea>
eveidently that ISNT part of the form tag as we thought it was.