Create BBCode, image resized down

Support for PhpBB3 BBCodes.
Post here to get help with any BBCode related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe exactly what it is you want.
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!

Create BBCode, image resized down

Post by Chalong »

Hi Coders,

atm I'm creating a BBCode for Twitter with an userbar picture to link to twitter.
Here is the picture:
Image
and here ist the HTML-replacement:

Code: Select all

<a href="http://twitter.com/{IDENTIFIER}"><img src="./images/twitterfollowme.gif" width='50' border="0" /></a>
The original size of the pic is 350x19px but my board resizes it to 50x3px.
resized_tw.png
How can this happen and how do I get it work fine ?
You do not have the required permissions to view the files attached to this post.

Re: Create BBCode, image resized down

Post by Chalong »

Oh my gosh,

i got ir work because i missed a "3" within width. :lol:

Re: Create BBCode, image resized down

Post by cisco007 »

in order to have this xhtml strict you need to add the alt="*" to the image tag!, and I am not sure the border="0" is strict either!
I am saying this for us that like xhtml strict code!

Re: Create BBCode, image resized down

Post by KukY13 »

cisco007 » 31 Jul 2010, 17:36 wrote:in order to have this xhtml strict you need to add the alt="*" to the image tag!, and I am not sure the border="0" is strict either!
I am saying this for us that like xhtml strict code!
Well, you should better align with HTML 5, which does not require 'alt' attribute.
'border' isn't allowed, as all styling should be done only using CSS. Allowed exceptions are attributes that specify the size of the element.

Re: Create BBCode, image resized down

Post by cisco007 »

it's up to you what you want you use i guess!