TinyPortal

Development => Support => Topic started by: Cornell on November 23, 2009, 05:59:36 AM

Title: Html code in right side block
Post by: Cornell on November 23, 2009, 05:59:36 AM
I am having trouble inserting an html code in the block. i want the following image to display. Can anyone help me please. I am using smf 1.1.10 and tinyportal 1.0 beta 4.
http://www.bosveldboerbokklub.com/tp-images/1uidandre.jpg
Title: Re: Html code in right side block
Post by: IchBin on November 23, 2009, 07:25:37 AM
How about you show us the code your using? And also what type of block are you using?
Title: Re: Html code in right side block
Post by: Cornell on November 23, 2009, 08:13:00 AM
i am using bbc code but i want the html one to work. cause the bbc code doesnt image doesnt show on all pages of my forum but the empty box shows.

here is the html code that i inserted.

<img border="0" src="/tp-images/1uidandre.jpg" width="320" height="300">

But it doesnt work. it shows the code in the html box.
Title: Re: Html code in right side block
Post by: ZarPrime on November 24, 2009, 02:56:17 PM
Cornell,

Well, you might try using the entire url as the source instead.  Also, the border attribute is deprecated in favor of using styles so it might not work in all browsers.  You might just leave that off.  Try this ...

<img src="http://www.bosveldboerbokklub.com/tp-images/1uidandre.jpg" width="320" height="300">


Also, the image is going to look very short and squeezed with those height and width attributes since the true dimensions of the image are 206 wide by x 708 pixels tall.

Something like this would center the image and show it in it's true dimensions ...

<center><img src="http://www.bosveldboerbokklub.com/tp-images/1uidandre.jpg" width="206" height="708"></center>


Of course, your panel, whether it be left or right, is going to have to be wide enough to show the image (width = 206 pixels) without scroll bars, if that's what you want.

ZarPrime
Title: Re: Html code in right side block
Post by: JPDeni on November 24, 2009, 03:10:06 PM
This concerns me:

Quote
here is the html code that i inserted.

<img border="0" src="/tp-images/1uidandre.jpg" width="320" height="300">

But it doesnt work. it shows the code in the html box.

Are you using an editor in your html box? If so, are you entering your img code in the editor or in the source code? It needs to be entered in the source code.
Title: Re: Html code in right side block
Post by: Cornell on November 26, 2009, 08:21:52 AM
i tried the codes you guys gave me here and it shows the code in the box. not the image. Please help me hey? when i get it to work the image doesnt show in the forum. but on all other places. i checked the block settings and it is suppose to show everywhere. in the forum the image comes as an error and if i check the error url it looks like this.
http://www.bosveldboerbokklub.com/index.php/ads/douw1.jpg
Title: Re: Html code in right side block
Post by: ZarPrime on November 26, 2009, 01:25:24 PM
Cornell,

It doesn't work like this on my test site (second block down in the left panel) ...
http://talesofthehavenexpanse.com/smf1test/index.php

Please setup a temp Admin account for your site and PM me the details so that I can get into your Admin section and look at it a little more closely.

ZarPrime
Title: Re: Html code in right side block
Post by: Cornell on November 26, 2009, 01:28:14 PM
doing that for you now.
Title: Re: Html code in right side block
Post by: ZarPrime on November 26, 2009, 02:35:59 PM
Cornell,

OK, I made another block above your 2 that aren't working using the following code ...


<center>
<p>
<img src="http://www.bosveldboerbokklub.com/tp-images/1uidandre.jpg" alt="Ilnika" width="132" height="454" />
</p>
<p>
<a href="http://www.ilnika.com/" target="_blank">Ilnika</a>
</center>
</p>


You can use this same format to fix the other block that isn't working for you.  This code works on all pages.  You can just delete the block that you made directly below the one I made.

ZarPrime
Title: Re: Html code in right side block
Post by: Cornell on November 26, 2009, 03:01:24 PM
you are a legend. Thank you
Title: Re: Html code in right side block
Post by: Cornell on November 26, 2009, 06:32:15 PM
where the hell did you enter that code bro. cause when i enter it it just shows me the nowmal code
Title: Re: Html code in right side block
Post by: ZarPrime on November 26, 2009, 09:04:37 PM
Click the html button in the editor to enter/show the html.  That button looks like this --> <>

See attached image.

ZarPrime
Title: Re: Html code in right side block
Post by: Cornell on November 27, 2009, 05:53:38 AM
ok. but this moring when i entered my website the whole left panel was gone!!
All the blocks that must be there are green. they should show. but they dont.
Title: Re: Html code in right side block
Post by: IchBin on November 27, 2009, 05:50:01 PM
Did you click the upshrink?