• Welcome to Simple Machines Community Forum. Please login or sign up.

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
Database Dreams - music and charts, Home of Chart Tracker Elite, Apollo & DJ 2020.
Coming soon The Librarian.


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
Database Dreams - music and charts, Home of Chart Tracker Elite, Apollo & DJ 2020.
Coming soon The Librarian.

mickjav

Database Dreams - music and charts, Home of Chart Tracker Elite, Apollo & DJ 2020.
Coming soon The Librarian.

mickjav

December 27, 2021, 07:26:48 AM #5 Last Edit: December 27, 2021, 08:12:47 AM by mickjav
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
Database Dreams - music and charts, Home of Chart Tracker Elite, Apollo & DJ 2020.
Coming soon The Librarian.

Advertisement: