News:

Wondering if this will always be free?  See why free is better.

Main Menu

Image bbcode title

Started by mickjav, December 26, 2021, 03:23:23 PM

Previous topic - Next topic

mickjav

Not sure if I'm doing it wrong but can't seem to add a title to [img ] I can add width and height, where could I add the title into the ddcode.

Thank


Mick.

Images don't need titles. What they need is an ALT.

Try: [img alt=some description]https:some image url.jpg[/img]

mickjav

Quote from: Mick. on December 26, 2021, 03:48:27 PMImages don't need titles. What they need is an ALT.

Try: [img alt=some description]https:some image url.jpg[/img]

Thanks Mick. But the alt is only used if a image cannot be display at least I think that's the way alt works I did try it though didn't get the expected error though

mickjav


mickjav

#5
Thanks Got it sorted

For 2.0.18/19

Look For
'alt' => array('optional' => true),
Below Add
'title' => array('optional' => true),
Look For
'content' => '<img src="$1" alt="{alt}"{width}{height} class="bbc_img resized" />',
Replace With
'content' => '<img src="$1" title="{title}" alt="{alt}"{width}{height} class="bbc_img resized" />',
To see this woking goto: Janet Jackson Album - Janet (1993) And Put your curser over either of the Platinum Images below the album Image

Advertisement: