Create BBCode, image resized down

Support for PhpBB3 BBCodes. Post here to get help with any BBCode related issue here
There is no support here! Only Read Access!
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!
Locked
User avatar
Chalong
BBCoder II
BBCoder II
Posts: 59
Joined: 06 Mar 2010, 14:03
Location: Pforzheim / Germany
Contact:

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 ?
Regards Chalong

www.chalong.de
User avatar
Chalong
BBCoder II
BBCoder II
Posts: 59
Joined: 06 Mar 2010, 14:03
Location: Pforzheim / Germany
Contact:

Re: Create BBCode, image resized down

Post by Chalong »

Oh my gosh,

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

www.chalong.de
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

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!
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

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.
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Create BBCode, image resized down

Post by cisco007 »

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